Skip to content

Instantly share code, notes, and snippets.

@abhay
Created Oct 25, 2009
Embed
What would you like to do?
janus:bert abhay$ ruby bench/decode_bench.rb
user system total real
BERT tiny 0.070000 0.000000 0.070000 ( 0.072316)
BERT small 0.720000 0.000000 0.720000 ( 0.740800)
BERT large 3.040000 0.070000 3.110000 ( 3.127167)
BERT complex 16.830000 0.110000 16.940000 ( 17.417924)
JSON tiny 0.010000 0.000000 0.010000 ( 0.006271)
JSON small 0.050000 0.000000 0.050000 ( 0.054559)
JSON large 1.970000 0.070000 2.040000 ( 2.060273)
JSON complex 0.960000 0.010000 0.970000 ( 0.984941)
YAJL tiny 0.010000 0.000000 0.010000 ( 0.006108)
YAJL small 0.050000 0.000000 0.050000 ( 0.055704)
YAJL large 2.430000 0.100000 2.530000 ( 2.584957)
YAJL complex 1.030000 0.010000 1.040000 ( 1.039036)
Ruby tiny 0.010000 0.000000 0.010000 ( 0.015251)
Ruby small 0.010000 0.000000 0.010000 ( 0.008351)
Ruby large 0.010000 0.000000 0.010000 ( 0.014953)
Ruby complex 0.020000 0.000000 0.020000 ( 0.017525)
janus:bert abhay$ git log --format=oneline -n 5
1bb3ed514ebcd93f01ce22c7e09ac76dddf556ea add encoder benchmarker
92b1b825bcaeb0af41c9acc6dbafa821feff2150 decode-only benchmark runner
8a20b335394fbc109f62ea9032cdb18154609f3e smarter C encoder and remove all references to List
63ce966c3a7a546bfbc2280dc67c96f5a143e724 do not always need to create a Tuple here
f0524d23c838d2d6cee0e450ad5cd8a9557a96f2 eliminate unneeded array traversal and update benches
janus:bert abhay$ gem list --local | grep json
json (1.1.9)
json_pure (1.1.9)
janus:bert abhay$ gem list --local | grep yajl
yajl-ruby (0.6.3)
janus:bert abhay$ brew info yajl
yajl 1.0.6
http://lloyd.github.com/yajl/
Depends on: cmake
/Users/abhay/.local/Cellar/yajl/1.0.6 (10 files, 156K)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/yajl.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment