add fractions benchmarks by scoder · Pull Request #10 · python/pyperformance (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see a reason why the benchmarks shouldn't support non-stdlib libraries that reimplement standard Python functionality, as long as it can be achieved with a reasonable amount of adaptation. The elementtree benchmark I've written also supports lxml (AFAICT, it's been modified since), you can pass the library to import by name.

And since you asked, yes, gmpy2 would certainly qualify, also for the original telco benchmark, I guess.