Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
normal function with/without arguments/eval
hypothesis: having arguments/direct eval in a function body makes it slower(?)
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/142.0.0.0 Safari/537.36
Browser:
Chrome 142
Operating system:
Linux
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
normal
182421552.0 Ops/sec
eval
188933712.0 Ops/sec
arguments
190310176.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let bigNum = 1e7 let a = function closure() { let big = Array(bigNum).fill(2) let big2 = Array(bigNum).fill(2) let big3 = Array(bigNum).fill(2) return function(a, b) { true || true return a + b } }() let b = function closure() { let big = Array(bigNum).fill(2) let big2 = Array(bigNum).fill(2) let big3 = Array(bigNum).fill(2) return function(a, b) { true || eval('never reached') return a + b } }() let c = function closure() { let big = Array(bigNum).fill(2) let big2 = Array(bigNum).fill(2) let big3 = Array(bigNum).fill(2) return function(a, b) { true || arguments.callee return a + b } }()
Tests:
normal
a(1,2,3,4,5,6,7)
eval
b(1,2,3,4,5,6,7)
arguments
c(1,2,3,4,5,6,7)