Proto/bench: add benchmark for take_fees
Context
This MR adds a benchmark for take_fees in apply.ml, it would be used to observe the performance gain when tackling #4788.
Preliminary observation: the functions seems to be linear, takes about 13000ns per operation in the batch
Manually testing the MR
./octez-snoop benchmark proto/alpha/apply/Take_fees and save to take_fees.workload
./octez-snoop infer parameters for model take_fees on data take_fees.workload using lasso --lasso-positive --plot
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Lucas Randazzo
