MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / BenchmarkConfigCached

Function BenchmarkConfigCached

transaction_benchmark_test.go:128–135  ·  view source on GitHub ↗

BenchmarkConfigCached measures direct config access This represents the NEW approach after our optimization

(b *testing.B)

Source from the content-addressed store, hash-verified

126// BenchmarkConfigCached measures direct config access
127// This represents the NEW approach after our optimization
128func BenchmarkConfigCached(b *testing.B) {
129 cfg := setupBenchmarkConfig()
130
131 b.ResetTimer()
132 for i := 0; i < b.N; i++ {
133 _ = cfg.Transaction.LockDuration
134 }
135}
136
137// BenchmarkTransactionMarshal measures JSON serialization overhead
138func BenchmarkTransactionMarshal(b *testing.B) {

Callers

nothing calls this directly

Calls 1

setupBenchmarkConfigFunction · 0.85

Tested by

no test coverage detected