## Adding property

|name|ops/sec|samples|
|-|-|-|
|Directly in the object|144,927,768|82|
|Using dot notation|147,218,272|85|
|Using define property (writable)|5,198,625|95|
|Using define property initialized (writable)|7,913,677|96|
|Using define property (getter)|2,819,505|95|


<details>
<summary>Environment</summary>

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

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

## Array.append (number)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.004ms
new Array(length)|10|0.002ms
array.push|100|0.066ms
new Array(length)|100|0.008ms
array.push|1,000|0.03ms
new Array(length)|1,000|0.017ms
array.push|10,000|0.284ms
new Array(length)|10,000|0.167ms
array.push|1,000,000|27.812ms
new Array(length)|1,000,000|6.486ms
array.push|100,000,000|2,023.091ms
new Array(length)|100,000,000|4,030.398ms
## Array.append (string)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.005ms
new Array(length)|10|0.003ms
array.push|100|0.014ms
new Array(length)|100|0.011ms
array.push|1,000|0.034ms
new Array(length)|1,000|0.017ms
array.push|10,000|0.342ms
new Array(length)|10,000|0.118ms
array.push|1,000,000|16.197ms
new Array(length)|1,000,000|8.163ms
array.push|100,000,000|2,622.882ms
new Array(length)|100,000,000|4,032.636ms

## Array Creation

|name|ops/sec|samples|
|-|-|-|
|new Array|251|91|
|Array.from|25|45|


<details>
<summary>Environment</summary>

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

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

## async function vs function

|name|ops/sec|samples|
|-|-|-|
|function|139,367,380|78|
|[async] async function|19,255,413|89|
|[async] function|221,145|23|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"function","opsSec":139367380.38977394,"samples":4},{"name":"[async] async function","opsSec":19255413.35297198,"samples":8},{"name":"[async] function","opsSec":221145.49805896837,"samples":3}]}-->

## Blob

|name|ops/sec|samples|
|-|-|-|
|new Blob (128)|6,334|84|
|new Blob (1024)|798|75|
|text (128)|6,482|89|
|text (1024)|828|89|
|arrayBuffer (128)|6,497|91|
|arrayBuffer (1024)|825|91|
|slice (0, 64)|203,608|57|
|slice (0, 512)|36,125|67|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"new Blob (128)","opsSec":6334.468492398966,"samples":2},{"name":"new Blob (1024)","opsSec":798.170749045239,"samples":2},{"name":"text (128)","opsSec":6481.878126620119,"samples":6},{"name":"text (1024)","opsSec":827.6999183060182,"samples":3},{"name":"arrayBuffer (128)","opsSec":6496.892331436602,"samples":4},{"name":"arrayBuffer (1024)","opsSec":825.1620181981906,"samples":3},{"name":"slice (0, 64)","opsSec":203607.919681793,"samples":3},{"name":"slice (0, 512)","opsSec":36124.58903672448,"samples":6}]}-->

## Comparison using `instanceof`

|name|ops/sec|samples|
|-|-|-|
|[True conditional] Using instanceof only|262,877|58|
|[True conditional] Using constructor name|217,273|95|
|[True conditional] Check if property is valid then instanceof |222,110|100|
|[False conditional] Using instanceof only|145,116,176|83|
|[False conditional] Using constructor name|145,303,080|83|
|[False conditional] Check if property is valid then instanceof |147,403,750|81|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"[True conditional] Using instanceof only","opsSec":262876.9631897255,"samples":3},{"name":"[True conditional] Using constructor name","opsSec":217272.66937502782,"samples":3},{"name":"[True conditional] Check if property is valid then instanceof ","opsSec":222109.51585693946,"samples":3},{"name":"[False conditional] Using instanceof only","opsSec":145116175.907225,"samples":5},{"name":"[False conditional] Using constructor name","opsSec":145303080.03071555,"samples":5},{"name":"[False conditional] Check if property is valid then instanceof ","opsSec":147403750.13155952,"samples":5}]}-->

## Crypto Verify

