## Adding property

|name|ops/sec|samples|
|-|-|-|
|Directly in the object|912,176,634|97|
|Using dot notation|911,858,323|99|
|Using define property (writable)|4,763,846|97|
|Using define property initialized (writable)|7,071,793|94|
|Using define property (getter)|2,785,968|93|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 20:19:52 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Directly in the object","opsSec":912176634.4410051,"samples":6},{"name":"Using dot notation","opsSec":911858323.3457873,"samples":6},{"name":"Using define property (writable)","opsSec":4763846.362880353,"samples":5},{"name":"Using define property initialized (writable)","opsSec":7071792.984144087,"samples":4},{"name":"Using define property (getter)","opsSec":2785967.849058611,"samples":4}]}-->

## Array.append (number)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.004ms
new Array(length)|10|0.002ms
array.push|100|0.094ms
new Array(length)|100|0.015ms
array.push|1,000|0.053ms
new Array(length)|1,000|0.026ms
array.push|10,000|0.27ms
new Array(length)|10,000|0.177ms
array.push|1,000,000|29.557ms
new Array(length)|1,000,000|7.969ms
array.push|100,000,000|1,962.148ms
new Array(length)|100,000,000|4,314.779ms
## Array.append (string)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.005ms
new Array(length)|10|0.003ms
array.push|100|0.016ms
new Array(length)|100|0.011ms
array.push|1,000|0.038ms
new Array(length)|1,000|0.021ms
array.push|10,000|0.306ms
new Array(length)|10,000|0.2ms
array.push|1,000,000|21.916ms
new Array(length)|1,000,000|7.309ms
array.push|100,000,000|2,083.417ms
new Array(length)|100,000,000|4,915.579ms

## Array Creation

|name|ops/sec|samples|
|-|-|-|
|new Array|217|85|
|Array.from|23|43|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 20:33:43 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"new Array","opsSec":217.24651601448107,"samples":2},{"name":"Array.from","opsSec":23.261679866019588,"samples":2}]}-->

## async function vs function

|name|ops/sec|samples|
|-|-|-|
|function|912,258,679|99|
|[async] async function|18,177,278|87|
|[async] function|372,827|33|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 20:40:01 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"function","opsSec":912258679.0486792,"samples":6},{"name":"[async] async function","opsSec":18177277.85342129,"samples":7},{"name":"[async] function","opsSec":372826.6935797394,"samples":3}]}-->

## Blob

|name|ops/sec|samples|
|-|-|-|
|new Blob (128)|6,230|89|
|new Blob (1024)|794|77|
|text (128)|6,509|88|
|text (1024)|824|89|
|arrayBuffer (128)|6,574|89|
|arrayBuffer (1024)|831|88|
|slice (0, 64)|191,793|55|
|slice (0, 512)|32,756|51|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 20:51:08 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"new Blob (128)","opsSec":6230.264611648926,"samples":6},{"name":"new Blob (1024)","opsSec":794.1658850876366,"samples":2},{"name":"text (128)","opsSec":6508.677014024432,"samples":6},{"name":"text (1024)","opsSec":823.6898507825849,"samples":2},{"name":"arrayBuffer (128)","opsSec":6574.214785337679,"samples":5},{"name":"arrayBuffer (1024)","opsSec":831.0773081224233,"samples":2},{"name":"slice (0, 64)","opsSec":191793.4658782101,"samples":4},{"name":"slice (0, 512)","opsSec":32756.192472145278,"samples":3}]}-->

## Comparison using `instanceof`

|name|ops/sec|samples|
|-|-|-|
|[True conditional] Using instanceof only|274,679|54|
|[True conditional] Using constructor name|228,154|96|
|[True conditional] Check if property is valid then instanceof |228,435|90|
|[False conditional] Using instanceof only|912,130,345|100|
|[False conditional] Using constructor name|913,253,201|94|
|[False conditional] Check if property is valid then instanceof |913,454,371|97|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 21:03:31 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"[True conditional] Using instanceof only","opsSec":274678.7330308187,"samples":3},{"name":"[True conditional] Using constructor name","opsSec":228154.00239916894,"samples":3},{"name":"[True conditional] Check if property is valid then instanceof ","opsSec":228435.25427802932,"samples":3},{"name":"[False conditional] Using instanceof only","opsSec":912130344.6276729,"samples":7},{"name":"[False conditional] Using constructor name","opsSec":913253200.6691492,"samples":6},{"name":"[False conditional] Check if property is valid then instanceof ","opsSec":913454370.8391877,"samples":8}]}-->

