Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Eval vs Function - GOSSTEST
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 26_2_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/142.0.7444.148 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 142
Operating system:
iOS 26.2.0
Device Platform:
Mobile
Date tested:
7 months ago
Test name
Executions per second
eval(`(${theFunc})(3, 4)`)
0.0 Ops/sec
Function
12048562.0 Ops/sec
Script Preparation code:
var theFunc = "function(a,b) { return a + b }"
Tests:
eval(`(${theFunc})(3, 4)`)
eval(`${theFunc}()`)
Function
new Function(`return ${theFunc}`)()(3,4)