Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
let vs const v1
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/118.0.0.0 Safari/537.36
Browser:
Chrome 118
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
const
4.1M/s
let
4.1M/s
View exact numbers
Test name
Executions per second
✓
const
4,147,894 Ops/sec
let
4,108,725 Ops/sec
Script Preparation code:
function send_nodeagg(aggr) { return aggr.get('key')}
Tests:
let
let nagg = new Map(); let nodeagg = {aggr: nagg, send: send_nodeagg, currdt: '', currhost: '', currmap: new Map()}; nodeagg.send(nodeagg.aggr);
const
const nagg = new Map(); const nodeagg = {aggr: nagg, send: send_nodeagg, currdt: '', currhost: '', currmap: new Map()}; nodeagg.send(nodeagg.aggr);