From 106885b112b84698c7a416b2dc69958f7fb6b985 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:44:20 -0700 Subject: [PATCH] Benchmark apptesting setup time (#2143) (#2145) (cherry picked from commit 3aecc23c75f62623c21578b07445a443f4edaea5) Co-authored-by: Dev Ojha --- app/apptesting/bench_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/apptesting/bench_test.go diff --git a/app/apptesting/bench_test.go b/app/apptesting/bench_test.go new file mode 100644 index 00000000000..5a731014810 --- /dev/null +++ b/app/apptesting/bench_test.go @@ -0,0 +1,10 @@ +package apptesting + +import "testing" + +func BenchmarkSetup(b *testing.B) { + for i := 0; i < b.N; i++ { + s := new(KeeperTestHelper) + s.Setup() + } +}