## Adding property

|name|ops/sec|samples|
|-|-|-|
|Directly in the object|911,276,527|95|
|Using dot notation|911,621,739|99|
|Using define property (writable)|4,637,360|97|
|Using define property initialized (writable)|6,771,919|94|
|Using define property (getter)|2,675,824|93|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Directly in the object","opsSec":911276527.1248406,"samples":6},{"name":"Using dot notation","opsSec":911621738.5536375,"samples":10},{"name":"Using define property (writable)","opsSec":4637359.525829851,"samples":6},{"name":"Using define property initialized (writable)","opsSec":6771918.923551921,"samples":5},{"name":"Using define property (getter)","opsSec":2675824.2833474968,"samples":4}]}-->

## Array.append (number)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.004ms
new Array(length)|10|0.001ms
array.push|100|0.079ms
new Array(length)|100|0.01ms
array.push|1,000|0.031ms
new Array(length)|1,000|0.015ms
array.push|10,000|0.263ms
new Array(length)|10,000|0.148ms
array.push|1,000,000|29.219ms
new Array(length)|1,000,000|8.429ms
array.push|100,000,000|1,988.437ms
new Array(length)|100,000,000|4,194.6ms
## Array.append (string)

|type|amount|time elapsed|
|-|-|-|
array.push|10|0.005ms
new Array(length)|10|0.003ms
array.push|100|0.017ms
new Array(length)|100|0.012ms
array.push|1,000|0.044ms
new Array(length)|1,000|0.021ms
array.push|10,000|0.308ms
new Array(length)|10,000|0.201ms
array.push|1,000,000|19.981ms
new Array(length)|1,000,000|7.233ms
array.push|100,000,000|2,063.521ms
new Array(length)|100,000,000|4,869.362ms

## Array Creation

|name|ops/sec|samples|
|-|-|-|
|new Array|218|84|
|Array.from|23|43|


<details>
<summary>Environment</summary>

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

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

## async function vs function

|name|ops/sec|samples|
|-|-|-|
|function|911,751,941|98|
|[async] async function|18,802,937|88|
|[async] function|340,866|38|


<details>
<summary>Environment</summary>

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

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

## Blob

|name|ops/sec|samples|
|-|-|-|
|new Blob (128)|6,045|90|
|new Blob (1024)|767|77|
|text (128)|6,447|88|
|text (1024)|813|88|
|arrayBuffer (128)|6,446|90|
|arrayBuffer (1024)|816|90|
|slice (0, 64)|202,761|58|
|slice (0, 512)|27,697|56|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"new Blob (128)","opsSec":6044.6659276934115,"samples":5},{"name":"new Blob (1024)","opsSec":766.588770581704,"samples":2},{"name":"text (128)","opsSec":6447.481139966268,"samples":6},{"name":"text (1024)","opsSec":812.6987539342531,"samples":2},{"name":"arrayBuffer (128)","opsSec":6445.982107741202,"samples":5},{"name":"arrayBuffer (1024)","opsSec":815.9479908326671,"samples":2},{"name":"slice (0, 64)","opsSec":202760.58162225556,"samples":3},{"name":"slice (0, 512)","opsSec":27697.440103380963,"samples":4}]}-->

## Comparison using `instanceof`

|name|ops/sec|samples|
|-|-|-|
|[True conditional] Using instanceof only|271,391|54|
|[True conditional] Using constructor name|226,751|96|
|[True conditional] Check if property is valid then instanceof |229,988|96|
|[False conditional] Using instanceof only|911,782,711|99|
|[False conditional] Using constructor name|913,514,734|95|
|[False conditional] Check if property is valid then instanceof |912,785,640|98|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"[True conditional] Using instanceof only","opsSec":271391.46327653615,"samples":3},{"name":"[True conditional] Using constructor name","opsSec":226751.42220827684,"samples":3},{"name":"[True conditional] Check if property is valid then instanceof ","opsSec":229987.70785463302,"samples":3},{"name":"[False conditional] Using instanceof only","opsSec":911782711.1473707,"samples":6},{"name":"[False conditional] Using constructor name","opsSec":913514734.125303,"samples":6},{"name":"[False conditional] Check if property is valid then instanceof ","opsSec":912785640.2397583,"samples":7}]}-->

