csvdiff
csvdiff copied to clipboard
Benchmark delivers weird results
Hey @aswinkarthik,
when I run the benchmarks at https://github.com/aswinkarthik/csvdiff/tree/master/benchmark#go-benchmark-results I get the following weird results. It seems operations are optimized away!? Do you have any idea, why that is? NB: I am completely new to Go, so I might miss something here.
BenchmarkCreate1
BenchmarkCreate1-4 150866 40412 ns/op 66095 B/op 10 allocs/op
BenchmarkCreate10
BenchmarkCreate10-4 144878 40494 ns/op 66095 B/op 10 allocs/op
BenchmarkCreate100
BenchmarkCreate100-4 149355 40112 ns/op 66094 B/op 10 allocs/op
BenchmarkCreate1000
BenchmarkCreate1000-4 150066 40595 ns/op 66095 B/op 10 allocs/op
BenchmarkCreate10000
BenchmarkCreate10000-4 144396 40601 ns/op 66095 B/op 10 allocs/op
BenchmarkCreate100000
BenchmarkCreate100000-4 144402 40816 ns/op 66095 B/op 10 allocs/op
BenchmarkCreate1000000
BenchmarkCreate1000000-4 146581 40791 ns/op 66096 B/op 10 allocs/op
BenchmarkCreate10000000
BenchmarkCreate10000000-4 149380 40725 ns/op 66095 B/op 10 allocs/op
Linux Kubuntu 18.04 64bit
Go version: 1.15.6
Repo version: Fresh clone of master
Thank you for this awesome and useful tool! :+1: