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

Performance worse in simple scenarios #205

Open
chuyskywalker opened this issue Feb 19, 2017 · 0 comments
Open

Performance worse in simple scenarios #205

chuyskywalker opened this issue Feb 19, 2017 · 0 comments

Comments

@chuyskywalker
Copy link

chuyskywalker commented Feb 19, 2017

I was looking into adding ffjson to (https://github.com/alecthomas/go_serialization_benchmarks (like #154 was suggesting) and found that ffjson made things a good deal worse in the benchmark.

https://github.com/chuyskywalker/jsontest

On my local machine, with struct_ffjson.go removed:

BenchmarkJsonMarshal-8         500000     2475 ns/op       536 B/op       6 allocs/op
BenchmarkJsonUnmarshal-8       500000     3452 ns/op       447 B/op       8 allocs/op

With struct_ffjson.go in place:

BenchmarkJsonMarshal-8         500000     3495 ns/op       949 B/op      13 allocs/op
BenchmarkJsonUnmarshal-8       300000     4350 ns/op       848 B/op      14 allocs/op

Maybe I did something wrong here?

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