Benchmarking arbitrary precision libraries in Java

Edit (2025-05-08): Changed some test parameters and re-run the tests. Also added bar plots. Note: I have since written a new blog which includes Quadruple to the benchmarks, beating both Apfloat and BigDecimal consistently. I recently set out to compare the performance of Apfloat and BigDecimal for arbitrary precision arithmetic in Java. I use arbitrary precision floating point numbers in key…