Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 2 additions & 3 deletions fannkuch-redux/args.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
6
7
9
9
10
4 changes: 2 additions & 2 deletions fasta/args.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
12500000
25000000
1000000
8000000
5 changes: 2 additions & 3 deletions n-body-nosqrt/args.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
50000
100000
200000
200000
300000
5 changes: 2 additions & 3 deletions n-body/args.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
50000
100000
200000
200000
300000
3 changes: 2 additions & 1 deletion plot_/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes
File renamed without changes