This repository has been archived on 2022-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
multirow/onerow/benchmark/scripts/speed.rb

16 lines
552 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'yaml'
yaml = YAML::load(File.open(ARGV[0]))
int_format = "%d,"
number_format = "%.2f,"
string_format = "%s,"
blank = "---,"
print int_format % yaml['n_generated_cuts']['round'][1] rescue print blank
print int_format % yaml['n_generated_cuts']['round'][2] rescue print blank
print number_format % (yaml['cut_speed']['round_1'] * 1000) rescue print blank
print number_format % (yaml['cut_speed']['round_2'] * 1000) rescue print blank
print number_format % yaml['trivial_lifting']['average_m'] rescue print blank
print "\n"