Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dockerized benchmarks
davidellis@davidellis:~/Dropbox/projects/benchmarks (master) $ ./run.rb
Running base64 benchmark suite
base64/crystal0.25.0
base64/ruby2.5.1
Running helloworld benchmark suite
helloworld/crystal0.25.0
helloworld/ruby2.5.1
Running json benchmark suite
Running setup for json benchmark
json/crystal0.25.0
json/ruby2.5.1
Running teardown for json benchmark
Running pidigits benchmark suite
pidigits/crystal0.25.0
pidigits/ruby2.5.1
Metrics:
{"base64:crystal0.25.0:process_user_time"=>"1.93",
"base64:crystal0.25.0:process_system_time"=>"0.05",
"base64:crystal0.25.0:process_real_time"=>"0:01.98",
"base64:crystal0.25.0:process_percent_cpu_time"=>"99%",
"base64:crystal0.25.0:process_max_rss_mb"=>60.453125,
"base64:crystal0.25.0:process_avg_rss_mb"=>0.0,
"base64:crystal0.25.0:process_avg_total_mem_mb"=>0.0,
"base64:ruby2.5.1:time"=>"2.592203641s",
"base64:ruby2.5.1:process_user_time"=>"2.48",
"base64:ruby2.5.1:process_system_time"=>"0.20",
"base64:ruby2.5.1:process_real_time"=>"0:02.69",
"base64:ruby2.5.1:process_percent_cpu_time"=>"99%",
"base64:ruby2.5.1:process_max_rss_mb"=>193.671875,
"base64:ruby2.5.1:process_avg_rss_mb"=>0.0,
"base64:ruby2.5.1:process_avg_total_mem_mb"=>0.0,
"helloworld:crystal0.25.0:time"=>"00:00:00.000030000s",
"helloworld:crystal0.25.0:process_user_time"=>"0.00",
"helloworld:crystal0.25.0:process_system_time"=>"0.00",
"helloworld:crystal0.25.0:process_real_time"=>"0:00.00",
"helloworld:crystal0.25.0:process_percent_cpu_time"=>"0%",
"helloworld:crystal0.25.0:process_max_rss_mb"=>3.12109375,
"helloworld:crystal0.25.0:process_avg_rss_mb"=>0.0,
"helloworld:crystal0.25.0:process_avg_total_mem_mb"=>0.0,
"helloworld:ruby2.5.1:time"=>"1.4445e-05s",
"helloworld:ruby2.5.1:process_user_time"=>"0.07",
"helloworld:ruby2.5.1:process_system_time"=>"0.00",
"helloworld:ruby2.5.1:process_real_time"=>"0:00.07",
"helloworld:ruby2.5.1:process_percent_cpu_time"=>"95%",
"helloworld:ruby2.5.1:process_max_rss_mb"=>8.734375,
"helloworld:ruby2.5.1:process_avg_rss_mb"=>0.0,
"helloworld:ruby2.5.1:process_avg_total_mem_mb"=>0.0,
"json:crystal0.25.0:time"=>"00:00:02.251398000s",
"json:crystal0.25.0:process_user_time"=>"2.26",
"json:crystal0.25.0:process_system_time"=>"0.46",
"json:crystal0.25.0:process_real_time"=>"0:02.37",
"json:crystal0.25.0:process_percent_cpu_time"=>"114%",
"json:crystal0.25.0:process_max_rss_mb"=>1035.578125,
"json:crystal0.25.0:process_avg_rss_mb"=>0.0,
"json:crystal0.25.0:process_avg_total_mem_mb"=>0.0,
"json:ruby2.5.1:time"=>"7.32622559s",
"json:ruby2.5.1:process_user_time"=>"7.11",
"json:ruby2.5.1:process_system_time"=>"0.40",
"json:ruby2.5.1:process_real_time"=>"0:07.53",
"json:ruby2.5.1:process_percent_cpu_time"=>"99%",
"json:ruby2.5.1:process_max_rss_mb"=>809.15625,
"json:ruby2.5.1:process_avg_rss_mb"=>0.0,
"json:ruby2.5.1:process_avg_total_mem_mb"=>0.0,
"pidigits:crystal0.25.0:process_user_time"=>"5.37",
"pidigits:crystal0.25.0:process_system_time"=>"1.81",
"pidigits:crystal0.25.0:process_real_time"=>"0:06.60",
"pidigits:crystal0.25.0:process_percent_cpu_time"=>"108%",
"pidigits:crystal0.25.0:process_max_rss_mb"=>8.0859375,
"pidigits:crystal0.25.0:process_avg_rss_mb"=>0.0,
"pidigits:crystal0.25.0:process_avg_total_mem_mb"=>0.0,
"pidigits:ruby2.5.1:process_user_time"=>"7.15",
"pidigits:ruby2.5.1:process_system_time"=>"0.48",
"pidigits:ruby2.5.1:process_real_time"=>"0:07.64",
"pidigits:ruby2.5.1:process_percent_cpu_time"=>"99%",
"pidigits:ruby2.5.1:process_max_rss_mb"=>157.296875,
"pidigits:ruby2.5.1:process_avg_rss_mb"=>0.0,
"pidigits:ruby2.5.1:process_avg_total_mem_mb"=>0.0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment