Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146
Windows
Desktop
8 months ago
Benchmark.js
.get() only
2K/s
.has() and .get()
1K/s
View exact numbers
Test name Executions per second
.get() only 1,640 Ops/sec
.has() and .get() 1,259 Ops/sec
Script Preparation code:
Tests: