Script Preparation code:
x
 
var bigIntL = 1000000n
var bigIntM = 50n
var bigInt2 = 2n
var numberL = 1000000
var numberM = 50
var number2 = 2
Tests:
  • BigInt

     
    a = bigIntL
    b = bigIntM
    c = a - b
    c = a % b
    c = a * b
    c = a + b
    c = bigInt2 ** b
  • Number

     
    a = numberL
    b = numberM
    c = a - b
    c = a % b
    c = a * b
    c = a + b
    c = number2 ** 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: 11 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
BigInt 4513699.5 Ops/sec
Number 65226244.0 Ops/sec