-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
79 lines (72 loc) · 2.75 KB
/
Copy pathmise.toml
File metadata and controls
79 lines (72 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#:schema ./schema/mise.json
min_version = "2024.1.1"
[env]
_.path = ["./target/debug", "./node_modules/.bin"]
[tools]
actionlint = "latest"
# Pinned rather than "latest" because tak is the measuring instrument: an
# upgrade that changes how it samples would land in the series as a step change
# in mise's numbers, indistinguishable from a real regression. Bump
# deliberately, on a commit that does nothing else.
"github:jdx/tak" = "0.0.5"
age = "latest"
aube = "latest"
bun = "latest"
cargo-binstall = "latest"
communique = "latest"
cargo-insta = "latest"
git-cliff = "latest"
usage = "latest"
gh = "latest"
hk = "latest"
jq = "latest"
lua-language-server = "latest"
stylua = "latest"
"npm:markdownlint-cli" = "latest"
prettier = "3.9.6"
"npm:ajv-cli" = "latest"
pkl = "latest"
shellcheck = "latest"
shfmt = "latest"
taplo = "latest"
wait-for-gh-rate-limit = "latest"
sops = "latest"
node = "24"
[task_config]
includes = ["tasks.toml", "xtasks"]
# Instruction-counted benchmarks (see tak.toml). Needs valgrind for the counts;
# without it tak reports wall clock only and says so, so this still works on
# macOS where there is no usable cachegrind.
#
# `--release`, not `--profile serious`: LTO roughly triples the build for a
# number whose absolute value does not matter. What matters is that every
# measurement in a series is built the same way, and the series is partitioned
# on runner class so a change of build profile would start a fresh one anyway.
[tasks.perf]
dir = "{{config_root}}"
# MISE_OFFLINE keeps `ls`, `env` and `hook-env` off the network. Without it they
# log HTTP warnings and their instruction counts move with whatever the registry
# happened to answer.
env = { MISE_OFFLINE = "1" }
run = ["cargo build --release", "tak run"]
# Same measurement, appended to refs/notes/tak for this commit. Run by the
# `perf` workflow on every push to main; the notes are the history. Safe to run
# locally — nothing leaves the machine until `tak push`.
[tasks."perf:record"]
dir = "{{config_root}}"
env = { MISE_OFFLINE = "1" }
run = ["cargo build --release", "tak run --record"]
# End-to-end task artifact cache phases. The harness generates an isolated
# large fixture so benchmark inputs never need to be checked into the repo.
[tasks."perf:task-cache"]
dir = "{{config_root}}"
run = ["cargo build --release", "bash benchmarks/task-cache/benchmark.sh"]
# Measures the argv0-dispatched rustc wrapper path without config discovery or
# runtime startup. Keep the warm median below the 2ms compiler-wrapper budget.
[tasks."perf:cache-shim"]
dir = "{{config_root}}"
env = { MISE_BIN = "target/serious/mise" }
run = [
"cargo build --profile serious --no-default-features --features rustls-native-roots,self_update,vfox/vendored-lua,openssl/vendored",
"bash benchmarks/cache-shim/benchmark.sh",
]