## Crypto Verify

|name|ops/sec|samples|
|-|-|-|
|crypto.createVerify('RSA-SHA256')|7,417|92|
|crypto.verify('RSA-SHA256')|7,405|94|


<details>
<summary>Environment</summary>

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

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

## Date format MM/DD/YYYY

|name|ops/sec|samples|
|-|-|-|
|Intl.DateTimeFormat().format(Date.now())|17,762|80|
|Intl.DateTimeFormat().format(new Date())|18,022|81|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|17,764|77|
|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|18,702|80|
|Reusing Intl.DateTimeFormat()|760,059|86|
|Date.toLocaleDateString()|895,802|97|
|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|21,795|84|
|Format using date.get*|0|0|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Intl.DateTimeFormat().format(Date.now())","opsSec":17761.556230266116,"samples":4},{"name":"Intl.DateTimeFormat().format(new Date())","opsSec":18022.190238890733,"samples":5},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())","opsSec":17764.494935234354,"samples":3},{"name":"Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())","opsSec":18701.961362642913,"samples":4},{"name":"Reusing Intl.DateTimeFormat()","opsSec":760059.0476413654,"samples":4},{"name":"Date.toLocaleDateString()","opsSec":895801.8336038354,"samples":5},{"name":"Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)","opsSec":21795.282111332435,"samples":5},{"name":"Format using date.get*","opsSec":0,"samples":0}]}-->

## Date String coersion

|name|ops/sec|samples|
|-|-|-|
|Using String()|1,186,706|94|
|Using brackets {}|1,218,290|97|
|Using '' + |1,211,039|98|
|Using date.toString()|1,354,385|95|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using String()","opsSec":1186705.566558863,"samples":3},{"name":"Using brackets {}","opsSec":1218289.7190281125,"samples":5},{"name":"Using '' + ","opsSec":1211039.2103370784,"samples":4},{"name":"Using date.toString()","opsSec":1354385.0818145059,"samples":6}]}-->

## Deleting properties

|name|ops/sec|samples|
|-|-|-|
|Using delete property|4,434,108|95|
|Using delete property (proto: null)|22,907,948|98|
|Using delete property (cached proto: null)|4,483,988|96|
|Using undefined assignment|909,598,299|97|
|Using undefined assignment (proto: null)|26,190,449|99|
|Using undefined property (cached proto: null)|908,165,205|95|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using delete property","opsSec":4434107.95574427,"samples":4},{"name":"Using delete property (proto: null)","opsSec":22907948.113128122,"samples":6},{"name":"Using delete property (cached proto: null)","opsSec":4483988.276137414,"samples":4},{"name":"Using undefined assignment","opsSec":909598298.5294715,"samples":7},{"name":"Using undefined assignment (proto: null)","opsSec":26190448.73689006,"samples":6},{"name":"Using undefined property (cached proto: null)","opsSec":908165204.8772006,"samples":6}]}-->

## Node.js Error

|name|ops/sec|samples|
|-|-|-|
|Error|261,248|49|
|NodeError|220,252|96|
|NodeError Range|220,477|95|


<details>
<summary>Environment</summary>

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

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

## Function return

|name|ops/sec|samples|
|-|-|-|
|Function returning null|2,001,859|95|
|Function returning explicitly undefined|2,006,667|95|
|Function returning implicitly undefined|2,065,058|96|
|Function returning string|1,995,468|94|
|Function returning integer|2,070,823|97|
|Function returning float|2,048,575|98|
|Function returning functions|1,981,317|95|
|Function returning arrow functions|2,010,496|97|
|Function returning empty object|2,036,019|93|
|Function returning empty array|2,005,332|95|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Function returning null","opsSec":2001859.4908785587,"samples":6},{"name":"Function returning explicitly undefined","opsSec":2006666.991948874,"samples":5},{"name":"Function returning implicitly undefined","opsSec":2065057.9120174488,"samples":6},{"name":"Function returning string","opsSec":1995468.3424151621,"samples":6},{"name":"Function returning integer","opsSec":2070823.2069681855,"samples":6},{"name":"Function returning float","opsSec":2048575.201362693,"samples":4},{"name":"Function returning functions","opsSec":1981316.9450522526,"samples":5},{"name":"Function returning arrow functions","opsSec":2010496.4586103875,"samples":6},{"name":"Function returning empty object","opsSec":2036018.5652705512,"samples":6},{"name":"Function returning empty array","opsSec":2005331.6576590745,"samples":5}]}-->

## Array.includes vs raw comparison

|name|ops/sec|samples|
|-|-|-|
|using Array.includes|908,878,486|97|
|using Array.includes (first item)|910,490,275|97|
|Using raw comparison|912,494,510|99|
|Using raw comparison (first item)|911,469,927|97|


<details>
<summary>Environment</summary>

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

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

## Object.keys vs Object.getOwnPropertyNames comparison

|name|ops/sec|samples|
|-|-|-|
|Using Object.keys()|101,024,500|94|
|Using Object.getOwnPropertyNames()|99,062,009|99|


<details>
<summary>Environment</summary>

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

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

## Get the last item of an Array

|name|ops/sec|samples|
|-|-|-|
|Length = 100 - Array.at|964,826,270|96|
|Length = 10_000 - Array.at|966,874,352|96|
|Length = 1_000_000 - Array.at|967,291,989|98|
|Length = 100 - Array[length - 1]|909,852,337|96|
|Length = 10_000 - Array[length - 1]|910,511,896|97|
|Length = 1_000_000 - Array[length - 1]|910,115,323|95|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Length = 100 - Array.at","opsSec":964826270.2622097,"samples":6},{"name":"Length = 10_000 - Array.at","opsSec":966874352.2000805,"samples":7},{"name":"Length = 1_000_000 - Array.at","opsSec":967291989.3666257,"samples":8},{"name":"Length = 100 - Array[length - 1]","opsSec":909852336.9924241,"samples":7},{"name":"Length = 10_000 - Array[length - 1]","opsSec":910511895.5040598,"samples":7},{"name":"Length = 1_000_000 - Array[length - 1]","opsSec":910115322.8304778,"samples":6}]}-->

## Object Creation

|name|ops/sec|samples|
|-|-|-|
|Object.create(null)|91,860,349|96|
|Object.create({})|2,924,902|84|
|Cached Empty.prototype|910,577,842|97|
|Empty.prototype|2,715,279|91|
|Empty class|1,730,037|88|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Object.create(null)","opsSec":91860348.98275596,"samples":5},{"name":"Object.create({})","opsSec":2924902.1091555287,"samples":3},{"name":"Cached Empty.prototype","opsSec":910577842.0354116,"samples":7},{"name":"Empty.prototype","opsSec":2715278.8162586843,"samples":3},{"name":"Empty class","opsSec":1730036.9936099562,"samples":3}]}-->

## Optional Chain (?) vs && operator

|name|ops/sec|samples|
|-|-|-|
|Using optional chain (obj.field?.field2) (Valid)|910,630,468|94|
|Using optional chain (obj.field?.field2) (undefined)|911,660,012|95|
|Using and operator (obj.field && obj.field.field2) (Valid)|911,718,644|96|
|Using and operator (obj.field && obj.field.field2) (undefined)|883,654,802|92|


<details>
<summary>Environment</summary>

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

## Parsing Integer

