Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
new Function
49.4M/s
eval
3.6M/s
Script Blob
816/s

Fastest: new Function (60578.9x faster)

View exact numbers
  • new Function: 49,402,472 ops/sec
  • eval: 3,567,026 ops/sec
  • Script Blob: 816 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
    Script Blob

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36
Chrome Mobile 135 on Android
View result in a separate tab
new Function
83.2M/s
eval
4.6M/s
Script Blob
389/s
View exact numbers
Test name Executions per second
new Function 83,195,416 Ops/sec
eval 4,581,632 Ops/sec
Script Blob 389 Ops/sec