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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@ matrix-results/
# Convolution method benchmark output (benchmark/methods.jl).
methods-results/

# Benchmark harness outputs: the A/B rounds and the suite's unsaved runs.
# Benchmark harness outputs: the A/B rounds.
ab-results/
benchmark/suite/results/
16 changes: 0 additions & 16 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@ The revisions are checked out as worktrees of commits, with this checkout's `ben
`ab-results/REPORT.md` holds the report and `ab-results/ab.tsv` its rows.
A rerun with the same `--out` resumes the run with the same commits.

## Record a commit: `suite/run.jl`

```sh
julia benchmark/suite/run.jl --no-save # print only
julia benchmark/suite/run.jl # save to the benchmark-results branch
julia benchmark/suite/run.jl --store=DIR # save to a directory
```

The suite is run by hand on one named machine.
A run is one file, `runs/<machine>/<UTC time>-<short sha>.tsv`, whose head records the commit, the machine and the AD package versions.
`<machine>` is `BENCHMARK_MACHINE`, or the CPU model and thread count.
Each target runs `--repeats` times (default 2), and a target's noise band is the 90th percentile of the absolute log ratio between repeats.
Saving rewrites `history.html` beside `runs/`, which compares two runs and plots every run in commit order, one machine at a time.
A run with uncommitted changes is not saved.
`--release` labels a run `v<version>` and requires that tag on the commit.

## Time a modifier's gradient routes: `routes/run.jl`

```sh
Expand Down
7 changes: 0 additions & 7 deletions benchmark/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ tasks:
cmds:
- julia --startup-file=no benchmark/ab.jl {{.CLI_ARGS}}

suite:
desc: "Time this commit on this machine and save the run (usage: task -t benchmark/Taskfile.yml suite -- --no-save)"
dir: '{{.TASKFILE_DIR}}/..'
cmds:
- julia --project=benchmark -e 'using Pkg; Pkg.instantiate()'
- julia --startup-file=no benchmark/suite/run.jl {{.CLI_ARGS}}

figures:
desc: "Draw the performance figures from an A/B result directory (usage: task -t benchmark/Taskfile.yml figures -- ab-results)"
dir: '{{.TASKFILE_DIR}}/..'
Expand Down
4 changes: 2 additions & 2 deletions benchmark/harness.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Shared by `ab.jl` and `suite/run.jl`: options, git, the machine's
# Used by `ab.jl`: options, git, the machine's
# description and one timed process of `matrix.jl`.

using LinearAlgebra: BLAS

const REPO = normpath(joinpath(@__DIR__, ".."))

@doc raw"The targets of `matrix.jl` a comparison or a suite run times."
@doc raw"The targets of `matrix.jl` a comparison times."
const HARNESS_TARGETS = [
"primal", "ForwardDiff", "Mooncake reverse", "Mooncake forward",
"Enzyme reverse", "Enzyme forward",
Expand Down
95 changes: 0 additions & 95 deletions benchmark/suite/history.jl

This file was deleted.

Loading
Loading