tuupola / base62

Base62 encoder and decoder for arbitrary data
MIT License
194 stars 19 forks source link

Test enhancement #8

Closed peter279k closed 6 years ago

peter279k commented 6 years ago

Changed log

tuupola commented 6 years ago

Everything otherwise good, but I would not suggest ext-bcmath It is actually slower than the pure PHP driver. I did the BCMatch thing mostly out of curiosity.

$ phpbench run benchmarks/ --report=default

+-----------------------+-----------------+----------------+
| subject               | mean            | diff           |
+-----------------------+-----------------+----------------+
| benchGmpEncoder       | 73,099.415ops/s | 0.00%          |
| benchGmpEncoderCustom | 61,349.693ops/s | +19.15%        |
| benchPhpEncoder       | 25.192ops/s     | +290,072.37%   |
| benchBcmathEncoder    | 7.264ops/s      | +1,006,253.07% |
+-----------------------+-----------------+----------------+
tuupola commented 6 years ago

Thanks!