## Crypto Verify

|name|ops/sec|samples|
|-|-|-|
|crypto.createVerify('RSA-SHA256')|7,387|92|
|crypto.verify('RSA-SHA256')|7,401|93|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 21:10:31 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"crypto.createVerify('RSA-SHA256')","opsSec":7387.479555518012,"samples":4},{"name":"crypto.verify('RSA-SHA256')","opsSec":7401.1762732062425,"samples":3}]}-->

## Date format MM/DD/YYYY

|name|ops/sec|samples|
|-|-|-|
|Intl.DateTimeFormat().format(Date.now())|17,516|82|
|Intl.DateTimeFormat().format(new Date())|17,933|81|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|18,243|80|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|19,150|83|
|Reusing Intl.DateTimeFormat()|767,187|92|
|Date.toLocaleDateString()|881,002|93|
|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|21,569|83|
|Format using date.get*|0|0|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 21:32:33 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Intl.DateTimeFormat().format(Date.now())","opsSec":17515.51472983904,"samples":3},{"name":"Intl.DateTimeFormat().format(new Date())","opsSec":17932.644849859153,"samples":5},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())","opsSec":18243.0385385441,"samples":4},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())","opsSec":19149.713113549275,"samples":9},{"name":"Reusing Intl.DateTimeFormat()","opsSec":767187.4119048548,"samples":5},{"name":"Date.toLocaleDateString()","opsSec":881001.5581156994,"samples":4},{"name":"Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)","opsSec":21569.222524463854,"samples":7},{"name":"Format using date.get*","opsSec":0,"samples":0}]}-->

## Date String coersion

|name|ops/sec|samples|
|-|-|-|
|Using String()|1,168,471|94|
|Using brackets {}|1,194,098|99|
|Using '' + |1,190,530|96|
|Using date.toString()|1,345,072|91|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 21:44:03 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using String()","opsSec":1168471.0041188742,"samples":4},{"name":"Using brackets {}","opsSec":1194097.5332632565,"samples":4},{"name":"Using '' + ","opsSec":1190530.1209321728,"samples":5},{"name":"Using date.toString()","opsSec":1345071.6405601273,"samples":5}]}-->

## Deleting properties

|name|ops/sec|samples|
|-|-|-|
|Using delete property|4,512,978|94|
|Using delete property (proto: null)|23,321,160|96|
|Using delete property (cached proto: null)|4,564,277|98|
|Using undefined assignment|910,282,867|99|
|Using undefined assignment (proto: null)|26,485,986|97|
|Using undefined property (cached proto: null)|908,394,383|97|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 21:53:43 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using delete property","opsSec":4512977.769378374,"samples":5},{"name":"Using delete property (proto: null)","opsSec":23321160.25266621,"samples":6},{"name":"Using delete property (cached proto: null)","opsSec":4564277.180619957,"samples":6},{"name":"Using undefined assignment","opsSec":910282866.7115643,"samples":11},{"name":"Using undefined assignment (proto: null)","opsSec":26485985.713527564,"samples":5},{"name":"Using undefined property (cached proto: null)","opsSec":908394383.2545786,"samples":6}]}-->

## Node.js Error

|name|ops/sec|samples|
|-|-|-|
|Error|263,267|53|
|NodeError|222,204|96|
|NodeError Range|222,477|94|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:02:03 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Error","opsSec":263266.5501079072,"samples":3},{"name":"NodeError","opsSec":222204.40298827566,"samples":3},{"name":"NodeError Range","opsSec":222476.66404335015,"samples":3}]}-->

## Function return

