Created
May 22, 2014 13:57
-
-
Save benbjohnson/6380fab7cac7533115e5 to your computer and use it in GitHub Desktop.
megajson benchmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ go get github.com/benbjohnson/megajson | |
| $ go test -test.bench=. github.com/benbjohnson/megajson/... | |
| BenchmarkScanNumber 50000000 55.3 ns/op 54.25 MB/s | |
| BenchmarkScanString 20000000 95.3 ns/op 104.92 MB/s | |
| BenchmarkScanLongString 5000000 460 ns/op 123.79 MB/s | |
| BenchmarkScanEscapedString 20000000 141 ns/op 127.27 MB/s | |
| BenchmarkReadString 20000000 146 ns/op 68.36 MB/s | |
| BenchmarkReadLongString 5000000 533 ns/op 106.76 MB/s | |
| BenchmarkReadInt 50000000 58.9 ns/op 84.86 MB/s | |
| BenchmarkReadFloat64 10000000 154 ns/op 103.63 MB/s | |
| BenchmarkReadBool 50000000 59.3 ns/op 67.46 MB/s | |
| ok github.com/benbjohnson/megajson/scanner 24.739s | |
| PASS | |
| BenchmarkWriteRawBytes 50000000 64.3 ns/op 186.61 MB/s | |
| BenchmarkWriteString 50000000 58.0 ns/op 207.00 MB/s | |
| BenchmarkWriteInt 50000000 36.7 ns/op 54.57 MB/s | |
| BenchmarkWriteUint 50000000 38.0 ns/op 52.62 MB/s | |
| BenchmarkWriteFloat32 10000000 246 ns/op 36.57 MB/s | |
| BenchmarkWriteFloat64 10000000 279 ns/op 75.14 MB/s | |
| BenchmarkWriteBool 100000000 11.1 ns/op 361.69 MB/s | |
| BenchmarkWriteNull 100000000 11.2 ns/op 357.66 MB/s | |
| ok github.com/benbjohnson/megajson/writer 18.966s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment