HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
new Function
109.0M/s
eval
6.6M/s
mathjs
743K/s

Fastest: new Function (146.7x faster)

View exact numbers
  • new Function: 108,980,384 ops/sec
  • eval: 6,647,882 ops/sec
  • mathjs: 742,732 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
    eval
    new Function
    mathjs

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Windows
View result in a separate tab
new Function
241.7M/s
eval
27.5M/s
mathjs
1.3M/s
View exact numbers
Test name Executions per second
new Function 241,676,720 Ops/sec
eval 27,518,842 Ops/sec
mathjs 1,251,868 Ops/sec