|name|ops/sec|samples|
|-|-|-|
|Function returning null|2,073,290|93|
|Function returning explicitly undefined|2,063,461|100|
|Function returning implicitly undefined|2,071,198|92|
|Function returning string|2,059,156|99|
|Function returning integer|2,104,544|97|
|Function returning float|2,058,774|97|
|Function returning functions|2,022,414|96|
|Function returning arrow functions|2,004,047|98|
|Function returning empty object|2,074,759|96|
|Function returning empty array|2,081,346|95|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:16:16 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Function returning null","opsSec":2073290.4554126777,"samples":4},{"name":"Function returning explicitly undefined","opsSec":2063461.3251809606,"samples":6},{"name":"Function returning implicitly undefined","opsSec":2071197.5829306021,"samples":5},{"name":"Function returning string","opsSec":2059155.6141818399,"samples":7},{"name":"Function returning integer","opsSec":2104543.6086637382,"samples":5},{"name":"Function returning float","opsSec":2058773.7054486047,"samples":8},{"name":"Function returning functions","opsSec":2022414.2676370803,"samples":5},{"name":"Function returning arrow functions","opsSec":2004046.6989999698,"samples":5},{"name":"Function returning empty object","opsSec":2074758.6687134474,"samples":7},{"name":"Function returning empty array","opsSec":2081346.055283039,"samples":7}]}-->

## Array.includes vs raw comparison

|name|ops/sec|samples|
|-|-|-|
|using Array.includes|909,697,752|100|
|using Array.includes (first item)|910,548,563|97|
|Using raw comparison|912,279,440|98|
|Using raw comparison (first item)|911,759,672|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:24:40 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"using Array.includes","opsSec":909697752.4522451,"samples":6},{"name":"using Array.includes (first item)","opsSec":910548563.0432882,"samples":6},{"name":"Using raw comparison","opsSec":912279440.1027427,"samples":7},{"name":"Using raw comparison (first item)","opsSec":911759671.6003232,"samples":6}]}-->

## Object.keys vs Object.getOwnPropertyNames comparison

|name|ops/sec|samples|
|-|-|-|
|Using Object.keys()|100,647,585|94|
|Using Object.getOwnPropertyNames()|99,211,625|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:31:30 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using Object.keys()","opsSec":100647584.58499715,"samples":5},{"name":"Using Object.getOwnPropertyNames()","opsSec":99211624.53744382,"samples":6}]}-->

## Get the last item of an Array

|name|ops/sec|samples|
|-|-|-|
|Length = 100 - Array.at|964,391,186|99|
|Length = 10_000 - Array.at|967,231,598|96|
|Length = 1_000_000 - Array.at|967,383,753|96|
|Length = 100 - Array[length - 1]|909,462,649|97|
|Length = 10_000 - Array[length - 1]|910,352,739|99|
|Length = 1_000_000 - Array[length - 1]|910,258,383|96|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:41:15 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Length = 100 - Array.at","opsSec":964391186.010416,"samples":7},{"name":"Length = 10_000 - Array.at","opsSec":967231598.0125457,"samples":7},{"name":"Length = 1_000_000 - Array.at","opsSec":967383753.293523,"samples":6},{"name":"Length = 100 - Array[length - 1]","opsSec":909462649.0644082,"samples":6},{"name":"Length = 10_000 - Array[length - 1]","opsSec":910352739.1378577,"samples":6},{"name":"Length = 1_000_000 - Array[length - 1]","opsSec":910258382.8974692,"samples":6}]}-->

## Object Creation

|name|ops/sec|samples|
|-|-|-|
|Object.create(null)|90,764,459|90|
|Object.create({})|2,888,218|88|
|Cached Empty.prototype|911,535,484|98|
|Empty.prototype|2,657,500|86|
|Empty class|1,675,246|89|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:50:27 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Object.create(null)","opsSec":90764459.25749423,"samples":5},{"name":"Object.create({})","opsSec":2888217.5781391487,"samples":3},{"name":"Cached Empty.prototype","opsSec":911535483.8559139,"samples":6},{"name":"Empty.prototype","opsSec":2657500.1215111143,"samples":4},{"name":"Empty class","opsSec":1675245.7137438282,"samples":3}]}-->

## Optional Chain (?) vs && operator

|name|ops/sec|samples|
|-|-|-|
|Using optional chain (obj.field?.field2) (Valid)|910,543,794|96|
|Using optional chain (obj.field?.field2) (undefined)|910,939,993|99|
|Using and operator (obj.field && obj.field.field2) (Valid)|911,119,081|100|
|Using and operator (obj.field && obj.field.field2) (undefined)|910,855,793|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 22:59:16 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using optional chain (obj.field?.field2) (Valid)","opsSec":910543793.6378728,"samples":6},{"name":"Using optional chain (obj.field?.field2) (undefined)","opsSec":910939992.7062029,"samples":6},{"name":"Using and operator (obj.field && obj.field.field2) (Valid)","opsSec":911119080.8179945,"samples":7},{"name":"Using and operator (obj.field && obj.field.field2) (undefined)","opsSec":910855792.8557374,"samples":6}]}-->