|name|ops/sec|samples|
|-|-|-|
|Using parseInt(x, 10) - small number (2 len)|911,393,550|96|
|Using parseInt(x, 10) - big number (10 len)|912,194,564|98|
|Using + - small number (2 len)|912,241,958|97|
|Using + - big number (10 len)|911,091,167|96|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:08:45 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":911393550.4215589,"samples":6},{"name":"Using parseInt(x, 10) - big number (10 len)","opsSec":912194563.739854,"samples":6},{"name":"Using + - small number (2 len)","opsSec":912241957.8979269,"samples":7},{"name":"Using + - big number (10 len)","opsSec":911091167.4315401,"samples":6}]}-->

## Possible undefined Function

|name|ops/sec|samples|
|-|-|-|
|Using if to check function existence|1,497,488|84|
|Using ? operator to avoid rejection|1,573,074|89|


<details>
<summary>Environment</summary>

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

## Private Property

|name|ops/sec|samples|
|-|-|-|
|Raw usage private field|907,692,199|98|
|Raw usage underscore usage|907,917,373|96|
|Manipulating private properties using #|899,332,468|99|
|Manipulating private properties using underscore(_)|900,111,246|97|
|Manipulating private properties using Symbol|899,590,555|97|
|Manipulating private properties using PrivateSymbol|55,476,602|92|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Raw usage private field","opsSec":907692199.4531345,"samples":7},{"name":"Raw usage underscore usage","opsSec":907917372.6048611,"samples":6},{"name":"Manipulating private properties using #","opsSec":899332467.6372743,"samples":7},{"name":"Manipulating private properties using underscore(_)","opsSec":900111245.509731,"samples":7},{"name":"Manipulating private properties using Symbol","opsSec":899590554.7760267,"samples":8},{"name":"Manipulating private properties using PrivateSymbol","opsSec":55476602.33878414,"samples":5}]}-->

## Property access after shape transition

|name|ops/sec|samples|
|-|-|-|
|Adding property after object creation - small object|5,734,874|94|
|Adding property in the object creation - small object|5,738,829|97|
|Adding property after the function creation - small class|297,086|89|
|Adding property in the function creation - small class|301,261|92|
|Adding property after the class creation - small class|299,706|89|
|Adding property in the class creation - small class|298,145|88|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 15.2GB Mem
* __Run:__ Fri May 03 2024 23:36:19 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":5734873.865728777,"samples":6},{"name":"Adding property in the object creation - small object","opsSec":5738828.588568682,"samples":6},{"name":"Adding property after the function creation - small class","opsSec":297085.7415783444,"samples":3},{"name":"Adding property in the function creation - small class","opsSec":301261.2544932141,"samples":4},{"name":"Adding property after the class creation - small class","opsSec":299705.9021107599,"samples":3},{"name":"Adding property in the class creation - small class","opsSec":298145.3256726959,"samples":4}]}-->

## Property Getter Access

|name|ops/sec|samples|
|-|-|-|
|Getter (class)|910,387,828|97|
|Getter|102,570,747|98|
|Method|910,503,015|99|
|DefineProperty (getter)|910,163,324|95|
|DefineProperty (getter & enumerable=false)|102,468,931|99|
|DefineProperty (getter & configurable=false)|910,839,626|98|
|DefineProperty (getter & enumerable=false & configurable=false)|102,310,790|95|
|DefineProperty (writable)|911,424,307|99|
|DefineProperty (writable & enumerable=false)|910,964,986|99|
|DefineProperty (writable & enumerable=false & configurable=false)|910,542,547|96|
|DefineProperties (getter)|73,919,335|72|
|DefineProperties (getter & enumerable=false)|63,044,937|92|
|DefineProperties (getter & enumerable=false & configurable=false)|63,618,817|92|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Getter (class)","opsSec":910387828.3629899,"samples":6},{"name":"Getter","opsSec":102570746.97579397,"samples":6},{"name":"Method","opsSec":910503014.7640818,"samples":6},{"name":"DefineProperty (getter)","opsSec":910163323.6323717,"samples":6},{"name":"DefineProperty (getter & enumerable=false)","opsSec":102468931.25263163,"samples":8},{"name":"DefineProperty (getter & configurable=false)","opsSec":910839625.6474742,"samples":7},{"name":"DefineProperty (getter & enumerable=false & configurable=false)","opsSec":102310789.88621782,"samples":5},{"name":"DefineProperty (writable)","opsSec":911424306.7340267,"samples":6},{"name":"DefineProperty (writable & enumerable=false)","opsSec":910964986.2190089,"samples":8},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":910542547.0096309,"samples":6},{"name":"DefineProperties (getter)","opsSec":73919334.61016795,"samples":5},{"name":"DefineProperties (getter & enumerable=false)","opsSec":63044936.89310471,"samples":6},{"name":"DefineProperties (getter & enumerable=false & configurable=false)","opsSec":63618817.31457065,"samples":4}]}-->

## Property Setter Access

|name|ops/sec|samples|
|-|-|-|
|Setter (class)|864,976,216|97|
|Setter|13,830,892|97|
|Method|867,958,842|96|
|DefineProperty (setter)|838,164,202|95|
|DefineProperty (setter & enumerable=false)|13,908,788|99|
|DefineProperty (setter & configurable=false)|13,876,322|97|
|DefineProperty (setter & enumerable=false & configurable=false)|13,759,338|96|
|DefineProperty (writable)|869,063,724|96|
|DefineProperty (writable & enumerable=false)|869,701,407|97|
|DefineProperty (writable & enumerable=false & configurable=false)|868,763,472|97|
|DefineProperties (setter)|869,163,627|98|
|DefineProperties (setter & enumerable=false)|13,675,654|98|
|DefineProperties (setter & enumerable=false & configurable=false)|12,563,405|92|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Setter (class)","opsSec":864976216.1832819,"samples":6},{"name":"Setter","opsSec":13830891.742376845,"samples":6},{"name":"Method","opsSec":867958842.2818623,"samples":6},{"name":"DefineProperty (setter)","opsSec":838164202.2699968,"samples":6},{"name":"DefineProperty (setter & enumerable=false)","opsSec":13908787.613023985,"samples":6},{"name":"DefineProperty (setter & configurable=false)","opsSec":13876322.463097759,"samples":5},{"name":"DefineProperty (setter & enumerable=false & configurable=false)","opsSec":13759338.390978158,"samples":5},{"name":"DefineProperty (writable)","opsSec":869063723.7687808,"samples":6},{"name":"DefineProperty (writable & enumerable=false)","opsSec":869701406.7572429,"samples":7},{"name":"DefineProperty (writable & enumerable=false & configurable=false)","opsSec":868763471.9273721,"samples":8},{"name":"DefineProperties (setter)","opsSec":869163627.2392455,"samples":6},{"name":"DefineProperties (setter & enumerable=false)","opsSec":13675653.64460286,"samples":7},{"name":"DefineProperties (setter & enumerable=false & configurable=false)","opsSec":12563404.826335507,"samples":5}]}-->

## replace vs replaceAll comparison

|name|ops/sec|samples|
|-|-|-|
|Using replace(//g)|3,619,894|96|
|Using replaceAll()|3,404,168|95|
|Using replaceAll(//g)|3,345,643|96|


<details>
<summary>Environment</summary>

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

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

## Shallow Copy

|name|ops/sec|samples|
|-|-|-|
|{ ...object }|34,110,430|97|
|{ ...object, __proto__: null }|2,751,069|99|
|{ ...object, newProp: true }|30,984,985|98|
|structuredClone|299,100|95|
|JSON.parse + JSON.stringify|260,305|98|
|loop + object.keys starting with {}|1,654,335|97|
|loop + object.keys starting with { __proto__: null }|860,821|91|
|loop + object.keys starting with { randomProp: true }|690,937|95|
|object.keys + reduce(FN, {})|669,400|96|
|object.keys + reduce(FN, { __proto__: null })|873,117|94|
|object.keys + reduce(FN, { newProp: true })|693,642|94|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{ ...object }","opsSec":34110429.71308366,"samples":5},{"name":"{ ...object, __proto__: null }","opsSec":2751069.1117209615,"samples":4},{"name":"{ ...object, newProp: true }","opsSec":30984985.308069456,"samples":6},{"name":"structuredClone","opsSec":299099.8476826542,"samples":6},{"name":"JSON.parse + JSON.stringify","opsSec":260305.37453265602,"samples":5},{"name":"loop + object.keys starting with {}","opsSec":1654335.0635383169,"samples":7},{"name":"loop + object.keys starting with { __proto__: null }","opsSec":860820.8395346226,"samples":6},{"name":"loop + object.keys starting with { randomProp: true }","opsSec":690936.7690643268,"samples":4},{"name":"object.keys + reduce(FN, {})","opsSec":669399.8132645192,"samples":5},{"name":"object.keys + reduce(FN, { __proto__: null })","opsSec":873117.1291549926,"samples":5},{"name":"object.keys + reduce(FN, { newProp: true })","opsSec":693641.8415198869,"samples":5}]}-->

## Sorting Map

|name|ops/sec|samples|
|-|-|-|
|Sort using default|351,456|94|
|Sort using first char|1,565,173|96|
|Sort using localeCompare|1,440,105|95|


<details>
<summary>Environment</summary>

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

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

## Object.assign VS spread operator

|name|ops/sec|samples|
|-|-|-|
|{...bigObject} - Total keys: 1000|2,194|93|
|{...smallObject} - Total keys: 2|125,225,402|98|
|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,306|97|
|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,970|99|
|{ ...bigObject, ...anotherBigObject }|1,371|96|
|Object.assign({}, smallObject, anotherSmallObject) - creating new object|16,495,535|97|
|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|40,901,429|98|
|{ ...smallObject, ...anotherSmallObject }|27,218,115|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"{...bigObject} - Total keys: 1000","opsSec":2193.746848556079,"samples":6},{"name":"{...smallObject} - Total keys: 2","opsSec":125225402.08037616,"samples":5},{"name":"Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object","opsSec":1306.1452125841363,"samples":4},{"name":"Object.assign(bigObject, anotherBigObject) - mutating bigObject","opsSec":6969.768236675816,"samples":4},{"name":"{ ...bigObject, ...anotherBigObject }","opsSec":1371.138248521878,"samples":5},{"name":"Object.assign({}, smallObject, anotherSmallObject) - creating new object","opsSec":16495534.96232017,"samples":4},{"name":"Object.assign(smallObject, anotherSmallObject) - mutating smallObject","opsSec":40901428.84060211,"samples":5},{"name":"{ ...smallObject, ...anotherSmallObject }","opsSec":27218114.502992734,"samples":6}]}-->

## Stream.Readable

|name|ops/sec|samples|
|-|-|-|
|streams.Readable reading 1e3 * "some data"|2,272|87|
|streams.web.Readable reading 1e3 * "some data"|2,215|91|


<details>
<summary>Environment</summary>

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

## Stream.Writable

|name|ops/sec|samples|
|-|-|-|
|streams.Writable writing 1e3 * "some data"|6,254|96|
|streams.web.WritableStream writing 1e3 * "some data"|1,405|63|


<details>
<summary>Environment</summary>

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

## String concat

|name|ops/sec|samples|
|-|-|-|
|Using + sign|908,991,885|99|
|Using backtick (`)|911,186,417|100|
|Using array.join|12,485,618|94|


<details>
<summary>Environment</summary>

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

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

## endsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#endsWith|310,228,834|97|
|(short string) (true) String#slice and strict comparison|909,879,196|97|
|(long string) (true) String#endsWith|195,093,385|95|
|(long string) (true) String#slice and strict comparison|907,857,743|97|
|(short string) (false) String#endsWith|869,408,128|97|
|(short string) (false) String#slice and strict comparison|909,279,294|99|
|(long string) (false) String#endsWith|867,721,922|95|
|(long string) (false) String#slice and strict comparison|909,448,280|96|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":310228834.07779336,"samples":6},{"name":"(short string) (true) String#slice and strict comparison","opsSec":909879195.7410587,"samples":6},{"name":"(long string) (true) String#endsWith","opsSec":195093384.76112723,"samples":6},{"name":"(long string) (true) String#slice and strict comparison","opsSec":907857743.3321143,"samples":7},{"name":"(short string) (false) String#endsWith","opsSec":869408127.7531691,"samples":6},{"name":"(short string) (false) String#slice and strict comparison","opsSec":909279294.4261656,"samples":6},{"name":"(long string) (false) String#endsWith","opsSec":867721921.6355888,"samples":7},{"name":"(long string) (false) String#slice and strict comparison","opsSec":909448280.417373,"samples":7}]}-->

## String searching

|name|ops/sec|samples|
|-|-|-|
|Using includes|910,916,791|96|
|Using indexof|910,932,828|96|
|Using RegExp.test|16,240,160|95|
|Using RegExp.text with cached regex pattern|16,973,273|98|
|Using new RegExp.test|4,992,421|94|
|Using new RegExp.test with cached regex pattern|5,465,386|98|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"Using includes","opsSec":910916790.5726385,"samples":9},{"name":"Using indexof","opsSec":910932828.1616387,"samples":8},{"name":"Using RegExp.test","opsSec":16240159.8915229,"samples":6},{"name":"Using RegExp.text with cached regex pattern","opsSec":16973272.936409727,"samples":5},{"name":"Using new RegExp.test","opsSec":4992421.494583237,"samples":7},{"name":"Using new RegExp.test with cached regex pattern","opsSec":5465386.439985793,"samples":5}]}-->

## startsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|310,333,228|97|
|(short string) (true) String#slice and strict comparison|909,529,671|99|
|(long string) (true) String#startsWith|195,062,637|98|
|(long string) (true) String#slice and strict comparison|908,702,536|96|
|(short string) (false) String#startsWith|870,515,459|100|
|(short string) (false) String#slice and strict comparison|909,294,226|99|
|(long string) (false) String#startsWith|868,876,910|98|
|(long string) (false) String#slice and strict comparison|909,969,990|99|


<details>
<summary>Environment</summary>

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

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":15.245216369628906},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":310333227.73421556,"samples":9},{"name":"(short string) (true) String#slice and strict comparison","opsSec":909529670.5500989,"samples":6},{"name":"(long string) (true) String#startsWith","opsSec":195062636.87915564,"samples":5},{"name":"(long string) (true) String#slice and strict comparison","opsSec":908702535.9722116,"samples":7},{"name":"(short string) (false) String#startsWith","opsSec":870515458.9880201,"samples":8},{"name":"(short string) (false) String#slice and strict comparison","opsSec":909294225.7725935,"samples":7},{"name":"(long string) (false) String#startsWith","opsSec":868876910.4887232,"samples":7},{"name":"(long string) (false) String#slice and strict comparison","opsSec":909969989.6880636,"samples":6}]}-->

## Super vs This

|name|ops/sec|samples|
|-|-|-|
|Using super|905,099,681|96|
|Using this|908,052,206|94|


<details>
<summary>Environment</summary>

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

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

## Getting unix time

|name|ops/sec|samples|
|-|-|-|
|new Date().getTime()|13,199,273|96|
|Date.now()|23,916,400|94|


<details>
<summary>Environment</summary>

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

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