class BenchmarkDriver::RubyInterface
def report(name, script = nil)
-
script
(String, nil
) -- - Benchmarked script in String. If nil, name is considered as script too. -
name
(String
) -- - Name shown on result output.
def report(name, script = nil) if script.nil? script = name end @jobs << { benchmark: [{ name: name, script: script }] } end