mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
This tool runs a bunch of accuracy and performance tests on standard math functions. The accuracy is measured against the MPFR library, which provides results precise enough to be correctly rounded to double precision floating points. By default, the tool test the math functions from AK but a runtime flag can be used to instead test the system's libm. A few test cases are internally generated, but to get more precise results the tool is capable of reading worst-cases files from the CORE-MATH project. The location of the repository should be given with the --core-math PATH option. Heavily inspired by https://github.com/nico/js-math-bench.