Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark delivers weird results #45

Open
janriemer opened this issue Dec 22, 2020 · 0 comments
Open

Benchmark delivers weird results #45

janriemer opened this issue Dec 22, 2020 · 0 comments

Comments

@janriemer
Copy link

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! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant