diff --git a/bench_test.go b/bench_test.go index 75c2017..59c26bf 100644 --- a/bench_test.go +++ b/bench_test.go @@ -110,10 +110,10 @@ func BenchmarkAll(b *testing.B) { for _, testname := range benchnames { argdata, err := os.ReadFile(testname + "/args.txt") casesJoined := strings.TrimSpace(string(argdata)) - if len(argdata) == 0 { - b.Fatalf("%s has empty 'args.txt' file", testname) - } else if err != nil { - b.Fatalf("%s failed open arguments file 'args.txt': %s", testname, err) + if err != nil { + b.Fatalf("benchmark %q: failed open arguments file 'args.txt': %s", testname, err) + } else if len(argdata) == 0 { + b.Fatalf("benchmark %q: has empty 'args.txt' file", testname) } cases := strings.Split(casesJoined, "\n") diff --git a/fannkuch-redux/args.txt b/fannkuch-redux/args.txt index a268daa..74d79f9 100644 --- a/fannkuch-redux/args.txt +++ b/fannkuch-redux/args.txt @@ -1,3 +1,2 @@ -6 -7 -9 \ No newline at end of file +9 +10 \ No newline at end of file diff --git a/fasta/args.txt b/fasta/args.txt index e726c4b..c4637df 100644 --- a/fasta/args.txt +++ b/fasta/args.txt @@ -1,2 +1,2 @@ -12500000 -25000000 \ No newline at end of file +1000000 +8000000 \ No newline at end of file diff --git a/n-body-nosqrt/args.txt b/n-body-nosqrt/args.txt index 0690e70..5c8e75b 100644 --- a/n-body-nosqrt/args.txt +++ b/n-body-nosqrt/args.txt @@ -1,3 +1,2 @@ -50000 -100000 -200000 \ No newline at end of file +200000 +300000 \ No newline at end of file diff --git a/n-body/args.txt b/n-body/args.txt index 0690e70..5c8e75b 100644 --- a/n-body/args.txt +++ b/n-body/args.txt @@ -1,3 +1,2 @@ -50000 -100000 -200000 \ No newline at end of file +200000 +300000 \ No newline at end of file diff --git a/plot_/main.go b/plot_/main.go index 790afae..cdb2ed9 100644 --- a/plot_/main.go +++ b/plot_/main.go @@ -55,7 +55,7 @@ func drawBenchmark(langs []langBench, savefile, baseCompiler string) error { var ( maxBenchs = nBenchs * len(langs) plotHeight = 10 * vg.Inch - plotWidth = plotHeight * vg.Length(maxBenchs) / 20 + plotWidth = plotHeight*vg.Length(maxBenchs)/20 + 1*vg.Centimeter benchWidth = plotWidth / vg.Length(nBenchs) fontsize = plotHeight / 25 @@ -117,6 +117,7 @@ func drawBenchmark(langs []langBench, savefile, baseCompiler string) error { } p_time.Legend.Top = true p_time.NominalX(nominals...) + p_time.X.Max *= 1.1 // Give bars margin so they don't overlap with legend. p_time.X.Tick.Label.Font.Size = benchWidth / 12 // Nominal size. p_time.Title.TextStyle.Font.Size = fontsize diff --git a/results/tinygo-0.39.0.png b/results_/tinygo-0.39.0.png similarity index 100% rename from results/tinygo-0.39.0.png rename to results_/tinygo-0.39.0.png diff --git a/results/tinygo-0.40.0.png b/results_/tinygo-0.40.0.png similarity index 100% rename from results/tinygo-0.40.0.png rename to results_/tinygo-0.40.0.png