Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
evaluating strings
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
eval
2214062.8 Ops/sec
indirect eval
1995268.1 Ops/sec
Function()
865034.6 Ops/sec
^on.+$
18710.5 Ops/sec
setTimeout
698108.2 Ops/sec
HTML Preparation code:
<div id="a"></div>
Script Preparation code:
let code = `${JSON.stringify(Array.from({length:300},(a,i)=>i))}.reduce((a,b)=>a+b)`, Eval = eval
Tests:
eval
eval(code)
indirect eval
Eval(code)
Function()
Function(code)()
^on.+$
a.setAttribute('onclick', code) a.click()
setTimeout
setTimeout(code)