Raise an exception if there is no benchmark target

This commit is contained in:
dearblue
2022-03-06 15:29:35 +09:00
parent e39581242d
commit 1f0d265a83
+2
View File
@@ -18,6 +18,8 @@ def plot_file
end
def plot
raise "no build target to benchmark against" if $dat_files.empty?
opts_file = "#{MRUBY_ROOT}/benchmark/plot.gpl"
opts = File.read(opts_file).each_line.to_a.map(&:strip).join(';')