bencher icon indicating copy to clipboard operation
bencher copied to clipboard

Add a Divan adapter

Open epompeii opened this issue 1 year ago โ€ข 1 comments

https://github.com/nvzqz/divan

For now the adapter will need to parse the text output: https://github.com/nvzqz/divan/issues/10

It would be nice to have https://github.com/bencherdev/bencher/issues/240 complete or once implemented do auto-tagging of the generic benchmarks. From the announcement post:

scratch        fastest  โ”‚ slowest  โ”‚ median   โ”‚ mean     โ”‚ samples โ”‚ iters
โ”œโ”€ from_str             โ”‚          โ”‚          โ”‚          โ”‚         โ”‚
โ”‚  โ”œโ”€ &str     0.738 ns โ”‚ 0.799 ns โ”‚ 0.759 ns โ”‚ 0.757 ns โ”‚ 100     โ”‚ 409600
โ”‚  โ•ฐโ”€ String   26.8 ns  โ”‚ 32.18 ns โ”‚ 30.39 ns โ”‚ 30.42 ns โ”‚ 100     โ”‚ 25600
โ•ฐโ”€ init_array           โ”‚          โ”‚          โ”‚          โ”‚         โ”‚
   โ”œโ”€ 1000     572.5 ns โ”‚ 598.6 ns โ”‚ 583 ns   โ”‚ 584.5 ns โ”‚ 100     โ”‚ 800
   โ”œโ”€ 2000     1.155 ยตs โ”‚ 1.197 ยตs โ”‚ 1.166 ยตs โ”‚ 1.165 ยตs โ”‚ 100     โ”‚ 400
   โ•ฐโ”€ 3000     1.759 ยตs โ”‚ 1.801 ยตs โ”‚ 1.77 ยตs  โ”‚ 1.77 ยตs  โ”‚ 100     โ”‚ 400

This would add tags &str and String for from_str; 1000, 2000, and 3000 for init_array.

Note though that each generic benchmark would be "monomorphized". There would be both from_str<&str> and a from_str<String> benchmark created in Bencher.

epompeii avatar Feb 08 '24 16:02 epompeii

Heads up that I'm planning to get JSON output published soon. Parameters (args, types, thread count) will be properties of benchmark runs rather than part of the benchmark path. The last component of the benchmark path will be the benchmarked function. It will be up to programs consuming the output to determine how they want to present parameters.

nvzqz avatar Jun 30 '24 10:06 nvzqz