## Parsing Integer

|name|ops/sec|samples|
|-|-|-|
|Using parseInt(x, 10) - small number (2 len)|911,214,453|99|
|Using parseInt(x, 10) - big number (10 len)|912,458,376|99|
|Using + - small number (2 len)|912,265,244|96|
|Using + - big number (10 len)|911,032,284|94|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:08:02 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using parseInt(x, 10) - small number (2 len)","opsSec":911214452.7617743,"samples":6},{"name":"Using parseInt(x, 10) - big number (10 len)","opsSec":912458375.6351717,"samples":9},{"name":"Using + - small number (2 len)","opsSec":912265243.6307575,"samples":7},{"name":"Using + - big number (10 len)","opsSec":911032283.8627278,"samples":7}]}-->

## Possible undefined Function

|name|ops/sec|samples|
|-|-|-|
|Using if to check function existence|1,460,221|82|
|Using ? operator to avoid rejection|1,544,589|90|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:14:54 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using if to check function existence","opsSec":1460221.0583516292,"samples":4},{"name":"Using ? operator to avoid rejection","opsSec":1544589.4161642254,"samples":4}]}-->

## Private Property

|name|ops/sec|samples|
|-|-|-|
|Raw usage private field|907,508,803|99|
|Raw usage underscore usage|907,797,306|98|
|Manipulating private properties using #|899,691,396|99|
|Manipulating private properties using underscore(_)|901,372,432|100|
|Manipulating private properties using Symbol|899,621,662|97|
|Manipulating private properties using PrivateSymbol|54,603,259|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:24:16 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Raw usage private field","opsSec":907508803.1715462,"samples":6},{"name":"Raw usage underscore usage","opsSec":907797305.7696706,"samples":6},{"name":"Manipulating private properties using #","opsSec":899691395.5745401,"samples":8},{"name":"Manipulating private properties using underscore(_)","opsSec":901372431.5820291,"samples":8},{"name":"Manipulating private properties using Symbol","opsSec":899621662.2992079,"samples":9},{"name":"Manipulating private properties using PrivateSymbol","opsSec":54603259.30518715,"samples":7}]}-->

## Property access after shape transition

|name|ops/sec|samples|
|-|-|-|
|Adding property after object creation - small object|5,691,350|99|
|Adding property in the object creation - small object|5,705,121|94|
|Adding property after the function creation - small class|291,753|88|
|Adding property in the function creation - small class|296,120|91|
|Adding property after the class creation - small class|297,954|89|
|Adding property in the class creation - small class|296,482|88|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:34:39 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Adding property after object creation - small object","opsSec":5691350.283463478,"samples":5},{"name":"Adding property in the object creation - small object","opsSec":5705121.122678225,"samples":5},{"name":"Adding property after the function creation - small class","opsSec":291752.97877928294,"samples":3},{"name":"Adding property in the function creation - small class","opsSec":296120.20634883083,"samples":3},{"name":"Adding property after the class creation - small class","opsSec":297954.1875217565,"samples":4},{"name":"Adding property in the class creation - small class","opsSec":296482.22375783033,"samples":4}]}-->

## Property Getter Access

|name|ops/sec|samples|
|-|-|-|
|Getter (class)|909,920,855|98|
|Getter|102,493,200|96|
|Method|910,181,304|98|
|DefineProperty (getter)|909,522,023|97|
|DefineProperty (getter & enumerable=false)|102,544,212|98|
|DefineProperty (getter & configurable=false)|911,086,258|98|
|DefineProperty (getter & enumerable=false & configurable=false)|102,539,084|97|
|DefineProperty (writable)|910,907,526|98|
|DefineProperty (writable & enumerable=false)|911,230,289|100|
|DefineProperty (writable & enumerable=false & configurable=false)|910,743,713|99|
|DefineProperties (getter)|102,566,910|96|
|DefineProperties (getter & enumerable=false)|98,878,429|96|
|DefineProperties (getter & enumerable=false & configurable=false)|63,698,814|91|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:51:17 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Getter (class)","opsSec":909920854.9754535,"samples":6},{"name":"Getter","opsSec":102493200.47415468,"samples":7},{"name":"Method","opsSec":910181303.9331081,"samples":7},{"name":"DefineProperty (getter)","opsSec":909522022.9172161,"samples":8},{"name":"DefineProperty (getter & enumerable=false)","opsSec":102544212.04750307,"samples":6},{"name":"DefineProperty (getter & configurable=false)","opsSec":911086257.9681963,"samples":6},{"name":"DefineProperty (getter & enumerable=false & configurable=false)","opsSec":102539084.31325684,"samples":6},{"name":"DefineProperty (writable)","opsSec":910907525.6277211,"samples":7},{"name":"DefineProperty (writable & enumerable=false)","opsSec":911230288.941458,"samples":6},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":910743713.4442714,"samples":6},{"name":"DefineProperties (getter)","opsSec":102566910.34191701,"samples":6},{"name":"DefineProperties (getter & enumerable=false)","opsSec":98878429.07387483,"samples":5},{"name":"DefineProperties (getter & enumerable=false & configurable=false)","opsSec":63698813.67617602,"samples":4}]}-->

## Property Setter Access

|name|ops/sec|samples|
|-|-|-|
|Setter (class)|863,595,758|97|
|Setter|13,773,552|99|
|Method|867,991,991|98|
|DefineProperty (setter)|839,051,757|97|
|DefineProperty (setter & enumerable=false)|13,881,758|98|
|DefineProperty (setter & configurable=false)|13,836,521|97|
|DefineProperty (setter & enumerable=false & configurable=false)|13,580,185|99|
|DefineProperty (writable)|869,649,447|99|
|DefineProperty (writable & enumerable=false)|869,497,441|98|
|DefineProperty (writable & enumerable=false & configurable=false)|492,752,775|58|
|DefineProperties (setter)|123,319,648|82|
|DefineProperties (setter & enumerable=false)|12,448,790|94|
|DefineProperties (setter & enumerable=false & configurable=false)|13,737,967|96|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:07:09 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Setter (class)","opsSec":863595757.6389309,"samples":8},{"name":"Setter","opsSec":13773552.10516731,"samples":6},{"name":"Method","opsSec":867991991.1950066,"samples":7},{"name":"DefineProperty (setter)","opsSec":839051756.8643948,"samples":6},{"name":"DefineProperty (setter & enumerable=false)","opsSec":13881757.675595354,"samples":7},{"name":"DefineProperty (setter & configurable=false)","opsSec":13836521.020324977,"samples":6},{"name":"DefineProperty (setter & enumerable=false & configurable=false)","opsSec":13580184.98988669,"samples":6},{"name":"DefineProperty (writable)","opsSec":869649447.4058065,"samples":7},{"name":"DefineProperty (writable & enumerable=false)","opsSec":869497441.228001,"samples":5},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":492752775.4541219,"samples":6},{"name":"DefineProperties (setter)","opsSec":123319647.76218943,"samples":6},{"name":"DefineProperties (setter & enumerable=false)","opsSec":12448789.696527982,"samples":4},{"name":"DefineProperties (setter & enumerable=false & configurable=false)","opsSec":13737966.59540369,"samples":6}]}-->

## replace vs replaceAll comparison

