Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Browser:
Chrome 145
Operating system:
Windows
Device Platform:
Desktop
Date tested:
6 months ago
Benchmark engine:
Benchmark.js
Function
6.0M/s
eval(`(${theFunc})(3, 4)`)
0/s
View exact numbers
Test name
Executions per second
✓
Function
6,021,564 Ops/sec
eval(`(${theFunc})(3, 4)`)
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)