[go: up one dir, main page]

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

take_fees

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.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Lucas Randazzo

Merge request reports

Loading