MCPcopy Create free account
hub / github.com/cockroachdb/apd / BenchmarkBigIntBitset

Function BenchmarkBigIntBitset

bigint_test.go:2834–2842  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

2832}
2833
2834func BenchmarkBigIntBitset(b *testing.B) {
2835 z := new(BigInt)
2836 z.SetBit(z, 512, 1)
2837 b.ResetTimer()
2838 b.StartTimer()
2839 for i := b.N - 1; i >= 0; i-- {
2840 z.SetBit(z, i&512, 1)
2841 }
2842}
2843
2844func BenchmarkBigIntBitsetNeg(b *testing.B) {
2845 z := NewBigInt(-1)

Callers

nothing calls this directly

Calls 1

SetBitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…