Tests:
-
Empty Map + loop insert - creation
-
Map constructor - creation
-
Object with eval hack - creation
-
Empty Map + loop insert - lookup
-
Map constructor - lookup
-
Eval hack - lookup
-
Empty object - creation
-
Empty object - lookup
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
Map constructor - creation
157K/s
Empty Map + loop insert - creation
154K/s
Empty object - creation
149K/s
Object with eval hack - creation
93K/s
Map constructor - lookup
39K/s
Empty Map + loop insert - lookup
39K/s
Empty object - lookup
29K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Map constructor - creation
|
157,437 Ops/sec |
|
Empty Map + loop insert - creation
|
154,122 Ops/sec |
|
Empty object - creation
|
148,925 Ops/sec |
|
Object with eval hack - creation
|
93,489 Ops/sec |
|
Map constructor - lookup
|
38,870 Ops/sec |
|
Empty Map + loop insert - lookup
|
38,849 Ops/sec |
|
Empty object - lookup
|
28,887 Ops/sec |
|
Eval hack - lookup
|
11,986 Ops/sec |
Do you really want to delete benchmark?