Create script to refactor benchmarks v1 to v2 #2141
Labels
I9-optimisation
An enhancement to provide better overall performance in terms of time-to-completion for a task.
T10-tests
This PR/Issue is related to tests.
T12-benchmarks
This PR/Issue is related to benchmarking and weights.
This came up in the FRAME weekly call today. We should create a script that will update all the benchmark v1 syntax and structure to benchmark v2. This would alleviate manual work and help the wider community.
the script would most likely use the syn crate and the
quote!
macro to parse tokens.Some further inspiration (not for logic or functionality, but its use of syn) : https://github.com/sam0x17/macro_magic/blob/main/core_macros/src/lib.rs.
The finished script should be pushed to its own repo so that the wider network can make use of it. Creating this issue to track the progress of it as we can use it to refactor the benchmarks.
Example refactor #1868
The text was updated successfully, but these errors were encountered: