about summary refs log tree commit diff
path: root/tests/run-make/libtest-padding
AgeCommit message (Collapse)AuthorLines
2024-06-26rewrite libtest-padding to rmakeOneirical-14/+46
2024-05-24Stabilize the runtime of libtest-paddingBen Kimock-6/+2
The body of these benchmarks is close to empty but not literally empty. This was making the runtime of the benchmarks (which are compiled without optimizations!) flicker between 9 ns and 10 ns runtime, which changes the padding and breaks the test. Recent changes to the standard library have pushed the runtime closer to 10 ns when unoptimized, which is why we haven't seen such failures before in CI. Contributors can also induce such failures before this PR by running the run-make tests while the system is under heavy load.
2024-05-06print walltime benchmarks with subnanosecond precisionThe 8472-1/+1
example results when benchmarking 1-4 serialized ADD instructions ``` running 4 tests test add ... bench: 0.24 ns/iter (+/- 0.00) test add2 ... bench: 0.48 ns/iter (+/- 0.01) test add3 ... bench: 0.72 ns/iter (+/- 0.01) test add4 ... bench: 0.96 ns/iter (+/- 0.01) ```
2023-12-07libtest: Fix padding of benchmarks run as testsMartin Nordholts-2/+2
Before this fix we applied padding before manually doing what `convert_benchmarks_to_tests()` does. Instead use `convert_benchmarks_to_tests()` if applicable and then apply padding afterwards so it becomes correct. (Benches should only be padded when run as benches to make it easy to compare the benchmark numbers.)
2023-12-02libtest: Add regression tests for paddingMartin Nordholts-0/+50
As you can see the padding is wrong when running benches as tests. This will be fixed in the next commit. (Benches should only be padded when run as benches to make it easy to compare the benchmark numbers.)