|name|ops/sec|samples|
|-|-|-|
|crypto.createVerify('RSA-SHA256')|7,543|93|
|crypto.verify('RSA-SHA256')|7,452|96|


<details>
<summary>Environment</summary>

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

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

## Date format MM/DD/YYYY

|name|ops/sec|samples|
|-|-|-|
|Intl.DateTimeFormat().format(Date.now())|17,747|79|
|Intl.DateTimeFormat().format(new Date())|17,964|81|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|21,028|89|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|18,113|79|
|Reusing Intl.DateTimeFormat()|1,005,121|86|
|Date.toLocaleDateString()|1,178,821|96|
|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|20,862|87|
|Format using date.get*|0|0|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Intl.DateTimeFormat().format(Date.now())","opsSec":17747.344851079517,"samples":3},{"name":"Intl.DateTimeFormat().format(new Date())","opsSec":17963.801204840453,"samples":4},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())","opsSec":21028.245150117342,"samples":3},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())","opsSec":18113.377460215906,"samples":5},{"name":"Reusing Intl.DateTimeFormat()","opsSec":1005121.473992268,"samples":5},{"name":"Date.toLocaleDateString()","opsSec":1178821.0593873744,"samples":6},{"name":"Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)","opsSec":20862.495193080107,"samples":8},{"name":"Format using date.get*","opsSec":0,"samples":0}]}-->

## Date String coersion

|name|ops/sec|samples|
|-|-|-|
|Using String()|1,154,298|96|
|Using brackets {}|1,225,401|96|
|Using '' + |1,182,984|97|
|Using date.toString()|1,350,445|94|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using String()","opsSec":1154298.4537901836,"samples":6},{"name":"Using brackets {}","opsSec":1225400.5383298602,"samples":4},{"name":"Using '' + ","opsSec":1182984.4208674433,"samples":6},{"name":"Using date.toString()","opsSec":1350444.857227936,"samples":4}]}-->

## Deleting properties

|name|ops/sec|samples|
|-|-|-|
|Using delete property|4,241,019|92|
|Using delete property (proto: null)|20,973,699|93|
|Using delete property (cached proto: null)|4,300,541|94|
|Using undefined assignment|141,193,013|82|
|Using undefined assignment (proto: null)|24,005,004|92|
|Using undefined property (cached proto: null)|149,009,474|84|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using delete property","opsSec":4241019.081265636,"samples":4},{"name":"Using delete property (proto: null)","opsSec":20973698.929169904,"samples":5},{"name":"Using delete property (cached proto: null)","opsSec":4300540.768940318,"samples":5},{"name":"Using undefined assignment","opsSec":141193013.39633432,"samples":5},{"name":"Using undefined assignment (proto: null)","opsSec":24005004.11950233,"samples":4},{"name":"Using undefined property (cached proto: null)","opsSec":149009474.49016783,"samples":5}]}-->

## Node.js Error

|name|ops/sec|samples|
|-|-|-|
|Error|254,297|61|
|NodeError|213,596|93|
|NodeError Range|216,148|98|


<details>
<summary>Environment</summary>

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

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

## Function return

|name|ops/sec|samples|
|-|-|-|
|Function returning null|2,002,800|96|
|Function returning explicitly undefined|1,965,494|97|
|Function returning implicitly undefined|2,018,074|97|
|Function returning string|1,922,486|98|
|Function returning integer|2,050,556|97|
|Function returning float|2,003,071|97|
|Function returning functions|1,976,325|97|
|Function returning arrow functions|1,988,551|96|
|Function returning empty object|2,013,364|94|
|Function returning empty array|2,015,740|98|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Function returning null","opsSec":2002800.1611261922,"samples":4},{"name":"Function returning explicitly undefined","opsSec":1965494.30686029,"samples":6},{"name":"Function returning implicitly undefined","opsSec":2018074.1961018897,"samples":7},{"name":"Function returning string","opsSec":1922486.3930012016,"samples":4},{"name":"Function returning integer","opsSec":2050556.3634409893,"samples":5},{"name":"Function returning float","opsSec":2003071.444446296,"samples":6},{"name":"Function returning functions","opsSec":1976324.948121165,"samples":6},{"name":"Function returning arrow functions","opsSec":1988550.9140535225,"samples":4},{"name":"Function returning empty object","opsSec":2013363.7100518143,"samples":6},{"name":"Function returning empty array","opsSec":2015740.0617820965,"samples":6}]}-->

