Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Chrome 60
Windows
Other
7 years ago
Test name Executions per second
Cubic polynomials with 3 real roots 1311.8 Ops/sec
Cubic polynomials with flat random coefficients 1279.7 Ops/sec
Degree 4 polynomials with 4 real roots 529.9 Ops/sec
Degree 4 polynomials with flat random coefficients 531.2 Ops/sec
Degree 7 polynomials with 7 real roots 139.6 Ops/sec
Degree 7 polynomials with flat random coefficients 138.5 Ops/sec
Degree 12 polynomials with 12 real roots 140.0 Ops/sec
Deg 12 polynomials with flat random coefficients 138.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • 100 cubic polynomials with 3 real roots

  • 100 cubic polynomials with random coefficients

  • 100 degree 4 polynomials with 4 real roots

  • 100 degree 4 polynomials with random coefficients

  • 100 degree 7 polynomials with 7 real roots

  • 100 degree 7 polynomials with random coefficients

  • 100 degree 12 polynomials with 12 real roots

  • 100 deg 12 polynomials with random coefficients

  • 100 degree 15 polynomials with 15 real roots

  • 100 deg 15 polynomials with random coefficients