HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
const arr = Array.from({ length: 100000 }, () => Math.random());
Tests:
  • Approximation

    x
     
    function sine(v) {
        return 0.5 - 0.5 * Math.cos(v * Math.PI);
    }
    arr.map(el => sine(el));
  • Math.sin

     
    arr.map(el => Math.sin(el));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Approximation
    Math.sin

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 days ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/136.2 Mobile/15E148 Safari/605.1.15
Mobile Safari 18 on iOS 18.3.2
View result in a separate tab
Test name Executions per second
Approximation 1001.1 Ops/sec
Math.sin 1587.9 Ops/sec