HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
isNaN
2.5M/s
regex
2.3M/s
string comparison
2.3M/s

Fastest: isNaN (1.1x faster)

View exact numbers
  • isNaN: 2,547,884 ops/sec
  • regex: 2,299,551 ops/sec
  • string comparison: 2,288,379 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    isNaN
    regex
    string comparison

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
isNaN
2.5M/s
regex
2.3M/s
string comparison
2.3M/s
View exact numbers
Test name Executions per second
isNaN 2,547,884 Ops/sec
regex 2,299,551 Ops/sec
string comparison 2,288,379 Ops/sec