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 1219.0 Ops/sec
Cubic polynomials with flat random coefficients 13691.4 Ops/sec
Degree 4 polynomials with 4 real roots 513.4 Ops/sec
Degree 4 polynomials with flat random coefficients 1855.3 Ops/sec
Degree 7 polynomials with 7 real roots 134.6 Ops/sec
Degree 7 polynomials with flat random coefficients 397.0 Ops/sec
Degree 12 polynomials with 12 real roots 37.7 Ops/sec
Deg 12 polynomials with flat random coefficients 124.9 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