HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
x
 
function getRandomArray() {
    const arr = [];
    for (let i = 0; i < 10000; i++) {
        Math.floor(Math.random() * 100000) + 1;
    }
    return arr;
}
var randomArr = getRandomArray()
Tests:
  • Modulo

     
    const x = randomArr.map(x => x % 2 === 1)
  • bitwise AND

     
    const y = randomArr.map(x => x & 1 === 1)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Modulo
    bitwise AND

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 18 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Linux
View result in a separate tab
Test name Executions per second
Modulo 71377880.0 Ops/sec
bitwise AND 65315804.0 Ops/sec