BenchmarkHashBalanceID measures the hash function used for queue assignment
(b *testing.B)
| 242 | |
| 243 | // BenchmarkHashBalanceID measures the hash function used for queue assignment |
| 244 | func 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 |
| 254 | func BenchmarkHashBalanceIDVaried(b *testing.B) { |
nothing calls this directly
no test coverage detected