MCPcopy Create free account
hub / github.com/chain/Core / BenchmarkWriteVarint63

Function BenchmarkWriteVarint63

encoding/blockchain/blockchain_test.go:40–45  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

38}
39
40func BenchmarkWriteVarint63(b *testing.B) {
41 n := uint64(math.MaxInt64)
42 for i := 0; i < b.N; i++ {
43 WriteVarint63(ioutil.Discard, n)
44 }
45}
46
47func TestVarint31(t *testing.T) {
48 cases := []struct {

Callers

nothing calls this directly

Calls 1

WriteVarint63Function · 0.85

Tested by

no test coverage detected