Tests:
-
lodash.get
-
Optional chaining (babel es2015)
-
safeGet
-
dlv (dot notation)
-
dlv (array notation)
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141 on Mac OS X 10.15
View result in a separate tab
Optional chaining (babel es2015)
203.9M/s
dlv (array notation)
46.4M/s
dlv (dot notation)
13.0M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Optional chaining (babel es2015)
|
203,880,032 Ops/sec |
|
dlv (array notation)
|
46,350,168 Ops/sec |
|
safeGet
|
27,241,982 Ops/sec |
|
lodash.get
|
25,525,192 Ops/sec |
|
dlv (dot notation)
|
12,975,039 Ops/sec |
Do you really want to delete benchmark?