Script Preparation code:
AخA
 
var bigInt1 = 1000000n
var bigInt2 = 50n
var number1 = 1000000
var number2 = 50
Tests:
  • BigInt

     
    a = bigInt1
    b = bigInt2
    c = a - b
    c = a % b
    c = a * b
    c = a + b
    c = a ** b
  • Number

     
    a = number1
    b = number2
    c = a - b
    c = a % b
    c = a * b
    c = a + b
    c = a ** b
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    BigInt
    Number

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Linux
View result in a separate tab
Test name Executions per second
BigInt 1433377.8 Ops/sec
Number 37934000.0 Ops/sec