BenchmarkConfigCached measures direct config access This represents the NEW approach after our optimization
(b *testing.B)
| 126 | // BenchmarkConfigCached measures direct config access |
| 127 | // This represents the NEW approach after our optimization |
| 128 | func 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 |
| 138 | func BenchmarkTransactionMarshal(b *testing.B) { |
nothing calls this directly
no test coverage detected