You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
Our current Python benchmarks are based on ujson's script here.
It's a bit clunky to use and not really idiomatic (redundant code, custom implementation for printing the results as a table).
In addition to that, it's hard to make code changes and see the performance impact, because the measurements fluctuate a lot from run to run.
A modern alternative is pytest-benchmark. Since we already use pytest, it's would fit in well with the rest of our testing pipeline.
It provides powerful output methods for different use-cases:
It can also plot histograms to visualize the error bars as a box-plot.
It would be nice to move to pytest-benchmark as we could compare the measurements after each change using Travis CI.
The text was updated successfully, but these errors were encountered:
Not directly related to benchmark, I find out pytest-sugar shows pretty sweat test progress and start using it this year. Just FYI, wonder if you guys have interest 😃
Our current Python benchmarks are based on
ujson's
script here.It's a bit clunky to use and not really idiomatic (redundant code, custom implementation for printing the results as a table).
In addition to that, it's hard to make code changes and see the performance impact, because the measurements fluctuate a lot from run to run.
A modern alternative is pytest-benchmark. Since we already use pytest, it's would fit in well with the rest of our testing pipeline.
It provides powerful output methods for different use-cases:
It can also plot histograms to visualize the error bars as a box-plot.
It would be nice to move to pytest-benchmark as we could compare the measurements after each change using Travis CI.
The text was updated successfully, but these errors were encountered: