test-case icon indicating copy to clipboard operation
test-case copied to clipboard

macro for bench cases

Open Thomblin opened this issue 2 years ago • 1 comments

Hi there,

I really like this plugin. Not sure if this already exists, anyways I did not find it: Did you ever consider to extend or clone this crate to create cases for benchmarks as well? It would be really helpful to bechmark different implementations of an algorithm or the effect of different inputs to a function (for example length of a String that shall be manipulated).

Thomblin avatar Dec 30 '23 21:12 Thomblin

Haven't really considered it. It should be rather easy to do with test-case-core lib, as it provides all parsing for the test_case() body. I don't think we'll have time to do it on our own in near time, so if you feel like it, you can tackle that feature. It can be either part of this repo, or even separate one (we can link to it from our README :) )

luke-biel avatar Jan 13 '24 06:01 luke-biel