Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline everything into single switch
name old time/op new time/op delta Encode/int32-8 249ns ± 0% 132ns ± 0% -46.99% (p=1.000 n=1+1) Encode/struct_wrapping_int64-8 562ns ± 0% 413ns ± 0% -26.51% (p=1.000 n=1+1) Encode/string-8 335ns ± 0% 347ns ± 0% +3.58% (p=1.000 n=1+1) Encode/float32-8 131ns ± 0% 137ns ± 0% +4.58% (p=1.000 n=1+1) Encode/time.Time-8 626ns ± 0% 620ns ± 0% -0.96% (p=1.000 n=1+1) Encode/int-8 246ns ± 0% 149ns ± 0% -39.43% (p=1.000 n=1+1) Encode/int8-8 212ns ± 0% 107ns ± 0% -49.53% (p=1.000 n=1+1) Encode/uint-8 133ns ± 0% 79ns ± 0% -40.30% (p=1.000 n=1+1) Encode/uint16-8 131ns ± 0% 65ns ± 0% -50.69% (p=1.000 n=1+1) Encode/uint32-8 125ns ± 0% 69ns ± 0% -45.04% (p=1.000 n=1+1) Encode/bool-8 57.5ns ± 0% 28.9ns ± 0% -49.74% (p=1.000 n=1+1) Encode/uint8-8 183ns ± 0% 92ns ± 0% -49.78% (p=1.000 n=1+1) Encode/int16-8 224ns ± 0% 131ns ± 0% -41.52% (p=1.000 n=1+1) Encode/int64-8 242ns ± 0% 148ns ± 0% -38.84% (p=1.000 n=1+1) Encode/uint64-8 130ns ± 0% 79ns ± 0% -39.00% (p=1.000 n=1+1) Encode/float64-8 139ns ± 0% 148ns ± 0% +6.47% (p=1.000 n=1+1) Encode_parallel/float32-8 32.1ns ± 0% 32.7ns ± 0% +1.87% (p=1.000 n=1+1) Encode_parallel/time.Time-8 177ns ± 0% 169ns ± 0% -4.52% (p=1.000 n=1+1) Encode_parallel/int-8 73.0ns ± 0% 38.3ns ± 0% -47.53% (p=1.000 n=1+1) Encode_parallel/int8-8 56.8ns ± 0% 26.7ns ± 0% -52.99% (p=1.000 n=1+1) Encode_parallel/uint-8 41.5ns ± 0% 21.7ns ± 0% -47.71% (p=1.000 n=1+1) Encode_parallel/uint16-8 37.6ns ± 0% 16.6ns ± 0% -55.85% (p=1.000 n=1+1) Encode_parallel/uint32-8 36.5ns ± 0% 17.6ns ± 0% -51.78% (p=1.000 n=1+1) Encode_parallel/bool-8 16.0ns ± 0% 7.4ns ± 0% -53.81% (p=1.000 n=1+1) Encode_parallel/uint8-8 54.7ns ± 0% 23.0ns ± 0% -57.95% (p=1.000 n=1+1) Encode_parallel/int16-8 59.4ns ± 0% 31.1ns ± 0% -47.64% (p=1.000 n=1+1) Encode_parallel/int64-8 71.4ns ± 0% 38.4ns ± 0% -46.22% (p=1.000 n=1+1) Encode_parallel/uint64-8 40.1ns ± 0% 20.9ns ± 0% -47.88% (p=1.000 n=1+1) Encode_parallel/float64-8 37.0ns ± 0% 39.8ns ± 0% +7.57% (p=1.000 n=1+1) Encode_parallel/int32-8 70.5ns ± 0% 33.1ns ± 0% -53.05% (p=1.000 n=1+1) Encode_parallel/struct_wrapping_int64-8 173ns ± 0% 122ns ± 0% -29.48% (p=1.000 n=1+1) Encode_parallel/string-8 90.6ns ± 0% 97.5ns ± 0% +7.62% (p=1.000 n=1+1)
- Loading branch information