## Array.includes vs raw comparison

|name|ops/sec|samples|
|-|-|-|
|using Array.includes|84,267,529|88|
|using Array.includes (first item)|104,600,321|91|
|Using raw comparison|143,641,090|81|
|Using raw comparison (first item)|144,436,523|81|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"using Array.includes","opsSec":84267528.7886162,"samples":6},{"name":"using Array.includes (first item)","opsSec":104600321.44787107,"samples":5},{"name":"Using raw comparison","opsSec":143641090.03340027,"samples":4},{"name":"Using raw comparison (first item)","opsSec":144436522.75026044,"samples":4}]}-->

## Object.keys vs Object.getOwnPropertyNames comparison

|name|ops/sec|samples|
|-|-|-|
|Using Object.keys()|60,460,261|89|
|Using Object.getOwnPropertyNames()|59,914,062|88|


<details>
<summary>Environment</summary>

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

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

## Get the last item of an Array

|name|ops/sec|samples|
|-|-|-|
|Length = 100 - Array.at|131,131,679|85|
|Length = 10_000 - Array.at|129,874,951|83|
|Length = 1_000_000 - Array.at|128,233,539|83|
|Length = 100 - Array[length - 1]|138,662,777|86|
|Length = 10_000 - Array[length - 1]|137,770,527|85|
|Length = 1_000_000 - Array[length - 1]|140,628,378|87|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Length = 100 - Array.at","opsSec":131131678.54073644,"samples":6},{"name":"Length = 10_000 - Array.at","opsSec":129874950.73540103,"samples":5},{"name":"Length = 1_000_000 - Array.at","opsSec":128233538.99886686,"samples":4},{"name":"Length = 100 - Array[length - 1]","opsSec":138662776.63819444,"samples":6},{"name":"Length = 10_000 - Array[length - 1]","opsSec":137770526.9366006,"samples":5},{"name":"Length = 1_000_000 - Array[length - 1]","opsSec":140628378.05939806,"samples":4}]}-->

## Object Creation

|name|ops/sec|samples|
|-|-|-|
|Object.create(null)|56,542,920|91|
|Object.create({})|2,476,118|81|
|Cached Empty.prototype|143,462,603|83|
|Empty.prototype|2,596,795|91|
|Empty class|1,701,892|82|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Object.create(null)","opsSec":56542920.490159005,"samples":6},{"name":"Object.create({})","opsSec":2476117.7888551094,"samples":3},{"name":"Cached Empty.prototype","opsSec":143462603.2015119,"samples":5},{"name":"Empty.prototype","opsSec":2596795.382710834,"samples":3},{"name":"Empty class","opsSec":1701892.3777312064,"samples":3}]}-->

## Optional Chain (?) vs && operator

|name|ops/sec|samples|
|-|-|-|
|Using optional chain (obj.field?.field2) (Valid)|143,164,516|81|
|Using optional chain (obj.field?.field2) (undefined)|147,456,621|85|
|Using and operator (obj.field && obj.field.field2) (Valid)|142,548,141|80|
|Using and operator (obj.field && obj.field.field2) (undefined)|143,966,501|81|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:01:35 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":143164515.64778346,"samples":5},{"name":"Using optional chain (obj.field?.field2) (undefined)","opsSec":147456620.62158588,"samples":5},{"name":"Using and operator (obj.field && obj.field.field2) (Valid)","opsSec":142548140.5359494,"samples":6},{"name":"Using and operator (obj.field && obj.field.field2) (undefined)","opsSec":143966500.99744987,"samples":5}]}-->

## Parsing Integer

|name|ops/sec|samples|
|-|-|-|
|Using parseInt(x, 10) - small number (2 len)|142,142,816|80|
|Using parseInt(x, 10) - big number (10 len)|140,220,725|78|
|Using + - small number (2 len)|143,722,853|82|
|Using + - big number (10 len)|145,534,655|83|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:10:04 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":142142815.70996103,"samples":5},{"name":"Using parseInt(x, 10) - big number (10 len)","opsSec":140220724.9980938,"samples":5},{"name":"Using + - small number (2 len)","opsSec":143722852.82834992,"samples":5},{"name":"Using + - big number (10 len)","opsSec":145534655.1921107,"samples":6}]}-->

## Possible undefined Function

|name|ops/sec|samples|
|-|-|-|
|Using if to check function existence|1,347,820|85|
|Using ? operator to avoid rejection|1,394,957|87|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:16:20 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":1347820.27898202,"samples":4},{"name":"Using ? operator to avoid rejection","opsSec":1394956.7608255502,"samples":4}]}-->

## Private Property

|name|ops/sec|samples|
|-|-|-|
|Raw usage private field|134,562,476|76|
|Raw usage underscore usage|143,971,748|84|
|Manipulating private properties using #|131,637,734|74|
|Manipulating private properties using underscore(_)|138,761,558|78|
|Manipulating private properties using Symbol|134,202,064|75|
|Manipulating private properties using PrivateSymbol|42,522,156|90|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Raw usage private field","opsSec":134562476.28679478,"samples":6},{"name":"Raw usage underscore usage","opsSec":143971748.13738945,"samples":6},{"name":"Manipulating private properties using #","opsSec":131637733.50855243,"samples":5},{"name":"Manipulating private properties using underscore(_)","opsSec":138761558.27641955,"samples":5},{"name":"Manipulating private properties using Symbol","opsSec":134202063.72344217,"samples":6},{"name":"Manipulating private properties using PrivateSymbol","opsSec":42522156.20654151,"samples":7}]}-->

## Property access after shape transition

|name|ops/sec|samples|
|-|-|-|
|Adding property after object creation - small object|5,633,223|98|
|Adding property in the object creation - small object|5,697,852|95|
|Adding property after the function creation - small class|317,061|90|
|Adding property in the function creation - small class|317,604|92|
|Adding property after the class creation - small class|319,684|89|
|Adding property in the class creation - small class|320,730|90|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:37:08 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":5633223.155076948,"samples":5},{"name":"Adding property in the object creation - small object","opsSec":5697852.096855817,"samples":5},{"name":"Adding property after the function creation - small class","opsSec":317060.83685253485,"samples":5},{"name":"Adding property in the function creation - small class","opsSec":317603.8764004788,"samples":4},{"name":"Adding property after the class creation - small class","opsSec":319683.802000783,"samples":3},{"name":"Adding property in the class creation - small class","opsSec":320729.90191675816,"samples":4}]}-->

## Property Getter Access

|name|ops/sec|samples|
|-|-|-|
|Getter (class)|149,380,778|85|
|Getter|64,489,567|90|
|Method|141,964,797|81|
|DefineProperty (getter)|146,076,214|84|
|DefineProperty (getter & enumerable=false)|64,454,984|87|
|DefineProperty (getter & configurable=false)|148,332,210|84|
|DefineProperty (getter & enumerable=false & configurable=false)|64,757,724|90|
|DefineProperty (writable)|147,054,031|83|
|DefineProperty (writable & enumerable=false)|146,723,607|83|
|DefineProperty (writable & enumerable=false & configurable=false)|149,694,166|85|
|DefineProperties (getter)|65,224,228|90|
|DefineProperties (getter & enumerable=false)|66,135,004|93|
|DefineProperties (getter & enumerable=false & configurable=false)|64,986,898|91|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Getter (class)","opsSec":149380778.07921827,"samples":7},{"name":"Getter","opsSec":64489567.232094035,"samples":5},{"name":"Method","opsSec":141964797.093062,"samples":7},{"name":"DefineProperty (getter)","opsSec":146076213.99551684,"samples":5},{"name":"DefineProperty (getter & enumerable=false)","opsSec":64454984.482747756,"samples":6},{"name":"DefineProperty (getter & configurable=false)","opsSec":148332210.41679463,"samples":6},{"name":"DefineProperty (getter & enumerable=false & configurable=false)","opsSec":64757724.30289284,"samples":5},{"name":"DefineProperty (writable)","opsSec":147054030.8571102,"samples":4},{"name":"DefineProperty (writable & enumerable=false)","opsSec":146723606.987097,"samples":5},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":149694165.74434295,"samples":5},{"name":"DefineProperties (getter)","opsSec":65224227.65588639,"samples":5},{"name":"DefineProperties (getter & enumerable=false)","opsSec":66135004.10718884,"samples":5},{"name":"DefineProperties (getter & enumerable=false & configurable=false)","opsSec":64986898.02356878,"samples":5}]}-->

