Created
June 6, 2014 10:59
-
-
Save lautis/6cd947ab5201492e6389 to your computer and use it in GitHub Desktop.
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
>>>>> Creating Makefile for ruby version 2.1.2 on x86_64-darwin13.0 <<<<< | |
creating Makefile | |
compiling cache8.c | |
compiling circarray.c | |
compiling compat.c | |
compiling dump.c | |
compiling err.c | |
compiling fast.c | |
compiling hash.c | |
compiling hash_test.c | |
compiling object.c | |
compiling odd.c | |
compiling oj.c | |
compiling parse.c | |
compiling reader.c | |
compiling resolve.c | |
compiling saj.c | |
compiling scp.c | |
compiling sparse.c | |
compiling strict.c | |
compiling val_stack.c | |
linking shared-object oj.bundle | |
Running tests for | |
-------------------------------------------------------------------------------- | |
Compat Parse Performance | |
JSON::Ext.parse 20000 times in 0.901 seconds or 22209.291 parse/sec. | |
Oj:compat.compat_load 20000 times in 0.282 seconds or 70799.217 compat_load/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj:compat 0.282 70799.217 | |
JSON::Ext 0.901 22209.291 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj:compat JSON::Ext | |
--------- --------- --------- | |
Oj:compat 1.00 3.19 | |
JSON::Ext 0.31 1.00 | |
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Doc.parse 100000 times in 0.143 seconds or 700618.646 parse/sec. | |
JSON::Ext.parse 100000 times in 2.800 seconds or 35710.613 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Doc 0.143 700618.646 | |
JSON::Ext 2.800 35710.613 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Doc JSON::Ext | |
--------- --------- --------- | |
Oj::Doc 1.00 19.62 | |
JSON::Ext 0.05 1.00 | |
-------------------------------------------------------------------------------- | |
JSON generation Performance | |
Oj::Doc.dump 100000 times in 0.136 seconds or 736355.336 dump/sec. | |
JSON::Ext.fast_generate 100000 times in 1.601 seconds or 62458.348 fast_generate/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Doc 0.136 736355.336 | |
JSON::Ext 1.601 62458.348 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Doc JSON::Ext | |
--------- --------- --------- | |
Oj::Doc 1.00 11.79 | |
JSON::Ext 0.08 1.00 | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Saj.all 50000 times in 0.389 seconds or 128479.547 all/sec. | |
Oj::Saj.none 50000 times in 0.078 seconds or 637194.306 none/sec. | |
Oj::Scp.all 50000 times in 0.486 seconds or 102865.631 all/sec. | |
Oj::Scp.none 50000 times in 0.091 seconds or 551450.314 none/sec. | |
Yajl.parse 50000 times in 1.269 seconds or 39404.457 parse/sec. | |
JSON::Ext.parse 50000 times in 1.194 seconds or 41887.729 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Saj 0.078 637194.306 | |
Oj::Scp 0.091 551450.314 | |
Oj::Saj 0.389 128479.547 | |
Oj::Scp 0.486 102865.631 | |
JSON::Ext 1.194 41887.729 | |
Yajl 1.269 39404.457 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Saj Oj::Scp Oj::Saj Oj::Scp JSON::Ext Yajl | |
--------- --------- --------- --------- --------- --------- --------- | |
Oj::Saj 1.00 1.16 4.96 6.19 15.21 16.17 | |
Oj::Scp 0.87 1.00 4.29 5.36 13.16 13.99 | |
Oj::Saj 0.20 0.23 1.00 1.25 3.07 3.26 | |
Oj::Scp 0.16 0.19 0.80 1.00 2.46 2.61 | |
JSON::Ext 0.07 0.08 0.33 0.41 1.00 1.06 | |
Yajl 0.06 0.07 0.31 0.38 0.94 1.00 | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Saj.all 10000 times in 0.093 seconds or 107545.384 all/sec. | |
Oj::Saj.none 10000 times in 0.015 seconds or 649814.803 none/sec. | |
Yajl.parse 10000 times in 0.262 seconds or 38168.667 parse/sec. | |
JSON::Ext.parse 10000 times in 0.264 seconds or 37870.755 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Saj 0.015 649814.803 | |
Oj::Saj 0.093 107545.384 | |
Yajl 0.262 38168.667 | |
JSON::Ext 0.264 37870.755 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Saj Oj::Saj Yajl JSON::Ext | |
--------- --------- --------- --------- --------- | |
Oj::Saj 1.00 6.04 17.02 17.16 | |
Oj::Saj 0.17 1.00 2.82 2.84 | |
Yajl 0.06 0.35 1.00 1.01 | |
JSON::Ext 0.06 0.35 0.99 1.00 | |
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
>>>>> Creating Makefile for ruby version 2.1.2 on x86_64-darwin13.0 <<<<< | |
creating Makefile | |
compiling cache8.c | |
compiling circarray.c | |
compiling compat.c | |
compiling dump.c | |
compiling err.c | |
compiling fast.c | |
compiling hash.c | |
compiling hash_test.c | |
compiling object.c | |
compiling odd.c | |
compiling oj.c | |
compiling parse.c | |
compiling reader.c | |
compiling resolve.c | |
compiling saj.c | |
compiling scp.c | |
compiling sparse.c | |
compiling strict.c | |
compiling val_stack.c | |
linking shared-object oj.bundle | |
Running tests for | |
-------------------------------------------------------------------------------- | |
Compat Parse Performance | |
JSON::Ext.parse 20000 times in 0.817 seconds or 24492.245 parse/sec. | |
Oj:compat.compat_load 20000 times in 0.319 seconds or 62686.885 compat_load/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj:compat 0.319 62686.885 | |
JSON::Ext 0.817 24492.245 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj:compat JSON::Ext | |
--------- --------- --------- | |
Oj:compat 1.00 2.56 | |
JSON::Ext 0.39 1.00 | |
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Doc.parse 100000 times in 0.145 seconds or 691505.546 parse/sec. | |
JSON::Ext.parse 100000 times in 2.708 seconds or 36926.517 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Doc 0.145 691505.546 | |
JSON::Ext 2.708 36926.517 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Doc JSON::Ext | |
--------- --------- --------- | |
Oj::Doc 1.00 18.73 | |
JSON::Ext 0.05 1.00 | |
-------------------------------------------------------------------------------- | |
JSON generation Performance | |
Oj::Doc.dump 100000 times in 0.142 seconds or 702217.603 dump/sec. | |
JSON::Ext.fast_generate 100000 times in 1.663 seconds or 60146.613 fast_generate/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Doc 0.142 702217.603 | |
JSON::Ext 1.663 60146.613 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Doc JSON::Ext | |
--------- --------- --------- | |
Oj::Doc 1.00 11.68 | |
JSON::Ext 0.09 1.00 | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Saj.all 50000 times in 0.399 seconds or 125457.921 all/sec. | |
Oj::Saj.none 50000 times in 0.080 seconds or 622858.922 none/sec. | |
Oj::Scp.all 50000 times in 0.489 seconds or 102285.048 all/sec. | |
Oj::Scp.none 50000 times in 0.084 seconds or 595068.076 none/sec. | |
Yajl.parse 50000 times in 1.245 seconds or 40163.804 parse/sec. | |
JSON::Ext.parse 50000 times in 1.196 seconds or 41815.950 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Saj 0.080 622858.922 | |
Oj::Scp 0.084 595068.076 | |
Oj::Saj 0.399 125457.921 | |
Oj::Scp 0.489 102285.048 | |
JSON::Ext 1.196 41815.950 | |
Yajl 1.245 40163.804 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Saj Oj::Scp Oj::Saj Oj::Scp JSON::Ext Yajl | |
--------- --------- --------- --------- --------- --------- --------- | |
Oj::Saj 1.00 1.05 4.96 6.09 14.90 15.51 | |
Oj::Scp 0.96 1.00 4.74 5.82 14.23 14.82 | |
Oj::Saj 0.20 0.21 1.00 1.23 3.00 3.12 | |
Oj::Scp 0.16 0.17 0.82 1.00 2.45 2.55 | |
JSON::Ext 0.07 0.07 0.33 0.41 1.00 1.04 | |
Yajl 0.06 0.07 0.32 0.39 0.96 1.00 | |
-------------------------------------------------------------------------------- | |
Parse Performance | |
Oj::Saj.all 10000 times in 0.081 seconds or 123145.127 all/sec. | |
Oj::Saj.none 10000 times in 0.014 seconds or 711693.118 none/sec. | |
Yajl.parse 10000 times in 0.244 seconds or 40999.233 parse/sec. | |
JSON::Ext.parse 10000 times in 0.230 seconds or 43517.616 parse/sec. | |
Summary: | |
System time (secs) rate (ops/sec) | |
--------- ----------- -------------- | |
Oj::Saj 0.014 711693.118 | |
Oj::Saj 0.081 123145.127 | |
JSON::Ext 0.230 43517.616 | |
Yajl 0.244 40999.233 | |
Comparison Matrix | |
(performance factor, 2.0 means row is twice as fast as column) | |
Oj::Saj Oj::Saj JSON::Ext Yajl | |
--------- --------- --------- --------- --------- | |
Oj::Saj 1.00 5.78 16.35 17.36 | |
Oj::Saj 0.17 1.00 2.83 3.00 | |
JSON::Ext 0.06 0.35 1.00 1.06 | |
Yajl 0.06 0.33 0.94 1.00 | |
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
cd ext/oj | |
ruby extconf.rb | |
make | |
cd ../../test | |
ruby perf_compat.rb | |
ruby perf_fast.rb | |
ruby perf_scp.rb | |
ruby perf_saj.rb | |
cd .. | |
echo "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment