Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
fn field vs obj field
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 17
Operating system:
iOS 17.1.2
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
fn2
36.5M/s
obj
33.7M/s
fn
33.1M/s
View exact numbers
Test name
Executions per second
✓
fn2
36,465,088 Ops/sec
obj
33,703,032 Ops/sec
fn
33,114,060 Ops/sec
Script Preparation code:
var fn = () => {} var fn2 = function fn2() {} var obj = {}
Tests:
fn
fn.a = 'a'
fn2
fn2.a = 'a'
obj
obj.a = 'a'