## Property Setter Access

|name|ops/sec|samples|
|-|-|-|
|Setter (class)|133,423,120|87|
|Setter|12,391,445|97|
|Method|130,757,144|86|
|DefineProperty (setter)|128,343,623|84|
|DefineProperty (setter & enumerable=false)|12,256,593|93|
|DefineProperty (setter & configurable=false)|12,273,146|94|
|DefineProperty (setter & enumerable=false & configurable=false)|12,289,122|93|
|DefineProperty (writable)|132,219,794|86|
|DefineProperty (writable & enumerable=false)|134,073,774|86|
|DefineProperty (writable & enumerable=false & configurable=false)|130,523,502|84|
|DefineProperties (setter)|130,849,542|83|
|DefineProperties (setter & enumerable=false)|12,177,957|93|
|DefineProperties (setter & enumerable=false & configurable=false)|12,336,862|95|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Setter (class)","opsSec":133423119.61591464,"samples":5},{"name":"Setter","opsSec":12391445.43732084,"samples":5},{"name":"Method","opsSec":130757143.76061964,"samples":7},{"name":"DefineProperty (setter)","opsSec":128343623.11165553,"samples":4},{"name":"DefineProperty (setter & enumerable=false)","opsSec":12256593.0702379,"samples":5},{"name":"DefineProperty (setter & configurable=false)","opsSec":12273145.86942852,"samples":4},{"name":"DefineProperty (setter & enumerable=false & configurable=false)","opsSec":12289122.132710243,"samples":4},{"name":"DefineProperty (writable)","opsSec":132219794.37624323,"samples":5},{"name":"DefineProperty (writable & enumerable=false)","opsSec":134073773.86778498,"samples":5},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":130523501.64406703,"samples":5},{"name":"DefineProperties (setter)","opsSec":130849541.67121942,"samples":6},{"name":"DefineProperties (setter & enumerable=false)","opsSec":12177956.79545833,"samples":5},{"name":"DefineProperties (setter & enumerable=false & configurable=false)","opsSec":12336862.1262649,"samples":5}]}-->

## replace vs replaceAll comparison

