Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Test 1 — eval (expression):
    Test 2 — new Function (expression, no cache):
    Test 3 — new Function (expression, cached):
    Test 4 — script tag (expression):

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Windows
View result in a separate tab
Test 3 — new Function (expression, cached):
113.7M/s
Test 1 — eval (expression):
12.1M/s
Test 2 — new Function (expression, no cache):
2.6M/s
Test 4 — script tag (expression):
115K/s
View exact numbers
Test name Executions per second
Test 3 — new Function (expression, cached): 113,740,376 Ops/sec
Test 1 — eval (expression): 12,103,658 Ops/sec
Test 2 — new Function (expression, no cache): 2,595,849 Ops/sec
Test 4 — script tag (expression): 115,228 Ops/sec