Skip to content

Commit 1f9b6e3

Browse files
committed
Simplify specifying benchmark output file
1 parent e561e7a commit 1f9b6e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

perf/runbenchmarks.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ macro async_benchmarkable(ex...)
1414
end
1515
end
1616

17+
if !@isdefined(BENCHOUT)
18+
BENCHOUT = "benchmarkresults.json"
19+
end
20+
1721
# before anything else, run latency benchmarks. these spawn subprocesses, so we don't want
1822
# to do so after regular benchmarks have caused the memory allocator to reserve memory.
1923
@info "Running latency benchmarks"
2024
latency_results = include("latency.jl")
2125

22-
SUITE = BenchmarkGroup()
26+
SUITE = BenchmarkGroup([BENCHOUT])
2327

2428
include("cuda.jl")
2529
include("kernel.jl")
@@ -50,4 +54,4 @@ results["latency"] = latency_results
5054
results["integration"] = integration_results
5155

5256
# write out the results
53-
BenchmarkTools.save("benchmarkresults.json", median(results))
57+
BenchmarkTools.save(BENCHOUT, median(results))

0 commit comments

Comments
 (0)