mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.08k stars 208 forks source link

Beef up pytest to allow for a benchmarking option #1581

Closed rocky closed 2 years ago

rocky commented 2 years ago

We can enhance the pytests to facilitate benchmarking the tests.

While it is true that benchmarking and testing are separate, a simple change here can give some idea.

Basically most of the pytests funnel through a few helper routines. So that would test an environment setting and accumulate timings if that's set.

TiagoCavalcante commented 2 years ago

@rocky I think it is already fixed by TraceBuiltins.

rocky commented 2 years ago

Yes, benchmarking in another repo is much better here.