brick / math

Arbitrary-precision arithmetic library for PHP
MIT License
1.78k stars 75 forks source link

Performance checks #39

Closed vv12131415 closed 4 years ago

vv12131415 commented 4 years ago

I would like to use this lib, but I'm concerned about performance of it.

I would be nice to see section like https://github.com/thecodingmachine/safe#performance-impact (and also this https://github.com/thecodingmachine/safe/tree/master/performance) to see performance results.

BenMorel commented 4 years ago

Hi, the performance is great when using GMP or BCMath. Of course when no extension is present, it has to perform calculations in pure PHP, which is much slower.

You're welcome to write a performance test suite and PR it!

BenMorel commented 4 years ago

Closing due to lack of feedback. Feel free to open a PR for a performance test suite!