Tests:
Test 1 — eval (UI script):
Test 2 — new Function (UI script, no cache):
Test 3 — new Function (UI script, cached):
Test 4 — script tag (UI script):
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
5 months ago )
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Browser/OS:
Chrome 146 on Windows
View result in a separate tab
Embed
Test 3 — new Function (UI script, cached):
265K/s
Test 2 — new Function (UI script, no cache):
198K/s
Test 1 — eval (UI script):
180K/s
Test 4 — script tag (UI script):
47K/s
View exact numbers
Test name
Executions per second
✓
Test 3 — new Function (UI script, cached):
264,771 Ops/sec
Test 2 — new Function (UI script, no cache):
198,166 Ops/sec
Test 1 — eval (UI script):
179,579 Ops/sec
Test 4 — script tag (UI script):
47,247 Ops/sec
Do you really want to delete benchmark?