mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-27 05:42:56 +00:00
b0744c2b21
name old time/op new time/op delta Uint256MarshalJSON-8 230ns ± 6% 83ns ±13% -63.78% (p=0.000 n=8+10) name old alloc/op new alloc/op delta Uint256MarshalJSON-8 320B ± 0% 80B ± 0% -75.00% (p=0.000 n=10+10) name old allocs/op new allocs/op delta Uint256MarshalJSON-8 5.00 ± 0% 1.00 ± 0% -80.00% (p=0.000 n=10+10)
13 lines
177 B
Go
13 lines
177 B
Go
package util
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkUint256MarshalJSON(b *testing.B) {
|
|
v := Uint256{0x01, 0x02, 0x03}
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
_, _ = v.MarshalJSON()
|
|
}
|
|
}
|