microsoft / knossos-ksc

Compiler with automatic differentiation
Other
45 stars 10 forks source link

Allow benchmark with automatic rounds + setup function #890

Closed cgravill closed 3 years ago

cgravill commented 3 years ago

Partial version of AB#19173

pytest-benchmark has a simple benchmark() function and a pedantic() function we want an in-between, where we can give a setup function but allow "rounds" to be automatically determined

Potentially propose to pytest-benchmark project adding an optional setup function to the simple benchmark() function, but it's messy as you can't pass args AND setup

cgravill commented 3 years ago

image

toelli-msft commented 3 years ago

Very handy, thanks!

toelli-msft commented 3 years ago

This works very well!