Commit Graph
131 Commits
Author SHA1 Message Date
David Peter 488f18a1a7 Minor change 2026-10-05 16:00:48 +02:00
David Peter e9892eaa13 Split out statistics module 2026-10-05 16:00:48 +02:00
David Peter 9c2ee56cba Cleanup 2026-10-05 16:00:48 +02:00
David Peter 3a2c8ab177 Unit safe statistics functions 2026-10-05 16:00:35 +02:00
David Peter f342e1f5de Make memory units available 2026-10-05 16:00:35 +02:00
David Peter 534d5683ab Yet another API iteration 2026-10-05 16:00:21 +02:00
David Peter 6b4e9eb5c2 Represent memory usage as f64 as well 2026-10-05 16:00:08 +02:00
David Peter ebf127338c Further simplification of the API 2026-10-05 16:00:08 +02:00
David Peter 4badeb6312 Quantity API cleanup 2026-10-05 15:59:56 +02:00
David Peter 500bc36da6 TODO comments 2026-10-05 15:59:43 +02:00
David Peter 3494c8abe6 Remove alternative constructors 2026-10-05 15:59:43 +02:00
David Peter 418e43a652 Implement TimeUnit functions via uom 2026-10-05 15:59:28 +02:00
David Peter 71365c227e Refactoring 2026-10-05 15:59:11 +02:00
David Peter be66a6668f Move quantity module 2026-10-05 15:59:11 +02:00
David Peter 641451aea6 Use uom 2026-10-05 15:59:10 +02:00
David Peter 9ec7a9c920 Add short unit 2026-10-05 15:58:57 +02:00
David Peter a119cbaf2d Add unit information 2026-10-05 15:58:57 +02:00
David Peter d813652178 Rename to exit_code 2026-10-05 15:58:56 +02:00
David Peter 42e75c1737 Unify TimingResult/TimerResult/Measurement 2026-10-05 15:58:56 +02:00
David Peter f9aa299c0f Switch to unit-safe quantities 2026-10-05 15:58:56 +02:00
David Peter 914d5cbc59 Units 2026-10-05 15:57:26 +02:00
David Peter d4c6b53e40 Runs => Measurements 2026-10-05 15:57:26 +02:00
David Peter 8ba632c954 More simplifications 2026-10-05 15:57:12 +02:00
David Peter f7e6d7286f Simplify run creation 2026-10-05 15:56:53 +02:00
David Peter c20fcc0bda Real => wall clock 2026-10-05 15:56:53 +02:00
David Peter af4422d212 Remove command_with_unused_parameters field 2026-10-05 15:56:52 +02:00
David Peter ae0035ad56 Use wait4 instead of getrusage 2026-10-05 15:56:37 +02:00
David Peter 50232feb22 Move user and system time 2026-10-05 15:56:36 +02:00
David Peter 14d773998a Introduce new BenchmarkRun struct 2026-10-05 15:56:36 +02:00
David Peter 463a889638 Simplify parameterized reference handling 2026-10-05 15:07:46 +02:00
David Peter f7429e2fb2 Use parameterized benchmarks as references 2026-10-05 14:59:18 +02:00
David Peter 0f2871bd66 Address review feedback 2026-10-05 14:16:33 +02:00
Devon Hollowood ce704016f9 Make time elapsed only show up initially 2026-10-05 14:14:15 +02:00
David Peter 8084a9eb7f Adopt the remaining statistics changes from #790 2026-10-05 13:57:31 +02:00
David Peter df49a04a66 Use typed quantities for relative-speed calculations 2026-10-05 13:41:20 +02:00
David Peter e689520fb5 Merge pull request #969 from sharkdp/codex/result-measurements
Store typed Measurements in BenchmarkResult
2026-10-05 12:51:22 +02:00
David Peter b23372c5e2 Store typed Measurements in BenchmarkResult 2026-10-05 12:46:10 +02:00
David Peter 30a2b61d4c Merge pull request #807 from willcl-ark/expose-run-var
expose HYPERFINE_ITERATION to intermediate commands
2026-10-05 12:45:29 +02:00
David Peter 3558138cea Further simplifications 2026-10-05 12:40:33 +02:00
David Peter 8c40de45f8 Store parameter usage metadata in benchmark results 2026-10-05 12:35:24 +02:00
willcl-ark 44c0cc231b expose HYPERFINE_ITERATION to intermediate commands
Fixes: #781

Expose the `$HYPERFINE_ITERATION` variable to intermediate commands.
This will allow iteration-specific prepare/conclude, such as:

```bash
hyperfine --runs 5 --prepare 'echo touch file${HYPERFINE_ITERATION}.dat' \
    'echo testing file${HYPERFINE_ITERATION}.dat' \
    --conclude 'echo rm file${HYPERFINE_ITERATION}.dat' --show-output
```
2026-10-05 12:24:43 +02:00
David Peter 6f557e0494 Extract typed quantity formatting 2026-10-05 11:46:49 +02:00
David Peter b5f58651a1 Extract quantity and command helpers 2026-10-05 11:14:09 +02:00
David Peter aa14b8c0d9 Group units, formatting, and statistics under quantity 2026-10-05 10:46:51 +02:00
David Peter bef66df7e4 Restore original quantity trait and comments 2026-10-05 10:43:13 +02:00
David Peter a8e56efecc Use uom quantities for benchmark measurements 2026-10-05 10:32:32 +02:00
David Peter db3a3dedc7 Collect benchmark runs in Measurements 2026-10-05 10:10:09 +02:00
David Peter 35c94a0e36 Clarify internal measurement field names 2026-10-05 10:09:41 +02:00
David Peter 750fe11b85 Merge pull request #954 from sharkdp/codex/remove-statistical
Replace statistical with local floating-point helpers
2026-10-05 10:03:27 +02:00
David Peter 305e89d536 Consolidate min and max in the statistics module 2026-10-05 10:00:07 +02:00