|name|ops/sec|samples|
|-|-|-|
|Using replace(//g)|3,523,184|92|
|Using replaceAll()|3,372,935|99|
|Using replaceAll(//g)|3,287,984|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using replace(//g)","opsSec":3523183.6172239985,"samples":6},{"name":"Using replaceAll()","opsSec":3372934.64968843,"samples":6},{"name":"Using replaceAll(//g)","opsSec":3287983.5075019593,"samples":4}]}-->

## Shallow Copy

|name|ops/sec|samples|
|-|-|-|
|{ ...object }|27,963,909|93|
|{ ...object, __proto__: null }|2,717,075|94|
|{ ...object, newProp: true }|26,014,191|92|
|structuredClone|319,902|97|
|JSON.parse + JSON.stringify|296,588|96|
|loop + object.keys starting with {}|1,754,012|96|
|loop + object.keys starting with { __proto__: null }|952,384|97|
|loop + object.keys starting with { randomProp: true }|744,045|98|
|object.keys + reduce(FN, {})|708,862|99|
|object.keys + reduce(FN, { __proto__: null })|952,172|99|
|object.keys + reduce(FN, { newProp: true })|742,304|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{ ...object }","opsSec":27963909.144258793,"samples":5},{"name":"{ ...object, __proto__: null }","opsSec":2717074.9716515657,"samples":4},{"name":"{ ...object, newProp: true }","opsSec":26014191.408602607,"samples":7},{"name":"structuredClone","opsSec":319902.2124291436,"samples":3},{"name":"JSON.parse + JSON.stringify","opsSec":296587.74995656457,"samples":4},{"name":"loop + object.keys starting with {}","opsSec":1754011.9787244168,"samples":4},{"name":"loop + object.keys starting with { __proto__: null }","opsSec":952383.6712480437,"samples":4},{"name":"loop + object.keys starting with { randomProp: true }","opsSec":744044.9366116502,"samples":4},{"name":"object.keys + reduce(FN, {})","opsSec":708862.3232982868,"samples":6},{"name":"object.keys + reduce(FN, { __proto__: null })","opsSec":952172.4215456408,"samples":6},{"name":"object.keys + reduce(FN, { newProp: true })","opsSec":742304.0927408738,"samples":6}]}-->

## Sorting Map

|name|ops/sec|samples|
|-|-|-|
|Sort using default|334,690|94|
|Sort using first char|1,497,698|92|
|Sort using localeCompare|1,366,355|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Sort using default","opsSec":334690.278482669,"samples":7},{"name":"Sort using first char","opsSec":1497697.6838887162,"samples":7},{"name":"Sort using localeCompare","opsSec":1366355.1025761901,"samples":4}]}-->

## Object.assign VS spread operator

|name|ops/sec|samples|
|-|-|-|
|{...bigObject} - Total keys: 1000|2,174|94|
|{...smallObject} - Total keys: 2|70,555,815|88|
|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,278|96|
|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,736|97|
|{ ...bigObject, ...anotherBigObject }|1,334|96|
|Object.assign({}, smallObject, anotherSmallObject) - creating new object|14,363,848|97|
|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|32,567,173|92|
|{ ...smallObject, ...anotherSmallObject }|24,292,122|97|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{...bigObject} - Total keys: 1000","opsSec":2173.594518803309,"samples":2},{"name":"{...smallObject} - Total keys: 2","opsSec":70555815.4866816,"samples":5},{"name":"Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object","opsSec":1277.8986804952256,"samples":3},{"name":"Object.assign(bigObject, anotherBigObject) - mutating bigObject","opsSec":6736.185078092741,"samples":3},{"name":"{ ...bigObject, ...anotherBigObject }","opsSec":1334.202759776481,"samples":4},{"name":"Object.assign({}, smallObject, anotherSmallObject) - creating new object","opsSec":14363848.439127948,"samples":5},{"name":"Object.assign(smallObject, anotherSmallObject) - mutating smallObject","opsSec":32567172.595302317,"samples":4},{"name":"{ ...smallObject, ...anotherSmallObject }","opsSec":24292121.884945642,"samples":5}]}-->

## Stream.Readable

|name|ops/sec|samples|
|-|-|-|
|streams.Readable reading 1e3 * "some data"|2,341|85|
|streams.web.Readable reading 1e3 * "some data"|2,271|89|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:01:11 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":2340.983364916626,"samples":5},{"name":"streams.web.Readable reading 1e3 * \"some data\"","opsSec":2271.399605572184,"samples":7}]}-->

## Stream.Writable

|name|ops/sec|samples|
|-|-|-|
|streams.Writable writing 1e3 * "some data"|6,558|93|
|streams.web.WritableStream writing 1e3 * "some data"|1,385|64|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Sat May 04 2024 01:10:12 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":6557.793297032424,"samples":4},{"name":"streams.web.WritableStream writing 1e3 * \"some data\"","opsSec":1385.315644168292,"samples":3}]}-->

## String concat

|name|ops/sec|samples|
|-|-|-|
|Using + sign|147,313,167|86|
|Using backtick (`)|142,431,803|81|
|Using array.join|10,530,875|92|


<details>
<summary>Environment</summary>

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

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

## endsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#endsWith|128,463,695|83|
|(short string) (true) String#slice and strict comparison|145,742,118|80|
|(long string) (true) String#endsWith|91,574,909|89|
|(long string) (true) String#slice and strict comparison|147,343,700|83|
|(short string) (false) String#endsWith|141,073,778|84|
|(short string) (false) String#slice and strict comparison|149,331,182|86|
|(long string) (false) String#endsWith|141,674,814|84|
|(long string) (false) String#slice and strict comparison|148,017,269|85|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":128463694.96222468,"samples":5},{"name":"(short string) (true) String#slice and strict comparison","opsSec":145742117.63075015,"samples":4},{"name":"(long string) (true) String#endsWith","opsSec":91574908.51951411,"samples":5},{"name":"(long string) (true) String#slice and strict comparison","opsSec":147343699.76467088,"samples":5},{"name":"(short string) (false) String#endsWith","opsSec":141073778.168106,"samples":5},{"name":"(short string) (false) String#slice and strict comparison","opsSec":149331181.91171136,"samples":5},{"name":"(long string) (false) String#endsWith","opsSec":141674814.25705007,"samples":6},{"name":"(long string) (false) String#slice and strict comparison","opsSec":148017269.01852846,"samples":5}]}-->

## String searching

|name|ops/sec|samples|
|-|-|-|
|Using includes|141,572,757|82|
|Using indexof|146,185,452|83|
|Using RegExp.test|17,105,310|97|
|Using RegExp.text with cached regex pattern|17,854,069|96|
|Using new RegExp.test|5,122,749|94|
|Using new RegExp.test with cached regex pattern|5,836,007|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using includes","opsSec":141572757.1135388,"samples":5},{"name":"Using indexof","opsSec":146185451.94899634,"samples":7},{"name":"Using RegExp.test","opsSec":17105310.036777463,"samples":6},{"name":"Using RegExp.text with cached regex pattern","opsSec":17854068.77976062,"samples":5},{"name":"Using new RegExp.test","opsSec":5122748.6367733665,"samples":4},{"name":"Using new RegExp.test with cached regex pattern","opsSec":5836006.53829842,"samples":5}]}-->

## startsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|129,346,336|85|
|(short string) (true) String#slice and strict comparison|144,503,326|83|
|(long string) (true) String#startsWith|94,155,953|87|
|(long string) (true) String#slice and strict comparison|146,235,696|81|
|(short string) (false) String#startsWith|143,286,613|87|
|(short string) (false) String#slice and strict comparison|145,033,177|82|
|(long string) (false) String#startsWith|142,590,516|83|
|(long string) (false) String#slice and strict comparison|147,597,683|84|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":129346336.01311669,"samples":6},{"name":"(short string) (true) String#slice and strict comparison","opsSec":144503326.18499938,"samples":6},{"name":"(long string) (true) String#startsWith","opsSec":94155953.29849324,"samples":5},{"name":"(long string) (true) String#slice and strict comparison","opsSec":146235696.3879777,"samples":5},{"name":"(short string) (false) String#startsWith","opsSec":143286612.98499513,"samples":4},{"name":"(short string) (false) String#slice and strict comparison","opsSec":145033177.11918664,"samples":4},{"name":"(long string) (false) String#startsWith","opsSec":142590515.61231717,"samples":6},{"name":"(long string) (false) String#slice and strict comparison","opsSec":147597683.07022327,"samples":6}]}-->

## Super vs This

|name|ops/sec|samples|
|-|-|-|
|Using super|124,454,856|82|
|Using this|140,842,193|80|


<details>
<summary>Environment</summary>

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

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

## Getting unix time

|name|ops/sec|samples|
|-|-|-|
|new Date().getTime()|12,275,750|93|
|Date.now()|22,010,492|95|


<details>
<summary>Environment</summary>

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

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