(in /home/flori/json) Ragel Code Generator version 5.17 January 2007 Copyright (c) 2001-2006 by Adrian Thurston Benchmarking extension variant First run for warmup. Running 'BC_Parser' for a duration of 10 secs per method: real total utime stime cutime cstime parser: 10.005944 10.010000 9.970000 0.040000 0.000000 0.000000 5091 508.591409 0.001966 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Parser' for a duration of 10 secs per method: real total utime stime cutime cstime parser: 10.006881 10.000000 9.950000 0.050000 0.000000 0.000000 5055 505.500000 0.001978 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================ [null,false,true,"f\u00d6\u00df\u00c4r",["n\u20acst\u20acd",true],{"quux":true,"foo\u00df":"b\u00e4r"}] First run for warmup. Running 'BC_Generator' for a duration of 10 secs per method: real total utime stime cutime cstime generator_pretty: 10.001066 10.010000 9.990000 0.020000 0.000000 0.000000 3492 348.851149 0.002867 generator_fast : 10.002910 10.000000 9.980000 0.020000 0.000000 0.000000 5416 541.600000 0.001846 generator_safe : 10.003107 10.010000 10.000000 0.010000 0.000000 0.000000 4926 492.107892 0.002032 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Generator' for a duration of 10 secs per method: real total utime stime cutime cstime generator_pretty: 10.009150 10.010000 10.010000 0.000000 0.000000 0.000000 3511 350.749251 0.002851 generator_fast : 10.014407 10.020000 10.020000 0.000000 0.000000 0.000000 5411 540.019960 0.001852 generator_safe : 10.010055 10.000000 10.000000 0.000000 0.000000 0.000000 4933 493.300000 0.002027 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================ Comparison in BC_Generator: secs/call speed generator_fast : 0.002 -> 1.540x generator_safe : 0.002 -> 1.406x generator_pretty: 0.003 -> 1.000x -------------------------------------------------------------------------------- [null, false, true, "f\u00d6\u00df\u00c4r", ["n\u20acst\u20acd", true], {quux: true, "foo\u00df": "b\u00e4r"}] First run for warmup. Running 'BC_Rails' for a duration of 10 secs per method: real total utime stime cutime cstime generator: 10.026043 10.020000 10.020000 0.000000 0.000000 0.000000 239 23.852295 0.041925 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Rails' for a duration of 10 secs per method: real total utime stime cutime cstime generator: 10.010931 10.020000 10.010000 0.010000 0.000000 0.000000 238 23.752495 0.042101 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================ Benchmarking pure variant First run for warmup. Running 'BC_Parser' for a duration of 10 secs per method: real total utime stime cutime cstime parser: 10.022352 10.030000 10.020000 0.010000 0.000000 0.000000 288 28.713858 0.034826 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Parser' for a duration of 10 secs per method: real total utime stime cutime cstime parser: 10.006552 10.000000 10.000000 0.000000 0.000000 0.000000 289 28.900000 0.034602 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================ [null,false,true,"f\u00d6\u00df\u00c4r",["n\u20acst\u20acd",true],{"quux":true,"foo\u00df":"b\u00e4r"}] First run for warmup. Running 'BC_Generator' for a duration of 10 secs per method: real total utime stime cutime cstime generator_fast : 10.011644 10.010000 10.010000 0.000000 0.000000 0.000000 411 41.058941 0.024355 generator_safe : 10.007100 10.010000 10.010000 0.000000 0.000000 0.000000 352 35.164835 0.028438 generator_pretty: 10.008156 10.010000 10.010000 0.000000 0.000000 0.000000 341 34.065934 0.029355 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Generator' for a duration of 10 secs per method: real total utime stime cutime cstime generator_fast : 10.005185 10.010000 10.010000 0.000000 0.000000 0.000000 411 41.058941 0.024355 generator_safe : 10.006932 10.010000 10.010000 0.000000 0.000000 0.000000 351 35.064935 0.028519 generator_pretty: 10.007414 10.000000 10.000000 0.000000 0.000000 0.000000 340 34.000000 0.029412 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================ Comparison in BC_Generator: secs/call speed generator_fast : 0.024 -> 1.208x generator_safe : 0.029 -> 1.031x generator_pretty: 0.029 -> 1.000x -------------------------------------------------------------------------------- [null, false, true, "f\u00d6\u00df\u00c4r", ["n\u20acst\u20acd", true], {quux: true, "foo\u00df": "b\u00e4r"}] First run for warmup. Running 'BC_Rails' for a duration of 10 secs per method: real total utime stime cutime cstime generator: 10.005748 10.000000 10.000000 0.000000 0.000000 0.000000 240 24.000000 0.041667 calls calls/sec secs/call -------------------------------------------------------------------------------- Running 'BC_Rails' for a duration of 10 secs per method: real total utime stime cutime cstime generator: 10.006764 10.010000 10.010000 0.000000 0.000000 0.000000 239 23.876124 0.041883 calls calls/sec secs/call -------------------------------------------------------------------------------- ================================================================================