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

Benchmarks seem off #497

Open
marcsantiago opened this issue Feb 15, 2024 · 0 comments
Open

Benchmarks seem off #497

marcsantiago opened this issue Feb 15, 2024 · 0 comments

Comments

@marcsantiago
Copy link

I decided to try and give this a shot but my testing shows that this is only marginally faster than the standard lib and much slower than gojay.

goos: darwin
goarch: arm64
pkg: json_sample_project
BenchmarkGoJay-8          183072              5527 ns/op             735 B/op          4 allocs/op
BenchmarkGoJay-8          216786              5524 ns/op             736 B/op          4 allocs/op
BenchmarkGoJay-8          218978              5531 ns/op             736 B/op          4 allocs/op
BenchmarkGoJson-8          94362             12716 ns/op            1486 B/op         10 allocs/op
BenchmarkGoJson-8          94453             12656 ns/op            1480 B/op         10 allocs/op
BenchmarkGoJson-8          94714             12712 ns/op            1484 B/op         10 allocs/op
BenchmarkStdJson-8         72688             16376 ns/op            1228 B/op         10 allocs/op
BenchmarkStdJson-8         73118             16341 ns/op            1226 B/op         10 allocs/op
BenchmarkStdJson-8         73194             16342 ns/op            1226 B/op         10 allocs/op
PASS
ok      json_sample_project     12.847s

I zipped up the sample projected used to generate the tests

json_sample_project.zip

Not sure if the posted results stand true anymore.

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