|name|ops/sec|samples|
|-|-|-|
|Using replace(//g)|3,643,888|93|
|Using replaceAll()|3,403,109|98|
|Using replaceAll(//g)|3,345,973|95|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:18:30 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using replace(//g)","opsSec":3643887.7011272837,"samples":4},{"name":"Using replaceAll()","opsSec":3403109.13862403,"samples":5},{"name":"Using replaceAll(//g)","opsSec":3345973.203731038,"samples":5}]}-->

## Shallow Copy

|name|ops/sec|samples|
|-|-|-|
|{ ...object }|33,512,555|90|
|{ ...object, __proto__: null }|2,824,306|95|
|{ ...object, newProp: true }|30,957,147|99|
|structuredClone|311,251|97|
|JSON.parse + JSON.stringify|251,063|98|
|loop + object.keys starting with {}|1,668,554|95|
|loop + object.keys starting with { __proto__: null }|866,187|96|
|loop + object.keys starting with { randomProp: true }|698,133|96|
|object.keys + reduce(FN, {})|677,265|97|
|object.keys + reduce(FN, { __proto__: null })|870,512|96|
|object.keys + reduce(FN, { newProp: true })|704,144|95|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:31:35 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{ ...object }","opsSec":33512554.563270263,"samples":5},{"name":"{ ...object, __proto__: null }","opsSec":2824305.9005462723,"samples":4},{"name":"{ ...object, newProp: true }","opsSec":30957146.697950613,"samples":6},{"name":"structuredClone","opsSec":311250.5996689971,"samples":5},{"name":"JSON.parse + JSON.stringify","opsSec":251062.7925731059,"samples":4},{"name":"loop + object.keys starting with {}","opsSec":1668553.8475828075,"samples":6},{"name":"loop + object.keys starting with { __proto__: null }","opsSec":866186.5905831299,"samples":5},{"name":"loop + object.keys starting with { randomProp: true }","opsSec":698133.1766627394,"samples":7},{"name":"object.keys + reduce(FN, {})","opsSec":677265.4457642619,"samples":5},{"name":"object.keys + reduce(FN, { __proto__: null })","opsSec":870511.9771063247,"samples":5},{"name":"object.keys + reduce(FN, { newProp: true })","opsSec":704144.09466761,"samples":4}]}-->

## Sorting Map

|name|ops/sec|samples|
|-|-|-|
|Sort using default|345,599|94|
|Sort using first char|1,539,551|96|
|Sort using localeCompare|1,425,218|95|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:40:55 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Sort using default","opsSec":345599.43590572936,"samples":5},{"name":"Sort using first char","opsSec":1539551.40020236,"samples":5},{"name":"Sort using localeCompare","opsSec":1425217.8393400894,"samples":5}]}-->

## Object.assign VS spread operator

|name|ops/sec|samples|
|-|-|-|
|{...bigObject} - Total keys: 1000|2,208|93|
|{...smallObject} - Total keys: 2|125,669,693|97|
|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,320|96|
|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,896|99|
|{ ...bigObject, ...anotherBigObject }|1,387|95|
|Object.assign({}, smallObject, anotherSmallObject) - creating new object|16,493,627|98|
|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|40,820,969|93|
|{ ...smallObject, ...anotherSmallObject }|27,289,833|99|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:51:51 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{...bigObject} - Total keys: 1000","opsSec":2208.061927260374,"samples":5},{"name":"{...smallObject} - Total keys: 2","opsSec":125669692.72178052,"samples":8},{"name":"Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object","opsSec":1319.7360070636948,"samples":4},{"name":"Object.assign(bigObject, anotherBigObject) - mutating bigObject","opsSec":6895.834186653923,"samples":3},{"name":"{ ...bigObject, ...anotherBigObject }","opsSec":1386.836125579945,"samples":4},{"name":"Object.assign({}, smallObject, anotherSmallObject) - creating new object","opsSec":16493626.563951118,"samples":5},{"name":"Object.assign(smallObject, anotherSmallObject) - mutating smallObject","opsSec":40820968.72878201,"samples":8},{"name":"{ ...smallObject, ...anotherSmallObject }","opsSec":27289832.511190753,"samples":5}]}-->

## Stream.Readable

|name|ops/sec|samples|
|-|-|-|
|streams.Readable reading 1e3 * "some data"|2,257|88|
|streams.web.Readable reading 1e3 * "some data"|2,376|88|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 00:59:12 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"streams.Readable reading 1e3 * \"some data\"","opsSec":2256.9859678667176,"samples":5},{"name":"streams.web.Readable reading 1e3 * \"some data\"","opsSec":2376.1177961518665,"samples":5}]}-->

## Stream.Writable

|name|ops/sec|samples|
|-|-|-|
|streams.Writable writing 1e3 * "some data"|6,256|95|
|streams.web.WritableStream writing 1e3 * "some data"|1,457|61|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:07:37 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"streams.Writable writing 1e3 * \"some data\"","opsSec":6256.408099618879,"samples":4},{"name":"streams.web.WritableStream writing 1e3 * \"some data\"","opsSec":1456.894381977699,"samples":3}]}-->

## String concat

