Created
September 9, 2013 08:01
-
-
Save rightgo09/6492700 to your computer and use it in GitHub Desktop.
JSON vs Oj
This file contains 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
$ ruby bench.rb | |
Rehearsal ---------------------------------------------------- | |
encode with oj 14.880000 0.020000 14.900000 ( 14.900684) | |
encode with json 95.250000 0.020000 95.270000 ( 95.261347) | |
----------------------------------------- total: 110.170000sec | |
user system total real | |
encode with oj 15.220000 0.000000 15.220000 ( 15.229005) | |
encode with json 95.140000 0.060000 95.200000 ( 95.211977) | |
decode | |
Rehearsal ---------------------------------------------------- | |
decode with oj 47.450000 1.410000 48.860000 ( 48.862222) | |
decode with json 86.110000 0.820000 86.930000 ( 86.947369) | |
----------------------------------------- total: 135.790000sec | |
user system total real | |
decode with oj 50.450000 1.470000 51.920000 ( 51.935997) | |
decode with json 86.270000 1.160000 87.430000 ( 87.442031) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment