core_bench icon indicating copy to clipboard operation
core_bench copied to clipboard

Test `file_name` is ignored when saving?

Open ElectreAAS opened this issue 2 years ago • 0 comments

Hello, When using Core_bench.Bench.Test.create with a ~file_name parameter, it is completely ignored? In this MWE.txt, I use a long descriptive name for the test and a simple name for the file_name, but here's what happens:

dune exec ./main.exe bench1 -- -save

Measurements will be saved.       
Estimated testing time 10s (1 benchmarks x 10s). Change using '-quota'.
Saving to: Long_Descriptive_Name-2022-06-20-12:11-10s.txt.
┌───────────────────────┬──────────┬─────────┬────────────┐
│ Name                  │ Time/Run │ mWd/Run │ Percentage │
├───────────────────────┼──────────┼─────────┼────────────┤
│ Long Descriptive Name │ 114.14ns │  60.00w │    100.00% │
└───────────────────────┴──────────┴─────────┴────────────┘

How could I ensure the measurements are saved in a predetermined location?

ElectreAAS avatar Jun 20 '22 10:06 ElectreAAS