|name|ops/sec|samples|
|-|-|-|
|Using + sign|910,196,331|99|
|Using backtick (`)|911,916,834|100|
|Using array.join|12,275,542|88|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:16:28 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using + sign","opsSec":910196331.4779207,"samples":6},{"name":"Using backtick (`)","opsSec":911916834.0757344,"samples":8},{"name":"Using array.join","opsSec":12275541.716813013,"samples":5}]}-->

## endsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#endsWith|309,247,162|94|
|(short string) (true) String#slice and strict comparison|909,396,782|96|
|(long string) (true) String#endsWith|194,989,435|96|
|(long string) (true) String#slice and strict comparison|908,184,495|95|
|(short string) (false) String#endsWith|870,542,028|100|
|(short string) (false) String#slice and strict comparison|909,313,810|99|
|(long string) (false) String#endsWith|868,328,282|94|
|(long string) (false) String#slice and strict comparison|909,962,029|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:28:06 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":309247162.27773964,"samples":5},{"name":"(short string) (true) String#slice and strict comparison","opsSec":909396782.0209001,"samples":6},{"name":"(long string) (true) String#endsWith","opsSec":194989434.90862694,"samples":8},{"name":"(long string) (true) String#slice and strict comparison","opsSec":908184495.3033423,"samples":7},{"name":"(short string) (false) String#endsWith","opsSec":870542027.85542,"samples":7},{"name":"(short string) (false) String#slice and strict comparison","opsSec":909313810.4226412,"samples":6},{"name":"(long string) (false) String#endsWith","opsSec":868328281.671055,"samples":6},{"name":"(long string) (false) String#slice and strict comparison","opsSec":909962029.0694051,"samples":6}]}-->

## String searching

|name|ops/sec|samples|
|-|-|-|
|Using includes|910,089,909|97|
|Using indexof|910,872,486|96|
|Using RegExp.test|18,537,001|95|
|Using RegExp.text with cached regex pattern|19,386,045|98|
|Using new RegExp.test|4,938,292|96|
|Using new RegExp.test with cached regex pattern|5,608,387|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:39:46 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using includes","opsSec":910089909.1593091,"samples":7},{"name":"Using indexof","opsSec":910872486.2463844,"samples":10},{"name":"Using RegExp.test","opsSec":18537000.797138978,"samples":6},{"name":"Using RegExp.text with cached regex pattern","opsSec":19386045.25181551,"samples":6},{"name":"Using new RegExp.test","opsSec":4938292.351710335,"samples":4},{"name":"Using new RegExp.test with cached regex pattern","opsSec":5608386.781154526,"samples":6}]}-->

## startsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|310,010,115|95|
|(short string) (true) String#slice and strict comparison|910,315,828|99|
|(long string) (true) String#startsWith|194,667,218|97|
|(long string) (true) String#slice and strict comparison|909,131,142|95|
|(short string) (false) String#startsWith|870,289,660|100|
|(short string) (false) String#slice and strict comparison|909,499,725|96|
|(long string) (false) String#startsWith|868,899,829|92|
|(long string) (false) String#slice and strict comparison|909,207,992|99|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:50:12 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":310010115.1824393,"samples":6},{"name":"(short string) (true) String#slice and strict comparison","opsSec":910315828.0762696,"samples":6},{"name":"(long string) (true) String#startsWith","opsSec":194667217.98672763,"samples":8},{"name":"(long string) (true) String#slice and strict comparison","opsSec":909131142.1648389,"samples":8},{"name":"(short string) (false) String#startsWith","opsSec":870289660.0936128,"samples":7},{"name":"(short string) (false) String#slice and strict comparison","opsSec":909499725.1804075,"samples":6},{"name":"(long string) (false) String#startsWith","opsSec":868899829.364488,"samples":7},{"name":"(long string) (false) String#slice and strict comparison","opsSec":909207992.2194641,"samples":6}]}-->

## Super vs This

|name|ops/sec|samples|
|-|-|-|
|Using super|905,737,091|97|
|Using this|907,830,985|94|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:59:26 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using super","opsSec":905737090.5742007,"samples":6},{"name":"Using this","opsSec":907830985.0212404,"samples":7}]}-->

## Getting unix time

|name|ops/sec|samples|
|-|-|-|
|new Date().getTime()|13,343,969|93|
|Date.now()|23,922,276|98|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 02:05:27 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"new Date().getTime()","opsSec":13343968.585740784,"samples":5},{"name":"Date.now()","opsSec":23922275.90199401,"samples":6}]}-->
