Closed yangwenmai closed 4 years ago
$ go test -run=apply_test.go -benchtime=1s -bench=^BenchmarkApply -cpuprofile=cpu.out -benchmem -memprofile=mem.out -trace trace.out -count=5 > old.txt $ go test -run=apply_test.go -benchtime=1s -bench=^BenchmarkApply -cpuprofile=cpu.out -benchmem -memprofile=mem.out -trace trace.out -count=5 > new.txt
benchcmp old.txt new.txt Result:
benchcmp old.txt new.txt
benchmark old ns/op new ns/op delta BenchmarkApply-8 216 208 -3.70% BenchmarkApply-8 216 208 -3.70% BenchmarkApply-8 216 207 -4.17% BenchmarkApply-8 215 209 -2.79% BenchmarkApply-8 216 210 -2.78% benchmark old allocs new allocs delta BenchmarkApply-8 3 3 +0.00% BenchmarkApply-8 3 3 +0.00% BenchmarkApply-8 3 3 +0.00% BenchmarkApply-8 3 3 +0.00% BenchmarkApply-8 3 3 +0.00% benchmark old bytes new bytes delta BenchmarkApply-8 112 112 +0.00% BenchmarkApply-8 112 112 +0.00% BenchmarkApply-8 112 112 +0.00% BenchmarkApply-8 112 112 +0.00% BenchmarkApply-8 112 112 +0.00%
@anthonynsimon poke
Looks good! Thank you :)
Benchmark Result
benchcmp old.txt new.txt
Result: