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

Function BenchmarkHashBalanceID

transaction_benchmark_test.go:244–251  ·  view source on GitHub ↗

BenchmarkHashBalanceID measures the hash function used for queue assignment

(b *testing.B)

Source from the content-addressed store, hash-verified

242
243// BenchmarkHashBalanceID measures the hash function used for queue assignment
244func BenchmarkHashBalanceID(b *testing.B) {
245 balanceID := "bln_abc123def456ghi789"
246
247 b.ResetTimer()
248 for i := 0; i < b.N; i++ {
249 _ = hashBalanceID(balanceID)
250 }
251}
252
253// BenchmarkHashBalanceIDVaried measures hashing with different balance IDs
254func BenchmarkHashBalanceIDVaried(b *testing.B) {

Callers

nothing calls this directly

Calls 1

hashBalanceIDFunction · 0.85

Tested by

no test coverage detected