Skip to content

Commit b3fb2fc

Browse files
auto commit
1 parent 7ae7bf8 commit b3fb2fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

db-esdk-performance-testing/benchmarks/go/benchmark/testRunners.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ func (b *DBESDKBenchmark) runMemoryTest(dataSize int) (*BenchmarkResult, error)
114114
runtime.GC()
115115
time.Sleep(GCSettleTimeMs * time.Millisecond)
116116

117-
// Get baseline
118-
metrics.Read(samples)
119-
beforeHeap := samples[0].Value.Uint64()
120-
beforeAllocs := samples[1].Value.Uint64()
121-
122117
// Start continuous sampling
123118
stopSampling := make(chan bool)
124119
var continuousSamples []MemorySample
@@ -131,6 +126,11 @@ func (b *DBESDKBenchmark) runMemoryTest(dataSize int) (*BenchmarkResult, error)
131126
samplingMutex.Unlock()
132127
}()
133128

129+
// Get baseline
130+
metrics.Read(samples)
131+
beforeHeap := samples[0].Value.Uint64()
132+
beforeAllocs := samples[1].Value.Uint64()
133+
134134
// Run operation
135135
operationStart := time.Now()
136136
_, _, err := b.runItemEncryptorCycle(data)

0 commit comments

Comments
 (0)