diff --git a/v18/RESULTS-v18_16_1.md b/v18/RESULTS-v18_16_1.md deleted file mode 100644 index 37051a39..00000000 --- a/v18/RESULTS-v18_16_1.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|848,338,115|99| -|Using dot notation|847,266,101|96| -|Using define property (writable)|4,278,073|95| -|Using define property initialized (writable)|6,061,101|98| -|Using define property (getter)|2,258,760|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:52:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.001ms -array.push|100|0.023ms -new Array(length)|100|0.007ms -array.push|1,000|0.041ms -new Array(length)|1,000|0.023ms -array.push|10,000|0.265ms -new Array(length)|10,000|0.176ms -array.push|1,000,000|26.345ms -new Array(length)|1,000,000|13.647ms -array.push|100,000,000|1,810.871ms -new Array(length)|100,000,000|3,860.978ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.019ms -array.push|100|0.013ms -new Array(length)|100|0.009ms -array.push|1,000|0.043ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.462ms -new Array(length)|10,000|3.232ms -array.push|1,000,000|257.617ms -new Array(length)|1,000,000|4.502ms -array.push|100,000,000|2,229.434ms -new Array(length)|100,000,000|4,141.973ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|303|86| -|Array.from|20|37| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:08:54 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|848,505,686|100| -|[async] async function|17,633,212|87| -|[async] function|330,261|27| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:15:38 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,392|85| -|new Blob (1024)|560|74| -|text (128)|49,945|87| -|text (1024)|33,300|79| -|arrayBuffer (128)|50,434|86| -|arrayBuffer (1024)|34,206|80| -|slice (0, 64)|94,569|86| -|slice (0, 512)|57,036|81| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:26:16 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|238,925|54| -|[True conditional] Using constructor name|181,450|97| -|[True conditional] Check if property is valid then instanceof |183,909|96| -|[False conditional] Using instanceof only|848,868,738|96| -|[False conditional] Using constructor name|848,615,740|95| -|[False conditional] Check if property is valid then instanceof |849,461,541|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:39:00 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,718|93| -|crypto.verify('RSA-SHA256')|6,741|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:50:16 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|2,584,883|98| -|fromUnixToISOString(new Date())|2,127,369|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:00:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|12,398|86| -|Intl.DateTimeFormat().format(new Date())|12,515|90| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|15,783|79| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|15,571|93| -|Reusing Intl.DateTimeFormat()|481,464|81| -|Date.toLocaleDateString()|580,893|100| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|14,078|84| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:10:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|996,445|97| -|Using brackets {}|951,991|97| -|Using '' + |997,822|95| -|Using date.toString()|1,096,211|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:24:47 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,396,855|96| -|Using delete property (proto: null)|23,454,152|96| -|Using delete property (cached proto: null)|3,424,700|95| -|Using undefined assignment|846,843,872|100| -|Using undefined assignment (proto: null)|25,880,444|95| -|Using undefined property (cached proto: null)|844,730,175|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:35:32 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|234,076|53| -|NodeError|180,564|94| -|NodeError Range|181,045|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:45:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,835,093|98| -|Function returning explicitly undefined|1,812,670|94| -|Function returning implicitly undefined|1,855,742|92| -|Function returning string|1,812,482|98| -|Function returning integer|1,847,252|96| -|Function returning float|1,832,637|96| -|Function returning functions|1,771,339|96| -|Function returning arrow functions|1,817,057|98| -|Function returning empty object|1,853,535|98| -|Function returning empty array|1,828,461|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:58:20 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|847,316,413|99| -|using Array.includes (first item)|847,023,757|101| -|Using raw comparison|849,064,488|98| -|Using raw comparison (first item)|847,968,445|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:13:52 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|93,829,200|94| -|Using Object.getOwnPropertyNames()|94,855,054|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:26:15 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|27,286,422|96| -|Length = 10_000 - Array.at|26,157,156|97| -|Length = 1_000_000 - Array.at|25,830,921|96| -|Length = 100 - Array[length - 1]|843,480,000|100| -|Length = 10_000 - Array[length - 1]|845,181,946|88| -|Length = 1_000_000 - Array[length - 1]|843,897,388|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:34:49 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,961,643|94| -|Object.create({})|1,482,988|89| -|Cached Empty.prototype|845,868,116|89| -|Empty.prototype|1,637,608|88| -|Empty class|955,112|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:47:27 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|848,311,564|100| -|Using optional chain (obj.field?.field2) (undefined)|848,110,906|101| -|Using and operator (obj.field && obj.field.field2) (Valid)|847,394,441|96| -|Using and operator (obj.field && obj.field.field2) (undefined)|848,081,238|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:57:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|283,542,086|95| -|Using parseInt(x, 10) - big number (10 len)|21,150,095|94| -|Using + - small number (2 len)|848,792,756|99| -|Using + - big number (10 len)|846,697,353|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:09:18 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|751,840|81| -|Using ? operator to avoid rejection|798,581|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:16:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|350,822,182|91| -|Raw usage underscore usage|361,782,427|94| -|Manipulating private properties using #|266,862,426|89| -|Manipulating private properties using underscore(_)|228,491,176|80| -|Manipulating private properties using Symbol|222,200,285|81| -|Manipulating private properties using PrivateSymbol|51,400,142|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:27:38 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|3,694,428|96| -|Adding property in the object creation - small object|3,705,683|97| -|Adding property after the function creation - small class|192,945|90| -|Adding property in the function creation - small class|194,511|89| -|Adding property after the class creation - small class|164,137|86| -|Adding property in the class creation - small class|163,089|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:40:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|848,165,527|98| -|Getter|99,585,730|97| -|Method|848,499,693|98| -|DefineProperty (getter)|848,485,096|99| -|DefineProperty (getter & enumerable=false)|99,222,363|98| -|DefineProperty (getter & configurable=false)|848,466,032|99| -|DefineProperty (getter & enumerable=false & configurable=false)|98,793,801|93| -|DefineProperty (writable)|728,790,736|86| -|DefineProperty (writable & enumerable=false)|153,744,904|76| -|DefineProperty (writable & enumerable=false & configurable=false)|848,842,519|100| -|DefineProperties (getter)|99,705,912|98| -|DefineProperties (getter & enumerable=false)|99,140,978|99| -|DefineProperties (getter & enumerable=false & configurable=false)|87,937,251|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:56:21 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|814,583,054|99| -|Setter|11,848,296|93| -|Method|838,460,859|96| -|DefineProperty (setter)|830,298,663|100| -|DefineProperty (setter & enumerable=false)|11,280,110|95| -|DefineProperty (setter & configurable=false)|11,876,371|94| -|DefineProperty (setter & enumerable=false & configurable=false)|11,598,028|95| -|DefineProperty (writable)|847,414,873|98| -|DefineProperty (writable & enumerable=false)|847,922,751|99| -|DefineProperty (writable & enumerable=false & configurable=false)|848,021,102|98| -|DefineProperties (setter)|723,015,934|91| -|DefineProperties (setter & enumerable=false)|10,989,790|95| -|DefineProperties (setter & enumerable=false & configurable=false)|10,826,168|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:15:58 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,484,418|98| -|Using replaceAll()|3,076,000|101| -|Using replaceAll(//g)|3,133,452|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:35:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|27,323,255|95| -|{ ...object, __proto__: null }|27,911,591|94| -|{ ...object, newProp: true }|704,355|88| -|structuredClone|265,576|91| -|JSON.parse + JSON.stringify|207,379|99| -|loop + object.keys starting with {}|1,275,625|99| -|loop + object.keys starting with { __proto__: null }|780,826|96| -|loop + object.keys starting with { randomProp: true }|546,844|95| -|object.keys + reduce(FN, {})|531,992|97| -|object.keys + reduce(FN, { __proto__: null })|796,328|97| -|object.keys + reduce(FN, { newProp: true })|485,116|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:47:24 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|271,596|98| -|Sort using first char|1,360,102|93| -|Sort using localeCompare|1,192,051|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:01:42 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,988|93| -|{...smallObject} - Total keys: 2|108,440,068|95| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,182|97| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,133|98| -|{ ...bigObject, ...anotherBigObject }|1,106|93| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|14,159,863|95| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|33,709,544|94| -|{ ...smallObject, ...anotherSmallObject }|23,237,689|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:13:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,488|87| -|streams.web.Readable reading 1e3 * "some data"|527|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:25:41 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|5,244|94| -|streams.web.WritableStream writing 1e3 * "some data"|1,089|58| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:33:46 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|847,449,354|99| -|Using backtick (`)|848,078,259|98| -|Using array.join|12,696,796|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:43:19 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|848,221,267|99| -|Using indexof|849,302,574|98| -|Using RegExp.test|15,535,197|99| -|Using RegExp.text with cached regex pattern|16,194,833|99| -|Using new RegExp.test|4,271,810|96| -|Using new RegExp.test with cached regex pattern|4,961,644|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:54:18 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|159,466,322|93| -|Using this|160,262,228|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:07:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|10,812,427|99| -|Date.now()|22,476,837|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:14:57 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/RESULTS-v18_17_1.md b/v18/RESULTS-v18_17_1.md deleted file mode 100644 index b2e2d8e5..00000000 --- a/v18/RESULTS-v18_17_1.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|847,379,920|99| -|Using dot notation|847,423,699|99| -|Using define property (writable)|4,392,885|100| -|Using define property initialized (writable)|5,993,589|98| -|Using define property (getter)|2,259,359|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:53:26 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.002ms -array.push|100|0.021ms -new Array(length)|100|0.007ms -array.push|1,000|0.042ms -new Array(length)|1,000|0.025ms -array.push|10,000|0.258ms -new Array(length)|10,000|0.154ms -array.push|1,000,000|32.105ms -new Array(length)|1,000,000|5.829ms -array.push|100,000,000|1,912.485ms -new Array(length)|100,000,000|3,875.563ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.017ms -array.push|100|0.013ms -new Array(length)|100|0.011ms -array.push|1,000|0.045ms -new Array(length)|1,000|0.026ms -array.push|10,000|0.488ms -new Array(length)|10,000|3.226ms -array.push|1,000,000|277.558ms -new Array(length)|1,000,000|4.498ms -array.push|100,000,000|2,215.924ms -new Array(length)|100,000,000|4,197.715ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|306|86| -|Array.from|22|40| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:09:17 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|848,302,785|99| -|[async] async function|17,182,390|88| -|[async] function|303,902|32| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:15:06 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,636|83| -|new Blob (1024)|599|79| -|text (128)|49,702|88| -|text (1024)|32,494|82| -|arrayBuffer (128)|50,131|87| -|arrayBuffer (1024)|32,528|77| -|slice (0, 64)|93,307|85| -|slice (0, 512)|55,999|81| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:24:51 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|241,386|53| -|[True conditional] Using constructor name|180,413|95| -|[True conditional] Check if property is valid then instanceof |184,270|96| -|[False conditional] Using instanceof only|847,857,251|98| -|[False conditional] Using constructor name|848,004,989|98| -|[False conditional] Check if property is valid then instanceof |845,864,780|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:39:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,704|95| -|crypto.verify('RSA-SHA256')|6,752|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:51:47 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|2,590,578|95| -|fromUnixToISOString(new Date())|2,082,956|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:01:26 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,030|87| -|Intl.DateTimeFormat().format(new Date())|16,958|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|17,540|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|17,813|78| -|Reusing Intl.DateTimeFormat()|689,258|99| -|Date.toLocaleDateString()|708,900|99| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,320|82| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:13:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,021,372|98| -|Using brackets {}|1,053,909|96| -|Using '' + |1,020,180|94| -|Using date.toString()|1,133,160|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:24:11 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,385,876|97| -|Using delete property (proto: null)|22,877,829|97| -|Using delete property (cached proto: null)|3,352,440|92| -|Using undefined assignment|845,357,927|99| -|Using undefined assignment (proto: null)|25,757,557|95| -|Using undefined property (cached proto: null)|844,588,037|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:34:44 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|230,601|53| -|NodeError|178,315|97| -|NodeError Range|175,546|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:45:35 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,732,413|98| -|Function returning explicitly undefined|1,720,723|97| -|Function returning implicitly undefined|1,774,686|98| -|Function returning string|1,588,507|100| -|Function returning integer|1,739,796|93| -|Function returning float|1,747,188|97| -|Function returning functions|1,703,601|93| -|Function returning arrow functions|1,694,204|92| -|Function returning empty object|1,742,591|96| -|Function returning empty array|1,732,185|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:59:32 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|847,177,433|99| -|using Array.includes (first item)|848,036,206|97| -|Using raw comparison|848,735,321|98| -|Using raw comparison (first item)|847,391,852|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:14:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|94,284,619|96| -|Using Object.getOwnPropertyNames()|94,801,768|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:25:49 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|27,135,337|99| -|Length = 10_000 - Array.at|27,200,316|94| -|Length = 1_000_000 - Array.at|26,770,248|96| -|Length = 100 - Array[length - 1]|846,650,909|101| -|Length = 10_000 - Array[length - 1]|845,155,568|98| -|Length = 1_000_000 - Array[length - 1]|842,931,878|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:36:23 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,071,682|96| -|Object.create({})|1,511,002|89| -|Cached Empty.prototype|848,636,358|98| -|Empty.prototype|1,635,393|87| -|Empty class|946,367|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:48:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|845,112,251|99| -|Using optional chain (obj.field?.field2) (undefined)|846,587,302|97| -|Using and operator (obj.field && obj.field.field2) (Valid)|847,780,966|99| -|Using and operator (obj.field && obj.field.field2) (undefined)|843,642,457|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:59:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|283,582,242|94| -|Using parseInt(x, 10) - big number (10 len)|21,076,756|99| -|Using + - small number (2 len)|848,666,522|95| -|Using + - big number (10 len)|848,489,694|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:08:41 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|755,380|80| -|Using ? operator to avoid rejection|798,242|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:17:42 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|347,492,153|91| -|Raw usage underscore usage|361,769,460|92| -|Manipulating private properties using #|249,860,853|91| -|Manipulating private properties using underscore(_)|232,271,340|85| -|Manipulating private properties using Symbol|236,363,634|85| -|Manipulating private properties using PrivateSymbol|50,830,401|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:31:01 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|3,835,770|99| -|Adding property in the object creation - small object|3,843,707|100| -|Adding property after the function creation - small class|195,100|86| -|Adding property in the function creation - small class|195,281|91| -|Adding property after the class creation - small class|162,925|85| -|Adding property in the class creation - small class|163,918|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:38:08 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|846,839,366|100| -|Getter|99,388,732|96| -|Method|848,493,837|96| -|DefineProperty (getter)|848,079,757|98| -|DefineProperty (getter & enumerable=false)|99,788,143|98| -|DefineProperty (getter & configurable=false)|848,284,926|99| -|DefineProperty (getter & enumerable=false & configurable=false)|99,297,024|96| -|DefineProperty (writable)|848,008,632|94| -|DefineProperty (writable & enumerable=false)|849,269,499|97| -|DefineProperty (writable & enumerable=false & configurable=false)|822,133,673|98| -|DefineProperties (getter)|64,328,409|87| -|DefineProperties (getter & enumerable=false)|99,261,396|96| -|DefineProperties (getter & enumerable=false & configurable=false)|99,407,008|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:57:47 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|837,463,070|99| -|Setter|12,298,574|98| -|Method|840,209,593|95| -|DefineProperty (setter)|836,526,141|99| -|DefineProperty (setter & enumerable=false)|11,964,395|98| -|DefineProperty (setter & configurable=false)|11,910,251|98| -|DefineProperty (setter & enumerable=false & configurable=false)|12,158,764|94| -|DefineProperty (writable)|847,212,462|99| -|DefineProperty (writable & enumerable=false)|847,888,080|100| -|DefineProperty (writable & enumerable=false & configurable=false)|759,110,901|94| -|DefineProperties (setter)|847,263,305|99| -|DefineProperties (setter & enumerable=false)|12,106,630|99| -|DefineProperties (setter & enumerable=false & configurable=false)|11,230,873|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:19:19 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,483,242|93| -|Using replaceAll()|3,141,227|100| -|Using replaceAll(//g)|3,109,224|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:36:24 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|27,175,908|90| -|{ ...object, __proto__: null }|27,628,691|100| -|{ ...object, newProp: true }|650,303|85| -|structuredClone|258,694|99| -|JSON.parse + JSON.stringify|207,571|96| -|loop + object.keys starting with {}|522,722|97| -|loop + object.keys starting with { __proto__: null }|794,824|97| -|loop + object.keys starting with { randomProp: true }|553,260|99| -|object.keys + reduce(FN, {})|527,971|94| -|object.keys + reduce(FN, { __proto__: null })|778,498|96| -|object.keys + reduce(FN, { newProp: true })|532,471|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:49:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|269,901|99| -|Sort using first char|1,349,852|100| -|Sort using localeCompare|1,202,126|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:03:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,932|90| -|{...smallObject} - Total keys: 2|107,739,221|92| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,163|97| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,154|99| -|{ ...bigObject, ...anotherBigObject }|1,182|94| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|14,271,488|96| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|35,951,201|99| -|{ ...smallObject, ...anotherSmallObject }|23,665,508|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:15:26 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,554|88| -|streams.web.Readable reading 1e3 * "some data"|538|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:26:07 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|5,234|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,124|41| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:35:30 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|848,029,673|100| -|Using backtick (`)|848,483,942|100| -|Using array.join|12,358,292|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:42:48 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|847,648,867|99| -|Using indexof|848,442,443|97| -|Using RegExp.test|15,995,853|98| -|Using RegExp.text with cached regex pattern|16,694,431|101| -|Using new RegExp.test|4,316,186|96| -|Using new RegExp.test with cached regex pattern|5,062,554|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:55:51 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|158,584,383|96| -|Using this|159,141,977|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:08:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|11,144,728|96| -|Date.now()|22,412,990|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:15:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/RESULTS-v18_18_2.md b/v18/RESULTS-v18_18_2.md deleted file mode 100644 index bd29ec6d..00000000 --- a/v18/RESULTS-v18_18_2.md +++ /dev/null @@ -1,707 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|681,319,762|84| -|Using dot notation|567,425,709|85| -|Using define property (writable)|2,197,009|84| -|Using define property initialized (writable)|2,807,326|84| -|Using define property (getter)|1,145,724|80| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:36:07 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.009ms -new Array(length)|10|0.003ms -array.push|100|0.052ms -new Array(length)|100|0.015ms -array.push|1,000|0.076ms -new Array(length)|1,000|0.037ms -array.push|10,000|0.613ms -new Array(length)|10,000|0.293ms -array.push|1,000,000|58.076ms -new Array(length)|1,000,000|9.245ms -array.push|100,000,000|2,597.446ms -new Array(length)|100,000,000|6,286.69ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.01ms -new Array(length)|10|0.024ms -array.push|100|0.021ms -new Array(length)|100|0.029ms -array.push|1,000|0.091ms -new Array(length)|1,000|0.037ms -array.push|10,000|0.817ms -new Array(length)|10,000|5.769ms -array.push|1,000,000|444.501ms -new Array(length)|1,000,000|5.627ms -array.push|100,000,000|3,237.38ms -new Array(length)|100,000,000|7,044.537ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|261|75| -|Array.from|13|36| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:38:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|3,281|84| -|new Blob (1024)|439|71| -|text (128)|32,270|69| -|text (1024)|21,333|82| -|arrayBuffer (128)|32,662|86| -|arrayBuffer (1024)|21,912|87| -|slice (0, 64)|58,606|75| -|slice (0, 512)|33,342|76| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:40:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|134,416|51| -|[True conditional] Using constructor name|101,365|82| -|[True conditional] Check if property is valid then instanceof |103,924|86| -|[False conditional] Using instanceof only|654,461,694|87| -|[False conditional] Using constructor name|662,165,747|89| -|[False conditional] Check if property is valid then instanceof |630,796,491|85| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:43:12 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|3,599|86| -|crypto.verify('RSA-SHA256')|3,638|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:45:15 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,303,717|96| -|fromUnixToISOString(new Date())|1,100,949|89| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:47:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|7,984|82| -|Intl.DateTimeFormat().format(new Date())|7,926|81| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|8,517|68| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|9,092|86| -|Reusing Intl.DateTimeFormat()|453,692|73| -|Date.toLocaleDateString()|532,514|87| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|9,221|81| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:49:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|578,029|86| -|Using brackets {}|579,292|88| -|Using '' + |580,913|87| -|Using date.toString()|628,715|85| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:51:56 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|1,982,004|84| -|Using delete property (proto: null)|12,046,826|85| -|Using delete property (cached proto: null)|1,961,686|88| -|Using undefined assignment|741,970,271|89| -|Using undefined assignment (proto: null)|13,815,015|86| -|Using undefined property (cached proto: null)|635,514,254|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:54:13 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|160,360|53| -|NodeError|124,579|94| -|NodeError Range|125,818|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:55:51 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,098,511|96| -|Function returning explicitly undefined|1,086,017|98| -|Function returning implicitly undefined|1,098,243|93| -|Function returning string|1,103,987|97| -|Function returning integer|1,099,816|96| -|Function returning float|1,108,111|94| -|Function returning functions|1,085,130|98| -|Function returning arrow functions|1,093,252|95| -|Function returning empty object|1,112,520|96| -|Function returning empty array|1,064,301|97| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:58:17 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|696,258,526|93| -|using Array.includes (first item)|708,871,154|97| -|Using raw comparison|711,336,267|97| -|Using raw comparison (first item)|709,187,927|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:01:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|46,208,374|87| -|Using Object.getOwnPropertyNames()|43,840,169|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:03:48 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|13,210,699|90| -|Length = 10_000 - Array.at|13,505,327|95| -|Length = 1_000_000 - Array.at|13,506,214|96| -|Length = 100 - Array[length - 1]|590,515,734|95| -|Length = 10_000 - Array[length - 1]|565,781,417|93| -|Length = 1_000_000 - Array[length - 1]|586,756,464|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:07:31 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|57,191,941|95| -|Object.create({})|1,007,562|79| -|Cached Empty.prototype|592,354,290|98| -|Empty.prototype|1,108,332|86| -|Empty class|702,014|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:09:08 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|636,451,362|89| -|Using optional chain (obj.field?.field2) (undefined)|623,345,008|90| -|Using and operator (obj.field && obj.field.field2) (Valid)|627,218,216|90| -|Using and operator (obj.field && obj.field.field2) (undefined)|633,757,694|90| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:13:45 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|172,227,281|88| -|Using parseInt(x, 10) - big number (10 len)|12,992,635|82| -|Using + - small number (2 len)|828,439,890|86| -|Using + - big number (10 len)|843,805,331|89| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:15:46 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|577,209|75| -|Using ? operator to avoid rejection|624,100|82| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:19:32 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|171,921,232|83| -|Raw usage underscore usage|161,803,194|84| -|Manipulating private properties using #|112,337,048|86| -|Manipulating private properties using underscore(_)|112,649,400|95| -|Manipulating private properties using Symbol|113,481,371|90| -|Manipulating private properties using PrivateSymbol|21,694,070|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:22:52 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|1,697,886|91| -|Adding property in the object creation - small object|1,721,346|89| -|Adding property after the function creation - small class|129,219|82| -|Adding property in the function creation - small class|132,641|79| -|Adding property after the class creation - small class|108,986|80| -|Adding property in the class creation - small class|111,343|78| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:27:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|710,436,481|95| -|Getter|52,119,192|96| -|Method|710,506,171|96| -|DefineProperty (getter)|709,717,123|97| -|DefineProperty (getter & enumerable=false)|52,756,222|94| -|DefineProperty (getter & configurable=false)|710,899,195|97| -|DefineProperty (getter & enumerable=false & configurable=false)|52,702,988|95| -|DefineProperty (writable)|709,887,304|89| -|DefineProperty (writable & enumerable=false)|580,419,694|80| -|DefineProperty (writable & enumerable=false & configurable=false)|84,501,654|83| -|DefineProperties (getter)|33,212,732|92| -|DefineProperties (getter & enumerable=false)|52,943,034|96| -|DefineProperties (getter & enumerable=false & configurable=false)|52,057,213|95| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:32:16 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|617,535,544|87| -|Setter|6,430,351|85| -|Method|628,538,618|91| -|DefineProperty (setter)|619,955,158|90| -|DefineProperty (setter & enumerable=false)|6,390,792|88| -|DefineProperty (setter & configurable=false)|6,520,821|87| -|DefineProperty (setter & enumerable=false & configurable=false)|6,572,538|90| -|DefineProperty (writable)|761,112,483|92| -|DefineProperty (writable & enumerable=false)|758,465,377|92| -|DefineProperty (writable & enumerable=false & configurable=false)|573,617,892|75| -|DefineProperties (setter)|66,709,904|85| -|DefineProperties (setter & enumerable=false)|6,104,439|90| -|DefineProperties (setter & enumerable=false & configurable=false)|6,618,681|91| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:36:47 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|2,351,160|93| -|Using replaceAll()|2,141,096|94| -|Using replaceAll(//g)|2,108,005|98| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:39:20 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|19,377,774|92| -|{ ...object, __proto__: null }|19,635,752|94| -|{ ...object, newProp: true }|454,592|87| -|structuredClone|182,467|96| -|JSON.parse + JSON.stringify|145,650|98| -|loop + object.keys starting with {}|887,766|92| -|loop + object.keys starting with { __proto__: null }|537,445|95| -|loop + object.keys starting with { randomProp: true }|382,169|94| -|object.keys + reduce(FN, {})|366,368|98| -|object.keys + reduce(FN, { __proto__: null })|539,674|96| -|object.keys + reduce(FN, { newProp: true })|382,702|94| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:44:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|155,655|87| -|Sort using first char|747,398|84| -|Sort using localeCompare|659,601|86| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:47:17 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,006|86| -|{...smallObject} - Total keys: 2|53,339,144|80| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,190|83| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|3,311|86| -|{ ...bigObject, ...anotherBigObject }|702|83| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|8,145,789|86| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|19,996,711|86| -|{ ...smallObject, ...anotherSmallObject }|12,510,928|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:51:52 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|1,236|78| -|streams.web.Readable reading 1e3 * "some data"|397|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:54:33 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|3,408|93| -|streams.web.WritableStream writing 1e3 * "some data"|864|49| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:00:17 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|570,791,648|93| -|Using backtick (`)|587,488,671|91| -|Using array.join|5,075,281|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:05:15 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|699,077,876|96| -|Using indexof|712,536,494|97| -|Using RegExp.test|12,008,397|99| -|Using RegExp.text with cached regex pattern|12,636,814|98| -|Using new RegExp.test|3,131,744|96| -|Using new RegExp.test with cached regex pattern|3,672,390|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:07:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|105,911,326|85| -|Using this|109,486,261|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:13:48 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|5,692,493|89| -|Date.now()|12,170,568|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:18:00 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/add-property.md b/v18/v18_16_1/add-property.md deleted file mode 100644 index 1cab6cd5..00000000 --- a/v18/v18_16_1/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|848,338,115|99| -|Using dot notation|847,266,101|96| -|Using define property (writable)|4,278,073|95| -|Using define property initialized (writable)|6,061,101|98| -|Using define property (getter)|2,258,760|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:52:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/array-append.md b/v18/v18_16_1/array-append.md deleted file mode 100644 index 7c176e53..00000000 --- a/v18/v18_16_1/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.001ms -array.push|100|0.023ms -new Array(length)|100|0.007ms -array.push|1,000|0.041ms -new Array(length)|1,000|0.023ms -array.push|10,000|0.265ms -new Array(length)|10,000|0.176ms -array.push|1,000,000|26.345ms -new Array(length)|1,000,000|13.647ms -array.push|100,000,000|1,810.871ms -new Array(length)|100,000,000|3,860.978ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.019ms -array.push|100|0.013ms -new Array(length)|100|0.009ms -array.push|1,000|0.043ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.462ms -new Array(length)|10,000|3.232ms -array.push|1,000,000|257.617ms -new Array(length)|1,000,000|4.502ms -array.push|100,000,000|2,229.434ms -new Array(length)|100,000,000|4,141.973ms diff --git a/v18/v18_16_1/array-creation.md b/v18/v18_16_1/array-creation.md deleted file mode 100644 index 2a1113e9..00000000 --- a/v18/v18_16_1/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|303|86| -|Array.from|20|37| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:08:54 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/async-function-vs-function.md b/v18/v18_16_1/async-function-vs-function.md deleted file mode 100644 index ef3cc746..00000000 --- a/v18/v18_16_1/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|848,505,686|100| -|[async] async function|17,633,212|87| -|[async] function|330,261|27| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:15:38 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/blob.md b/v18/v18_16_1/blob.md deleted file mode 100644 index c3a785e9..00000000 --- a/v18/v18_16_1/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,392|85| -|new Blob (1024)|560|74| -|text (128)|49,945|87| -|text (1024)|33,300|79| -|arrayBuffer (128)|50,434|86| -|arrayBuffer (1024)|34,206|80| -|slice (0, 64)|94,569|86| -|slice (0, 512)|57,036|81| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:26:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/compare-using-instanceof.md b/v18/v18_16_1/compare-using-instanceof.md deleted file mode 100644 index 9118710f..00000000 --- a/v18/v18_16_1/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|238,925|54| -|[True conditional] Using constructor name|181,450|97| -|[True conditional] Check if property is valid then instanceof |183,909|96| -|[False conditional] Using instanceof only|848,868,738|96| -|[False conditional] Using constructor name|848,615,740|95| -|[False conditional] Check if property is valid then instanceof |849,461,541|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:39:00 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/crypto-verify.md b/v18/v18_16_1/crypto-verify.md deleted file mode 100644 index ec4d6efd..00000000 --- a/v18/v18_16_1/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,718|93| -|crypto.verify('RSA-SHA256')|6,741|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:50:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/date-format-iso.md b/v18/v18_16_1/date-format-iso.md deleted file mode 100644 index 2864c798..00000000 --- a/v18/v18_16_1/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|2,584,883|98| -|fromUnixToISOString(new Date())|2,127,369|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:00:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/date-format.md b/v18/v18_16_1/date-format.md deleted file mode 100644 index cb75f73f..00000000 --- a/v18/v18_16_1/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|12,398|86| -|Intl.DateTimeFormat().format(new Date())|12,515|90| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|15,783|79| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|15,571|93| -|Reusing Intl.DateTimeFormat()|481,464|81| -|Date.toLocaleDateString()|580,893|100| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|14,078|84| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:10:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/date-string-coersion.md b/v18/v18_16_1/date-string-coersion.md deleted file mode 100644 index de7a41f8..00000000 --- a/v18/v18_16_1/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|996,445|97| -|Using brackets {}|951,991|97| -|Using '' + |997,822|95| -|Using date.toString()|1,096,211|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:24:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/deleting-properties.md b/v18/v18_16_1/deleting-properties.md deleted file mode 100644 index 93a3c1a3..00000000 --- a/v18/v18_16_1/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,396,855|96| -|Using delete property (proto: null)|23,454,152|96| -|Using delete property (cached proto: null)|3,424,700|95| -|Using undefined assignment|846,843,872|100| -|Using undefined assignment (proto: null)|25,880,444|95| -|Using undefined property (cached proto: null)|844,730,175|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:35:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/error.md b/v18/v18_16_1/error.md deleted file mode 100644 index 8772f90f..00000000 --- a/v18/v18_16_1/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|234,076|53| -|NodeError|180,564|94| -|NodeError Range|181,045|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:45:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/function-return.md b/v18/v18_16_1/function-return.md deleted file mode 100644 index ab1c1718..00000000 --- a/v18/v18_16_1/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,835,093|98| -|Function returning explicitly undefined|1,812,670|94| -|Function returning implicitly undefined|1,855,742|92| -|Function returning string|1,812,482|98| -|Function returning integer|1,847,252|96| -|Function returning float|1,832,637|96| -|Function returning functions|1,771,339|96| -|Function returning arrow functions|1,817,057|98| -|Function returning empty object|1,853,535|98| -|Function returning empty array|1,828,461|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:58:20 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/includes-vs-raw-comparison.md b/v18/v18_16_1/includes-vs-raw-comparison.md deleted file mode 100644 index 2b145160..00000000 --- a/v18/v18_16_1/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|847,316,413|99| -|using Array.includes (first item)|847,023,757|101| -|Using raw comparison|849,064,488|98| -|Using raw comparison (first item)|847,968,445|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:13:52 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/keys-vs-getownpropertynames.md b/v18/v18_16_1/keys-vs-getownpropertynames.md deleted file mode 100644 index 50a16ee0..00000000 --- a/v18/v18_16_1/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|93,829,200|94| -|Using Object.getOwnPropertyNames()|94,855,054|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:26:15 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/last-array-item.md b/v18/v18_16_1/last-array-item.md deleted file mode 100644 index 4091d100..00000000 --- a/v18/v18_16_1/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|27,286,422|96| -|Length = 10_000 - Array.at|26,157,156|97| -|Length = 1_000_000 - Array.at|25,830,921|96| -|Length = 100 - Array[length - 1]|843,480,000|100| -|Length = 10_000 - Array[length - 1]|845,181,946|88| -|Length = 1_000_000 - Array[length - 1]|843,897,388|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:34:49 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/object-creation.md b/v18/v18_16_1/object-creation.md deleted file mode 100644 index 4bf21dac..00000000 --- a/v18/v18_16_1/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,961,643|94| -|Object.create({})|1,482,988|89| -|Cached Empty.prototype|845,868,116|89| -|Empty.prototype|1,637,608|88| -|Empty class|955,112|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:47:27 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/optional-chain-vs-and-operator.md b/v18/v18_16_1/optional-chain-vs-and-operator.md deleted file mode 100644 index 9ba04cbd..00000000 --- a/v18/v18_16_1/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|848,311,564|100| -|Using optional chain (obj.field?.field2) (undefined)|848,110,906|101| -|Using and operator (obj.field && obj.field.field2) (Valid)|847,394,441|96| -|Using and operator (obj.field && obj.field.field2) (undefined)|848,081,238|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:57:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/parse-int.md b/v18/v18_16_1/parse-int.md deleted file mode 100644 index 11b0d36c..00000000 --- a/v18/v18_16_1/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|283,542,086|95| -|Using parseInt(x, 10) - big number (10 len)|21,150,095|94| -|Using + - small number (2 len)|848,792,756|99| -|Using + - big number (10 len)|846,697,353|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:09:18 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/possible-undefined-function.md b/v18/v18_16_1/possible-undefined-function.md deleted file mode 100644 index ff7fd92a..00000000 --- a/v18/v18_16_1/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|751,840|81| -|Using ? operator to avoid rejection|798,581|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:16:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/private-property.md b/v18/v18_16_1/private-property.md deleted file mode 100644 index d625c43e..00000000 --- a/v18/v18_16_1/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|350,822,182|91| -|Raw usage underscore usage|361,782,427|94| -|Manipulating private properties using #|266,862,426|89| -|Manipulating private properties using underscore(_)|228,491,176|80| -|Manipulating private properties using Symbol|222,200,285|81| -|Manipulating private properties using PrivateSymbol|51,400,142|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:27:38 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/property-access-transition.md b/v18/v18_16_1/property-access-transition.md deleted file mode 100644 index 0f59afef..00000000 --- a/v18/v18_16_1/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|3,694,428|96| -|Adding property in the object creation - small object|3,705,683|97| -|Adding property after the function creation - small class|192,945|90| -|Adding property in the function creation - small class|194,511|89| -|Adding property after the class creation - small class|164,137|86| -|Adding property in the class creation - small class|163,089|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:40:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/property-getter-access.md b/v18/v18_16_1/property-getter-access.md deleted file mode 100644 index 5aece681..00000000 --- a/v18/v18_16_1/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|848,165,527|98| -|Getter|99,585,730|97| -|Method|848,499,693|98| -|DefineProperty (getter)|848,485,096|99| -|DefineProperty (getter & enumerable=false)|99,222,363|98| -|DefineProperty (getter & configurable=false)|848,466,032|99| -|DefineProperty (getter & enumerable=false & configurable=false)|98,793,801|93| -|DefineProperty (writable)|728,790,736|86| -|DefineProperty (writable & enumerable=false)|153,744,904|76| -|DefineProperty (writable & enumerable=false & configurable=false)|848,842,519|100| -|DefineProperties (getter)|99,705,912|98| -|DefineProperties (getter & enumerable=false)|99,140,978|99| -|DefineProperties (getter & enumerable=false & configurable=false)|87,937,251|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:56:21 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/property-setter-access.md b/v18/v18_16_1/property-setter-access.md deleted file mode 100644 index 22001ede..00000000 --- a/v18/v18_16_1/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|814,583,054|99| -|Setter|11,848,296|93| -|Method|838,460,859|96| -|DefineProperty (setter)|830,298,663|100| -|DefineProperty (setter & enumerable=false)|11,280,110|95| -|DefineProperty (setter & configurable=false)|11,876,371|94| -|DefineProperty (setter & enumerable=false & configurable=false)|11,598,028|95| -|DefineProperty (writable)|847,414,873|98| -|DefineProperty (writable & enumerable=false)|847,922,751|99| -|DefineProperty (writable & enumerable=false & configurable=false)|848,021,102|98| -|DefineProperties (setter)|723,015,934|91| -|DefineProperties (setter & enumerable=false)|10,989,790|95| -|DefineProperties (setter & enumerable=false & configurable=false)|10,826,168|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:15:58 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/replace-vs-replaceall-comparison.md b/v18/v18_16_1/replace-vs-replaceall-comparison.md deleted file mode 100644 index f51888ca..00000000 --- a/v18/v18_16_1/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,484,418|98| -|Using replaceAll()|3,076,000|101| -|Using replaceAll(//g)|3,133,452|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:35:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/shallow-copy.md b/v18/v18_16_1/shallow-copy.md deleted file mode 100644 index d9110660..00000000 --- a/v18/v18_16_1/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|27,323,255|95| -|{ ...object, __proto__: null }|27,911,591|94| -|{ ...object, newProp: true }|704,355|88| -|structuredClone|265,576|91| -|JSON.parse + JSON.stringify|207,379|99| -|loop + object.keys starting with {}|1,275,625|99| -|loop + object.keys starting with { __proto__: null }|780,826|96| -|loop + object.keys starting with { randomProp: true }|546,844|95| -|object.keys + reduce(FN, {})|531,992|97| -|object.keys + reduce(FN, { __proto__: null })|796,328|97| -|object.keys + reduce(FN, { newProp: true })|485,116|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:47:24 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/sort-map.md b/v18/v18_16_1/sort-map.md deleted file mode 100644 index d1dd95fa..00000000 --- a/v18/v18_16_1/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|271,596|98| -|Sort using first char|1,360,102|93| -|Sort using localeCompare|1,192,051|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:01:42 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/spread-vs-object-assign.md b/v18/v18_16_1/spread-vs-object-assign.md deleted file mode 100644 index a867917d..00000000 --- a/v18/v18_16_1/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,988|93| -|{...smallObject} - Total keys: 2|108,440,068|95| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,182|97| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,133|98| -|{ ...bigObject, ...anotherBigObject }|1,106|93| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|14,159,863|95| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|33,709,544|94| -|{ ...smallObject, ...anotherSmallObject }|23,237,689|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:13:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/stream-readable.md b/v18/v18_16_1/stream-readable.md deleted file mode 100644 index b4f215b4..00000000 --- a/v18/v18_16_1/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,488|87| -|streams.web.Readable reading 1e3 * "some data"|527|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:25:41 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/stream-writable.md b/v18/v18_16_1/stream-writable.md deleted file mode 100644 index 5fe62f1e..00000000 --- a/v18/v18_16_1/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|5,244|94| -|streams.web.WritableStream writing 1e3 * "some data"|1,089|58| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:33:46 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/string-concat.md b/v18/v18_16_1/string-concat.md deleted file mode 100644 index 9c4f03fc..00000000 --- a/v18/v18_16_1/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|847,449,354|99| -|Using backtick (`)|848,078,259|98| -|Using array.join|12,696,796|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:43:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/string-searching.md b/v18/v18_16_1/string-searching.md deleted file mode 100644 index d0a711a3..00000000 --- a/v18/v18_16_1/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|848,221,267|99| -|Using indexof|849,302,574|98| -|Using RegExp.test|15,535,197|99| -|Using RegExp.text with cached regex pattern|16,194,833|99| -|Using new RegExp.test|4,271,810|96| -|Using new RegExp.test with cached regex pattern|4,961,644|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:54:18 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/super-vs-this.md b/v18/v18_16_1/super-vs-this.md deleted file mode 100644 index a39fa26c..00000000 --- a/v18/v18_16_1/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|159,466,322|93| -|Using this|160,262,228|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:07:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_16_1/unix-time.md b/v18/v18_16_1/unix-time.md deleted file mode 100644 index 9733a499..00000000 --- a/v18/v18_16_1/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|10,812,427|99| -|Date.now()|22,476,837|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:14:57 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/add-property.md b/v18/v18_17_1/add-property.md deleted file mode 100644 index 12cb7a4a..00000000 --- a/v18/v18_17_1/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|847,379,920|99| -|Using dot notation|847,423,699|99| -|Using define property (writable)|4,392,885|100| -|Using define property initialized (writable)|5,993,589|98| -|Using define property (getter)|2,259,359|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:53:26 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/array-append.md b/v18/v18_17_1/array-append.md deleted file mode 100644 index 34de68e4..00000000 --- a/v18/v18_17_1/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.002ms -array.push|100|0.021ms -new Array(length)|100|0.007ms -array.push|1,000|0.042ms -new Array(length)|1,000|0.025ms -array.push|10,000|0.258ms -new Array(length)|10,000|0.154ms -array.push|1,000,000|32.105ms -new Array(length)|1,000,000|5.829ms -array.push|100,000,000|1,912.485ms -new Array(length)|100,000,000|3,875.563ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.017ms -array.push|100|0.013ms -new Array(length)|100|0.011ms -array.push|1,000|0.045ms -new Array(length)|1,000|0.026ms -array.push|10,000|0.488ms -new Array(length)|10,000|3.226ms -array.push|1,000,000|277.558ms -new Array(length)|1,000,000|4.498ms -array.push|100,000,000|2,215.924ms -new Array(length)|100,000,000|4,197.715ms diff --git a/v18/v18_17_1/array-creation.md b/v18/v18_17_1/array-creation.md deleted file mode 100644 index 92712167..00000000 --- a/v18/v18_17_1/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|306|86| -|Array.from|22|40| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:09:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/async-function-vs-function.md b/v18/v18_17_1/async-function-vs-function.md deleted file mode 100644 index 59a93f42..00000000 --- a/v18/v18_17_1/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|848,302,785|99| -|[async] async function|17,182,390|88| -|[async] function|303,902|32| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:15:06 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/blob.md b/v18/v18_17_1/blob.md deleted file mode 100644 index c9e1eba9..00000000 --- a/v18/v18_17_1/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,636|83| -|new Blob (1024)|599|79| -|text (128)|49,702|88| -|text (1024)|32,494|82| -|arrayBuffer (128)|50,131|87| -|arrayBuffer (1024)|32,528|77| -|slice (0, 64)|93,307|85| -|slice (0, 512)|55,999|81| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:24:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/compare-using-instanceof.md b/v18/v18_17_1/compare-using-instanceof.md deleted file mode 100644 index 7ec5676a..00000000 --- a/v18/v18_17_1/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|241,386|53| -|[True conditional] Using constructor name|180,413|95| -|[True conditional] Check if property is valid then instanceof |184,270|96| -|[False conditional] Using instanceof only|847,857,251|98| -|[False conditional] Using constructor name|848,004,989|98| -|[False conditional] Check if property is valid then instanceof |845,864,780|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:39:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/crypto-verify.md b/v18/v18_17_1/crypto-verify.md deleted file mode 100644 index 5ea77bc4..00000000 --- a/v18/v18_17_1/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,704|95| -|crypto.verify('RSA-SHA256')|6,752|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:51:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/date-format-iso.md b/v18/v18_17_1/date-format-iso.md deleted file mode 100644 index f1f8349e..00000000 --- a/v18/v18_17_1/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|2,590,578|95| -|fromUnixToISOString(new Date())|2,082,956|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:01:26 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/date-format.md b/v18/v18_17_1/date-format.md deleted file mode 100644 index 806dc04c..00000000 --- a/v18/v18_17_1/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,030|87| -|Intl.DateTimeFormat().format(new Date())|16,958|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|17,540|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|17,813|78| -|Reusing Intl.DateTimeFormat()|689,258|99| -|Date.toLocaleDateString()|708,900|99| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,320|82| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:13:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/date-string-coersion.md b/v18/v18_17_1/date-string-coersion.md deleted file mode 100644 index a1ca02fe..00000000 --- a/v18/v18_17_1/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,021,372|98| -|Using brackets {}|1,053,909|96| -|Using '' + |1,020,180|94| -|Using date.toString()|1,133,160|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:24:11 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/deleting-properties.md b/v18/v18_17_1/deleting-properties.md deleted file mode 100644 index 9bc774c4..00000000 --- a/v18/v18_17_1/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,385,876|97| -|Using delete property (proto: null)|22,877,829|97| -|Using delete property (cached proto: null)|3,352,440|92| -|Using undefined assignment|845,357,927|99| -|Using undefined assignment (proto: null)|25,757,557|95| -|Using undefined property (cached proto: null)|844,588,037|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:34:44 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/error.md b/v18/v18_17_1/error.md deleted file mode 100644 index 06650abb..00000000 --- a/v18/v18_17_1/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|230,601|53| -|NodeError|178,315|97| -|NodeError Range|175,546|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:45:35 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/function-return.md b/v18/v18_17_1/function-return.md deleted file mode 100644 index f6f4b738..00000000 --- a/v18/v18_17_1/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,732,413|98| -|Function returning explicitly undefined|1,720,723|97| -|Function returning implicitly undefined|1,774,686|98| -|Function returning string|1,588,507|100| -|Function returning integer|1,739,796|93| -|Function returning float|1,747,188|97| -|Function returning functions|1,703,601|93| -|Function returning arrow functions|1,694,204|92| -|Function returning empty object|1,742,591|96| -|Function returning empty array|1,732,185|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:59:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/includes-vs-raw-comparison.md b/v18/v18_17_1/includes-vs-raw-comparison.md deleted file mode 100644 index 79d20d78..00000000 --- a/v18/v18_17_1/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|847,177,433|99| -|using Array.includes (first item)|848,036,206|97| -|Using raw comparison|848,735,321|98| -|Using raw comparison (first item)|847,391,852|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:14:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/keys-vs-getownpropertynames.md b/v18/v18_17_1/keys-vs-getownpropertynames.md deleted file mode 100644 index e8ab8d79..00000000 --- a/v18/v18_17_1/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|94,284,619|96| -|Using Object.getOwnPropertyNames()|94,801,768|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:25:49 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/last-array-item.md b/v18/v18_17_1/last-array-item.md deleted file mode 100644 index 30c22a86..00000000 --- a/v18/v18_17_1/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|27,135,337|99| -|Length = 10_000 - Array.at|27,200,316|94| -|Length = 1_000_000 - Array.at|26,770,248|96| -|Length = 100 - Array[length - 1]|846,650,909|101| -|Length = 10_000 - Array[length - 1]|845,155,568|98| -|Length = 1_000_000 - Array[length - 1]|842,931,878|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:36:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/object-creation.md b/v18/v18_17_1/object-creation.md deleted file mode 100644 index a3abffe1..00000000 --- a/v18/v18_17_1/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,071,682|96| -|Object.create({})|1,511,002|89| -|Cached Empty.prototype|848,636,358|98| -|Empty.prototype|1,635,393|87| -|Empty class|946,367|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:48:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/optional-chain-vs-and-operator.md b/v18/v18_17_1/optional-chain-vs-and-operator.md deleted file mode 100644 index f5fe9361..00000000 --- a/v18/v18_17_1/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|845,112,251|99| -|Using optional chain (obj.field?.field2) (undefined)|846,587,302|97| -|Using and operator (obj.field && obj.field.field2) (Valid)|847,780,966|99| -|Using and operator (obj.field && obj.field.field2) (undefined)|843,642,457|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:59:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/parse-int.md b/v18/v18_17_1/parse-int.md deleted file mode 100644 index 3c9858bf..00000000 --- a/v18/v18_17_1/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|283,582,242|94| -|Using parseInt(x, 10) - big number (10 len)|21,076,756|99| -|Using + - small number (2 len)|848,666,522|95| -|Using + - big number (10 len)|848,489,694|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:08:41 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/possible-undefined-function.md b/v18/v18_17_1/possible-undefined-function.md deleted file mode 100644 index c3c1d7d6..00000000 --- a/v18/v18_17_1/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|755,380|80| -|Using ? operator to avoid rejection|798,242|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:17:42 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/private-property.md b/v18/v18_17_1/private-property.md deleted file mode 100644 index 305896a2..00000000 --- a/v18/v18_17_1/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|347,492,153|91| -|Raw usage underscore usage|361,769,460|92| -|Manipulating private properties using #|249,860,853|91| -|Manipulating private properties using underscore(_)|232,271,340|85| -|Manipulating private properties using Symbol|236,363,634|85| -|Manipulating private properties using PrivateSymbol|50,830,401|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:31:01 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/property-access-transition.md b/v18/v18_17_1/property-access-transition.md deleted file mode 100644 index 580a47a4..00000000 --- a/v18/v18_17_1/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|3,835,770|99| -|Adding property in the object creation - small object|3,843,707|100| -|Adding property after the function creation - small class|195,100|86| -|Adding property in the function creation - small class|195,281|91| -|Adding property after the class creation - small class|162,925|85| -|Adding property in the class creation - small class|163,918|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:38:08 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/property-getter-access.md b/v18/v18_17_1/property-getter-access.md deleted file mode 100644 index fabe2216..00000000 --- a/v18/v18_17_1/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|846,839,366|100| -|Getter|99,388,732|96| -|Method|848,493,837|96| -|DefineProperty (getter)|848,079,757|98| -|DefineProperty (getter & enumerable=false)|99,788,143|98| -|DefineProperty (getter & configurable=false)|848,284,926|99| -|DefineProperty (getter & enumerable=false & configurable=false)|99,297,024|96| -|DefineProperty (writable)|848,008,632|94| -|DefineProperty (writable & enumerable=false)|849,269,499|97| -|DefineProperty (writable & enumerable=false & configurable=false)|822,133,673|98| -|DefineProperties (getter)|64,328,409|87| -|DefineProperties (getter & enumerable=false)|99,261,396|96| -|DefineProperties (getter & enumerable=false & configurable=false)|99,407,008|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:57:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/property-setter-access.md b/v18/v18_17_1/property-setter-access.md deleted file mode 100644 index 44ce836f..00000000 --- a/v18/v18_17_1/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|837,463,070|99| -|Setter|12,298,574|98| -|Method|840,209,593|95| -|DefineProperty (setter)|836,526,141|99| -|DefineProperty (setter & enumerable=false)|11,964,395|98| -|DefineProperty (setter & configurable=false)|11,910,251|98| -|DefineProperty (setter & enumerable=false & configurable=false)|12,158,764|94| -|DefineProperty (writable)|847,212,462|99| -|DefineProperty (writable & enumerable=false)|847,888,080|100| -|DefineProperty (writable & enumerable=false & configurable=false)|759,110,901|94| -|DefineProperties (setter)|847,263,305|99| -|DefineProperties (setter & enumerable=false)|12,106,630|99| -|DefineProperties (setter & enumerable=false & configurable=false)|11,230,873|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:19:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/replace-vs-replaceall-comparison.md b/v18/v18_17_1/replace-vs-replaceall-comparison.md deleted file mode 100644 index 804530e0..00000000 --- a/v18/v18_17_1/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,483,242|93| -|Using replaceAll()|3,141,227|100| -|Using replaceAll(//g)|3,109,224|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:36:24 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/shallow-copy.md b/v18/v18_17_1/shallow-copy.md deleted file mode 100644 index 963f4d7e..00000000 --- a/v18/v18_17_1/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|27,175,908|90| -|{ ...object, __proto__: null }|27,628,691|100| -|{ ...object, newProp: true }|650,303|85| -|structuredClone|258,694|99| -|JSON.parse + JSON.stringify|207,571|96| -|loop + object.keys starting with {}|522,722|97| -|loop + object.keys starting with { __proto__: null }|794,824|97| -|loop + object.keys starting with { randomProp: true }|553,260|99| -|object.keys + reduce(FN, {})|527,971|94| -|object.keys + reduce(FN, { __proto__: null })|778,498|96| -|object.keys + reduce(FN, { newProp: true })|532,471|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:49:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/sort-map.md b/v18/v18_17_1/sort-map.md deleted file mode 100644 index 01802b9c..00000000 --- a/v18/v18_17_1/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|269,901|99| -|Sort using first char|1,349,852|100| -|Sort using localeCompare|1,202,126|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:03:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/spread-vs-object-assign.md b/v18/v18_17_1/spread-vs-object-assign.md deleted file mode 100644 index 5c4ceb5c..00000000 --- a/v18/v18_17_1/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,932|90| -|{...smallObject} - Total keys: 2|107,739,221|92| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,163|97| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,154|99| -|{ ...bigObject, ...anotherBigObject }|1,182|94| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|14,271,488|96| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|35,951,201|99| -|{ ...smallObject, ...anotherSmallObject }|23,665,508|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:15:26 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/stream-readable.md b/v18/v18_17_1/stream-readable.md deleted file mode 100644 index bc8b5b6e..00000000 --- a/v18/v18_17_1/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,554|88| -|streams.web.Readable reading 1e3 * "some data"|538|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:26:07 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/stream-writable.md b/v18/v18_17_1/stream-writable.md deleted file mode 100644 index e370ff7b..00000000 --- a/v18/v18_17_1/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|5,234|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,124|41| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:35:30 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/string-concat.md b/v18/v18_17_1/string-concat.md deleted file mode 100644 index 149cc54c..00000000 --- a/v18/v18_17_1/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|848,029,673|100| -|Using backtick (`)|848,483,942|100| -|Using array.join|12,358,292|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:42:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/string-searching.md b/v18/v18_17_1/string-searching.md deleted file mode 100644 index 9d28b47c..00000000 --- a/v18/v18_17_1/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|847,648,867|99| -|Using indexof|848,442,443|97| -|Using RegExp.test|15,995,853|98| -|Using RegExp.text with cached regex pattern|16,694,431|101| -|Using new RegExp.test|4,316,186|96| -|Using new RegExp.test with cached regex pattern|5,062,554|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:55:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/super-vs-this.md b/v18/v18_17_1/super-vs-this.md deleted file mode 100644 index 77f60e14..00000000 --- a/v18/v18_17_1/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|158,584,383|96| -|Using this|159,141,977|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:08:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_17_1/unix-time.md b/v18/v18_17_1/unix-time.md deleted file mode 100644 index 67797d17..00000000 --- a/v18/v18_17_1/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|11,144,728|96| -|Date.now()|22,412,990|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:15:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/add-property.md b/v18/v18_18_2/add-property.md deleted file mode 100644 index b59a45aa..00000000 --- a/v18/v18_18_2/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|681,319,762|84| -|Using dot notation|567,425,709|85| -|Using define property (writable)|2,197,009|84| -|Using define property initialized (writable)|2,807,326|84| -|Using define property (getter)|1,145,724|80| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:36:07 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/array-append.md b/v18/v18_18_2/array-append.md deleted file mode 100644 index 65ab34d3..00000000 --- a/v18/v18_18_2/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.009ms -new Array(length)|10|0.003ms -array.push|100|0.052ms -new Array(length)|100|0.015ms -array.push|1,000|0.076ms -new Array(length)|1,000|0.037ms -array.push|10,000|0.613ms -new Array(length)|10,000|0.293ms -array.push|1,000,000|58.076ms -new Array(length)|1,000,000|9.245ms -array.push|100,000,000|2,597.446ms -new Array(length)|100,000,000|6,286.69ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.01ms -new Array(length)|10|0.024ms -array.push|100|0.021ms -new Array(length)|100|0.029ms -array.push|1,000|0.091ms -new Array(length)|1,000|0.037ms -array.push|10,000|0.817ms -new Array(length)|10,000|5.769ms -array.push|1,000,000|444.501ms -new Array(length)|1,000,000|5.627ms -array.push|100,000,000|3,237.38ms -new Array(length)|100,000,000|7,044.537ms diff --git a/v18/v18_18_2/array-creation.md b/v18/v18_18_2/array-creation.md deleted file mode 100644 index 8cb0f6df..00000000 --- a/v18/v18_18_2/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|261|75| -|Array.from|13|36| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:38:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/blob.md b/v18/v18_18_2/blob.md deleted file mode 100644 index b8649d78..00000000 --- a/v18/v18_18_2/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|3,281|84| -|new Blob (1024)|439|71| -|text (128)|32,270|69| -|text (1024)|21,333|82| -|arrayBuffer (128)|32,662|86| -|arrayBuffer (1024)|21,912|87| -|slice (0, 64)|58,606|75| -|slice (0, 512)|33,342|76| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:40:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/compare-using-instanceof.md b/v18/v18_18_2/compare-using-instanceof.md deleted file mode 100644 index e83a49aa..00000000 --- a/v18/v18_18_2/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|134,416|51| -|[True conditional] Using constructor name|101,365|82| -|[True conditional] Check if property is valid then instanceof |103,924|86| -|[False conditional] Using instanceof only|654,461,694|87| -|[False conditional] Using constructor name|662,165,747|89| -|[False conditional] Check if property is valid then instanceof |630,796,491|85| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:43:12 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/crypto-verify.md b/v18/v18_18_2/crypto-verify.md deleted file mode 100644 index 7772906a..00000000 --- a/v18/v18_18_2/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|3,599|86| -|crypto.verify('RSA-SHA256')|3,638|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:45:15 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/date-format-iso.md b/v18/v18_18_2/date-format-iso.md deleted file mode 100644 index 1fc541bb..00000000 --- a/v18/v18_18_2/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,303,717|96| -|fromUnixToISOString(new Date())|1,100,949|89| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:47:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/date-format.md b/v18/v18_18_2/date-format.md deleted file mode 100644 index 0b22792b..00000000 --- a/v18/v18_18_2/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|7,984|82| -|Intl.DateTimeFormat().format(new Date())|7,926|81| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|8,517|68| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|9,092|86| -|Reusing Intl.DateTimeFormat()|453,692|73| -|Date.toLocaleDateString()|532,514|87| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|9,221|81| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:49:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/date-string-coersion.md b/v18/v18_18_2/date-string-coersion.md deleted file mode 100644 index fe7fbea0..00000000 --- a/v18/v18_18_2/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|578,029|86| -|Using brackets {}|579,292|88| -|Using '' + |580,913|87| -|Using date.toString()|628,715|85| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:51:56 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/deleting-properties.md b/v18/v18_18_2/deleting-properties.md deleted file mode 100644 index b5159572..00000000 --- a/v18/v18_18_2/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|1,982,004|84| -|Using delete property (proto: null)|12,046,826|85| -|Using delete property (cached proto: null)|1,961,686|88| -|Using undefined assignment|741,970,271|89| -|Using undefined assignment (proto: null)|13,815,015|86| -|Using undefined property (cached proto: null)|635,514,254|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:54:13 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/error.md b/v18/v18_18_2/error.md deleted file mode 100644 index 307fa254..00000000 --- a/v18/v18_18_2/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|160,360|53| -|NodeError|124,579|94| -|NodeError Range|125,818|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:55:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/function-return.md b/v18/v18_18_2/function-return.md deleted file mode 100644 index 83242998..00000000 --- a/v18/v18_18_2/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,098,511|96| -|Function returning explicitly undefined|1,086,017|98| -|Function returning implicitly undefined|1,098,243|93| -|Function returning string|1,103,987|97| -|Function returning integer|1,099,816|96| -|Function returning float|1,108,111|94| -|Function returning functions|1,085,130|98| -|Function returning arrow functions|1,093,252|95| -|Function returning empty object|1,112,520|96| -|Function returning empty array|1,064,301|97| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 03:58:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/includes-vs-raw-comparison.md b/v18/v18_18_2/includes-vs-raw-comparison.md deleted file mode 100644 index 5549462d..00000000 --- a/v18/v18_18_2/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|696,258,526|93| -|using Array.includes (first item)|708,871,154|97| -|Using raw comparison|711,336,267|97| -|Using raw comparison (first item)|709,187,927|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:01:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/keys-vs-getownpropertynames.md b/v18/v18_18_2/keys-vs-getownpropertynames.md deleted file mode 100644 index e509dad1..00000000 --- a/v18/v18_18_2/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|46,208,374|87| -|Using Object.getOwnPropertyNames()|43,840,169|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:03:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/last-array-item.md b/v18/v18_18_2/last-array-item.md deleted file mode 100644 index 6a038cf0..00000000 --- a/v18/v18_18_2/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|13,210,699|90| -|Length = 10_000 - Array.at|13,505,327|95| -|Length = 1_000_000 - Array.at|13,506,214|96| -|Length = 100 - Array[length - 1]|590,515,734|95| -|Length = 10_000 - Array[length - 1]|565,781,417|93| -|Length = 1_000_000 - Array[length - 1]|586,756,464|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:07:31 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/object-creation.md b/v18/v18_18_2/object-creation.md deleted file mode 100644 index f20e6519..00000000 --- a/v18/v18_18_2/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|57,191,941|95| -|Object.create({})|1,007,562|79| -|Cached Empty.prototype|592,354,290|98| -|Empty.prototype|1,108,332|86| -|Empty class|702,014|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:09:08 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/optional-chain-vs-and-operator.md b/v18/v18_18_2/optional-chain-vs-and-operator.md deleted file mode 100644 index a1f23bb3..00000000 --- a/v18/v18_18_2/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|636,451,362|89| -|Using optional chain (obj.field?.field2) (undefined)|623,345,008|90| -|Using and operator (obj.field && obj.field.field2) (Valid)|627,218,216|90| -|Using and operator (obj.field && obj.field.field2) (undefined)|633,757,694|90| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:13:45 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/parse-int.md b/v18/v18_18_2/parse-int.md deleted file mode 100644 index a4904fe7..00000000 --- a/v18/v18_18_2/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|172,227,281|88| -|Using parseInt(x, 10) - big number (10 len)|12,992,635|82| -|Using + - small number (2 len)|828,439,890|86| -|Using + - big number (10 len)|843,805,331|89| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:15:46 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/possible-undefined-function.md b/v18/v18_18_2/possible-undefined-function.md deleted file mode 100644 index 30026162..00000000 --- a/v18/v18_18_2/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|577,209|75| -|Using ? operator to avoid rejection|624,100|82| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:19:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/private-property.md b/v18/v18_18_2/private-property.md deleted file mode 100644 index 63249d2a..00000000 --- a/v18/v18_18_2/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|171,921,232|83| -|Raw usage underscore usage|161,803,194|84| -|Manipulating private properties using #|112,337,048|86| -|Manipulating private properties using underscore(_)|112,649,400|95| -|Manipulating private properties using Symbol|113,481,371|90| -|Manipulating private properties using PrivateSymbol|21,694,070|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:22:52 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/property-access-transition.md b/v18/v18_18_2/property-access-transition.md deleted file mode 100644 index 9f980cb1..00000000 --- a/v18/v18_18_2/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|1,697,886|91| -|Adding property in the object creation - small object|1,721,346|89| -|Adding property after the function creation - small class|129,219|82| -|Adding property in the function creation - small class|132,641|79| -|Adding property after the class creation - small class|108,986|80| -|Adding property in the class creation - small class|111,343|78| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:27:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/property-getter-access.md b/v18/v18_18_2/property-getter-access.md deleted file mode 100644 index 224dc8f6..00000000 --- a/v18/v18_18_2/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|710,436,481|95| -|Getter|52,119,192|96| -|Method|710,506,171|96| -|DefineProperty (getter)|709,717,123|97| -|DefineProperty (getter & enumerable=false)|52,756,222|94| -|DefineProperty (getter & configurable=false)|710,899,195|97| -|DefineProperty (getter & enumerable=false & configurable=false)|52,702,988|95| -|DefineProperty (writable)|709,887,304|89| -|DefineProperty (writable & enumerable=false)|580,419,694|80| -|DefineProperty (writable & enumerable=false & configurable=false)|84,501,654|83| -|DefineProperties (getter)|33,212,732|92| -|DefineProperties (getter & enumerable=false)|52,943,034|96| -|DefineProperties (getter & enumerable=false & configurable=false)|52,057,213|95| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:32:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/property-setter-access.md b/v18/v18_18_2/property-setter-access.md deleted file mode 100644 index 9a4a42b5..00000000 --- a/v18/v18_18_2/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|617,535,544|87| -|Setter|6,430,351|85| -|Method|628,538,618|91| -|DefineProperty (setter)|619,955,158|90| -|DefineProperty (setter & enumerable=false)|6,390,792|88| -|DefineProperty (setter & configurable=false)|6,520,821|87| -|DefineProperty (setter & enumerable=false & configurable=false)|6,572,538|90| -|DefineProperty (writable)|761,112,483|92| -|DefineProperty (writable & enumerable=false)|758,465,377|92| -|DefineProperty (writable & enumerable=false & configurable=false)|573,617,892|75| -|DefineProperties (setter)|66,709,904|85| -|DefineProperties (setter & enumerable=false)|6,104,439|90| -|DefineProperties (setter & enumerable=false & configurable=false)|6,618,681|91| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:36:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/replace-vs-replaceall-comparison.md b/v18/v18_18_2/replace-vs-replaceall-comparison.md deleted file mode 100644 index bc220f66..00000000 --- a/v18/v18_18_2/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|2,351,160|93| -|Using replaceAll()|2,141,096|94| -|Using replaceAll(//g)|2,108,005|98| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:39:20 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/shallow-copy.md b/v18/v18_18_2/shallow-copy.md deleted file mode 100644 index 319e2914..00000000 --- a/v18/v18_18_2/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|19,377,774|92| -|{ ...object, __proto__: null }|19,635,752|94| -|{ ...object, newProp: true }|454,592|87| -|structuredClone|182,467|96| -|JSON.parse + JSON.stringify|145,650|98| -|loop + object.keys starting with {}|887,766|92| -|loop + object.keys starting with { __proto__: null }|537,445|95| -|loop + object.keys starting with { randomProp: true }|382,169|94| -|object.keys + reduce(FN, {})|366,368|98| -|object.keys + reduce(FN, { __proto__: null })|539,674|96| -|object.keys + reduce(FN, { newProp: true })|382,702|94| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:44:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/sort-map.md b/v18/v18_18_2/sort-map.md deleted file mode 100644 index 83b9efe8..00000000 --- a/v18/v18_18_2/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|155,655|87| -|Sort using first char|747,398|84| -|Sort using localeCompare|659,601|86| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:47:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/spread-vs-object-assign.md b/v18/v18_18_2/spread-vs-object-assign.md deleted file mode 100644 index 94f40ae0..00000000 --- a/v18/v18_18_2/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,006|86| -|{...smallObject} - Total keys: 2|53,339,144|80| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,190|83| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|3,311|86| -|{ ...bigObject, ...anotherBigObject }|702|83| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|8,145,789|86| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|19,996,711|86| -|{ ...smallObject, ...anotherSmallObject }|12,510,928|87| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:51:52 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/stream-readable.md b/v18/v18_18_2/stream-readable.md deleted file mode 100644 index 9ba76168..00000000 --- a/v18/v18_18_2/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|1,236|78| -|streams.web.Readable reading 1e3 * "some data"|397|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 04:54:33 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/stream-writable.md b/v18/v18_18_2/stream-writable.md deleted file mode 100644 index 3f87b04c..00000000 --- a/v18/v18_18_2/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|3,408|93| -|streams.web.WritableStream writing 1e3 * "some data"|864|49| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:00:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/string-concat.md b/v18/v18_18_2/string-concat.md deleted file mode 100644 index de2c3e23..00000000 --- a/v18/v18_18_2/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|570,791,648|93| -|Using backtick (`)|587,488,671|91| -|Using array.join|5,075,281|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:05:15 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/string-searching.md b/v18/v18_18_2/string-searching.md deleted file mode 100644 index 719cce06..00000000 --- a/v18/v18_18_2/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|699,077,876|96| -|Using indexof|712,536,494|97| -|Using RegExp.test|12,008,397|99| -|Using RegExp.text with cached regex pattern|12,636,814|98| -|Using new RegExp.test|3,131,744|96| -|Using new RegExp.test with cached regex pattern|3,672,390|96| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:07:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/super-vs-this.md b/v18/v18_18_2/super-vs-this.md deleted file mode 100644 index a53d077d..00000000 --- a/v18/v18_18_2/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|105,911,326|85| -|Using this|109,486,261|92| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:13:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v18/v18_18_2/unix-time.md b/v18/v18_18_2/unix-time.md deleted file mode 100644 index 386bf2ad..00000000 --- a/v18/v18_18_2/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|5,692,493|89| -|Date.now()|12,170,568|83| - - -
-Environment - -* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem -* __Run:__ Wed Oct 25 2023 05:18:00 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/RESULTS-v20_6_0.md b/v20/RESULTS-v20_6_0.md deleted file mode 100644 index 4b7a8c1b..00000000 --- a/v20/RESULTS-v20_6_0.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|853,516,082|95| -|Using dot notation|853,250,434|95| -|Using define property (writable)|4,817,736|99| -|Using define property initialized (writable)|6,416,729|97| -|Using define property (getter)|2,483,205|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:54:44 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.004ms -array.push|100|0.023ms -new Array(length)|100|0.01ms -array.push|1,000|0.043ms -new Array(length)|1,000|0.028ms -array.push|10,000|0.305ms -new Array(length)|10,000|0.307ms -array.push|1,000,000|30.753ms -new Array(length)|1,000,000|6.583ms -array.push|100,000,000|1,751.384ms -new Array(length)|100,000,000|4,240.035ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.017ms -array.push|100|0.013ms -new Array(length)|100|0.009ms -array.push|1,000|0.031ms -new Array(length)|1,000|0.012ms -array.push|10,000|0.235ms -new Array(length)|10,000|0.159ms -array.push|1,000,000|22.929ms -new Array(length)|1,000,000|4.41ms -array.push|100,000,000|2,449.49ms -new Array(length)|100,000,000|3,952.21ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|310|88| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:10:28 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,062,157|99| -|[async] async function|18,629,299|88| -|[async] function|189,704|16| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:17:10 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,419|84| -|new Blob (1024)|585|75| -|text (128)|5,559|88| -|text (1024)|697|89| -|arrayBuffer (128)|5,533|87| -|arrayBuffer (1024)|624|87| -|slice (0, 64)|71,020|72| -|slice (0, 512)|18,645|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:29:06 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|231,486|52| -|[True conditional] Using constructor name|179,888|94| -|[True conditional] Check if property is valid then instanceof |181,847|98| -|[False conditional] Using instanceof only|855,309,809|98| -|[False conditional] Using constructor name|855,297,195|97| -|[False conditional] Check if property is valid then instanceof |855,853,707|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:41:58 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,721|95| -|crypto.verify('RSA-SHA256')|6,762|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:53:44 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,491,228|99| -|fromUnixToISOString(new Date())|2,212,455|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:03:34 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,327|84| -|Intl.DateTimeFormat().format(new Date())|19,970|84| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|19,060|81| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|18,694|84| -|Reusing Intl.DateTimeFormat()|732,132|98| -|Date.toLocaleDateString()|742,528|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,783|86| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:14:55 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,101,678|92| -|Using brackets {}|1,105,245|98| -|Using '' + |1,096,942|99| -|Using date.toString()|1,192,821|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:26:36 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,938,103|94| -|Using delete property (proto: null)|21,550,463|97| -|Using delete property (cached proto: null)|4,017,651|97| -|Using undefined assignment|851,274,202|99| -|Using undefined assignment (proto: null)|22,789,536|91| -|Using undefined property (cached proto: null)|849,684,990|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:37:56 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|223,603|53| -|NodeError|179,157|98| -|NodeError Range|179,788|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:47:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,731,706|96| -|Function returning explicitly undefined|1,737,499|100| -|Function returning implicitly undefined|1,776,405|97| -|Function returning string|1,724,649|99| -|Function returning integer|1,758,703|98| -|Function returning float|1,754,882|97| -|Function returning functions|1,711,067|100| -|Function returning arrow functions|1,723,796|100| -|Function returning empty object|1,751,639|97| -|Function returning empty array|1,687,651|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:04:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|852,546,461|98| -|using Array.includes (first item)|854,203,095|96| -|Using raw comparison|855,520,439|101| -|Using raw comparison (first item)|855,407,256|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:16:18 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|93,164,013|89| -|Using Object.getOwnPropertyNames()|94,857,643|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:27:38 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|848,073,319|93| -|Length = 10_000 - Array.at|852,262,887|96| -|Length = 1_000_000 - Array.at|851,842,894|99| -|Length = 100 - Array[length - 1]|851,106,572|98| -|Length = 10_000 - Array[length - 1]|850,973,537|97| -|Length = 1_000_000 - Array[length - 1]|852,074,207|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:40:16 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,701,950|92| -|Object.create({})|2,547,311|87| -|Cached Empty.prototype|853,861,124|92| -|Empty.prototype|2,428,241|82| -|Empty class|1,497,264|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:52:08 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|854,225,679|100| -|Using optional chain (obj.field?.field2) (undefined)|853,461,585|98| -|Using and operator (obj.field && obj.field.field2) (Valid)|852,463,572|92| -|Using and operator (obj.field && obj.field.field2) (undefined)|852,402,037|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:00:56 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|853,592,730|97| -|Using parseInt(x, 10) - big number (10 len)|850,961,112|96| -|Using + - small number (2 len)|855,513,783|93| -|Using + - big number (10 len)|854,860,140|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:11:06 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,310,349|83| -|Using ? operator to avoid rejection|1,378,813|84| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:18:33 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|848,026,698|95| -|Raw usage underscore usage|849,522,112|101| -|Manipulating private properties using #|840,417,166|98| -|Manipulating private properties using underscore(_)|842,457,460|93| -|Manipulating private properties using Symbol|842,288,682|101| -|Manipulating private properties using PrivateSymbol|56,267,067|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:29:20 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|7,901,300|98| -|Adding property in the object creation - small object|8,031,293|96| -|Adding property after the function creation - small class|262,768|90| -|Adding property in the function creation - small class|263,311|91| -|Adding property after the class creation - small class|221,664|87| -|Adding property in the class creation - small class|221,446|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:42:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|854,520,924|100| -|Getter|94,853,520|96| -|Method|854,179,066|98| -|DefineProperty (getter)|855,199,032|99| -|DefineProperty (getter & enumerable=false)|95,133,209|96| -|DefineProperty (getter & configurable=false)|855,794,227|99| -|DefineProperty (getter & enumerable=false & configurable=false)|95,043,628|97| -|DefineProperty (writable)|855,667,214|96| -|DefineProperty (writable & enumerable=false)|855,156,520|95| -|DefineProperty (writable & enumerable=false & configurable=false)|383,372,175|47| -|DefineProperties (getter)|58,386,836|94| -|DefineProperties (getter & enumerable=false)|95,188,948|97| -|DefineProperties (getter & enumerable=false & configurable=false)|94,929,664|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:03:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|842,348,268|95| -|Setter|12,586,217|98| -|Method|846,057,702|98| -|DefineProperty (setter)|816,594,055|95| -|DefineProperty (setter & enumerable=false)|12,981,205|92| -|DefineProperty (setter & configurable=false)|12,788,339|98| -|DefineProperty (setter & enumerable=false & configurable=false)|12,237,240|98| -|DefineProperty (writable)|849,217,688|100| -|DefineProperty (writable & enumerable=false)|848,551,246|98| -|DefineProperty (writable & enumerable=false & configurable=false)|842,929,220|98| -|DefineProperties (setter)|849,542,858|100| -|DefineProperties (setter & enumerable=false)|12,277,567|95| -|DefineProperties (setter & enumerable=false & configurable=false)|11,837,170|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:25:03 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,708,006|94| -|Using replaceAll()|3,265,658|100| -|Using replaceAll(//g)|3,339,600|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:37:57 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,621,461|93| -|{ ...object, __proto__: null }|30,025,790|97| -|{ ...object, newProp: true }|905,094|90| -|structuredClone|271,053|96| -|JSON.parse + JSON.stringify|200,873|94| -|loop + object.keys starting with {}|1,656,637|95| -|loop + object.keys starting with { __proto__: null }|885,377|97| -|loop + object.keys starting with { randomProp: true }|639,886|98| -|object.keys + reduce(FN, {})|590,969|91| -|object.keys + reduce(FN, { __proto__: null })|881,798|93| -|object.keys + reduce(FN, { newProp: true })|641,680|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:53:03 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|272,171|98| -|Sort using first char|1,423,132|94| -|Sort using localeCompare|1,244,591|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:04:16 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,040|94| -|{...smallObject} - Total keys: 2|112,215,646|95| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,198|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,668|99| -|{ ...bigObject, ...anotherBigObject }|1,229|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,905,988|95| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,171,054|97| -|{ ...smallObject, ...anotherSmallObject }|26,257,834|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:18:22 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,605|85| -|streams.web.Readable reading 1e3 * "some data"|706|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:27:01 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,707|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,106|38| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:37:15 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|853,348,001|101| -|Using backtick (`)|854,379,241|99| -|Using array.join|12,799,936|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:44:50 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|853,291,900|96| -|Using indexof|853,215,849|101| -|Using RegExp.test|16,238,785|99| -|Using RegExp.text with cached regex pattern|16,902,354|100| -|Using new RegExp.test|4,839,532|97| -|Using new RegExp.test with cached regex pattern|5,728,686|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:56:38 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|848,508,749|100| -|Using this|851,964,272|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:09:23 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,216,093|97| -|Date.now()|25,092,105|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:16:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/RESULTS-v20_7_0.md b/v20/RESULTS-v20_7_0.md deleted file mode 100644 index 52eb937a..00000000 --- a/v20/RESULTS-v20_7_0.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|852,449,418|96| -|Using dot notation|853,526,935|99| -|Using define property (writable)|4,775,186|96| -|Using define property initialized (writable)|6,443,108|95| -|Using define property (getter)|2,483,856|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:55:24 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.023ms -new Array(length)|100|0.007ms -array.push|1,000|0.047ms -new Array(length)|1,000|0.026ms -array.push|10,000|0.311ms -new Array(length)|10,000|0.322ms -array.push|1,000,000|30.6ms -new Array(length)|1,000,000|7.318ms -array.push|100,000,000|1,745.578ms -new Array(length)|100,000,000|4,219.819ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.009ms -new Array(length)|10|0.016ms -array.push|100|0.013ms -new Array(length)|100|0.01ms -array.push|1,000|0.03ms -new Array(length)|1,000|0.013ms -array.push|10,000|0.227ms -new Array(length)|10,000|0.237ms -array.push|1,000,000|22.495ms -new Array(length)|1,000,000|4.151ms -array.push|100,000,000|2,491.633ms -new Array(length)|100,000,000|3,916.569ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|312|88| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:10:51 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,533,035|100| -|[async] async function|17,914,079|84| -|[async] function|184,520|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:17:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,590|85| -|new Blob (1024)|587|74| -|text (128)|4,946|85| -|text (1024)|624|89| -|arrayBuffer (128)|4,962|88| -|arrayBuffer (1024)|625|89| -|slice (0, 64)|70,993|72| -|slice (0, 512)|18,712|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:31:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|227,863|52| -|[True conditional] Using constructor name|180,522|97| -|[True conditional] Check if property is valid then instanceof |180,180|94| -|[False conditional] Using instanceof only|855,347,893|97| -|[False conditional] Using constructor name|855,649,052|96| -|[False conditional] Check if property is valid then instanceof |856,062,244|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:42:42 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,731|96| -|crypto.verify('RSA-SHA256')|6,780|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:54:07 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,492,315|100| -|fromUnixToISOString(new Date())|2,153,749|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:04:04 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,401|85| -|Intl.DateTimeFormat().format(new Date())|17,987|80| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|18,725|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,633|84| -|Reusing Intl.DateTimeFormat()|678,990|96| -|Date.toLocaleDateString()|735,723|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,825|89| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:15:48 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,070,745|95| -|Using brackets {}|1,102,085|99| -|Using '' + |1,092,398|98| -|Using date.toString()|1,201,451|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:27:15 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|4,002,394|94| -|Using delete property (proto: null)|21,570,353|98| -|Using delete property (cached proto: null)|4,052,005|96| -|Using undefined assignment|851,874,978|100| -|Using undefined assignment (proto: null)|23,062,112|96| -|Using undefined property (cached proto: null)|850,982,147|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:38:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|224,374|53| -|NodeError|179,191|95| -|NodeError Range|180,363|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:47:06 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,932,412|94| -|Function returning explicitly undefined|1,924,070|95| -|Function returning implicitly undefined|1,981,217|96| -|Function returning string|1,834,648|93| -|Function returning integer|1,965,117|97| -|Function returning float|1,947,204|96| -|Function returning functions|1,895,626|94| -|Function returning arrow functions|1,901,793|95| -|Function returning empty object|1,953,149|97| -|Function returning empty array|1,953,335|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:05:19 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|848,828,293|97| -|using Array.includes (first item)|852,244,473|97| -|Using raw comparison|852,668,252|98| -|Using raw comparison (first item)|852,088,124|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:17:31 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|91,327,229|94| -|Using Object.getOwnPropertyNames()|94,628,427|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:03 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|848,840,778|94| -|Length = 10_000 - Array.at|851,459,451|98| -|Length = 1_000_000 - Array.at|851,943,368|98| -|Length = 100 - Array[length - 1]|851,285,877|100| -|Length = 10_000 - Array[length - 1]|853,406,353|99| -|Length = 1_000_000 - Array[length - 1]|852,552,713|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:39:21 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,922,345|97| -|Object.create({})|2,561,430|87| -|Cached Empty.prototype|853,794,574|99| -|Empty.prototype|2,462,674|87| -|Empty class|1,545,426|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:50:59 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|852,296,980|97| -|Using optional chain (obj.field?.field2) (undefined)|851,462,995|97| -|Using and operator (obj.field && obj.field.field2) (Valid)|850,847,516|94| -|Using and operator (obj.field && obj.field.field2) (undefined)|852,256,213|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:01:35 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|852,198,667|95| -|Using parseInt(x, 10) - big number (10 len)|854,326,436|96| -|Using + - small number (2 len)|853,647,008|97| -|Using + - big number (10 len)|853,033,099|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:11:42 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,313,411|76| -|Using ? operator to avoid rejection|1,403,340|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:18:59 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|847,676,250|98| -|Raw usage underscore usage|850,325,431|94| -|Manipulating private properties using #|840,672,947|98| -|Manipulating private properties using underscore(_)|841,694,265|90| -|Manipulating private properties using Symbol|839,963,651|89| -|Manipulating private properties using PrivateSymbol|57,238,123|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:30:11 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,349,103|96| -|Adding property in the object creation - small object|8,503,698|98| -|Adding property after the function creation - small class|261,654|89| -|Adding property in the function creation - small class|262,058|92| -|Adding property after the class creation - small class|219,086|87| -|Adding property in the class creation - small class|218,033|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:43:01 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|852,623,855|96| -|Getter|95,083,405|97| -|Method|853,109,714|99| -|DefineProperty (getter)|853,315,778|98| -|DefineProperty (getter & enumerable=false)|95,195,019|99| -|DefineProperty (getter & configurable=false)|855,517,827|100| -|DefineProperty (getter & enumerable=false & configurable=false)|95,280,246|94| -|DefineProperty (writable)|855,435,724|100| -|DefineProperty (writable & enumerable=false)|856,014,168|99| -|DefineProperty (writable & enumerable=false & configurable=false)|855,459,946|99| -|DefineProperties (getter)|94,807,837|94| -|DefineProperties (getter & enumerable=false)|95,461,288|96| -|DefineProperties (getter & enumerable=false & configurable=false)|65,228,093|69| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:02:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|842,224,971|100| -|Setter|12,475,311|99| -|Method|847,445,309|98| -|DefineProperty (setter)|846,336,888|98| -|DefineProperty (setter & enumerable=false)|12,304,369|96| -|DefineProperty (setter & configurable=false)|12,347,672|95| -|DefineProperty (setter & enumerable=false & configurable=false)|12,170,501|98| -|DefineProperty (writable)|847,340,716|98| -|DefineProperty (writable & enumerable=false)|849,009,656|98| -|DefineProperty (writable & enumerable=false & configurable=false)|847,564,754|99| -|DefineProperties (setter)|848,767,483|100| -|DefineProperties (setter & enumerable=false)|12,094,112|100| -|DefineProperties (setter & enumerable=false & configurable=false)|11,045,309|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:23:36 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,741,097|94| -|Using replaceAll()|3,183,231|99| -|Using replaceAll(//g)|3,381,807|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:38:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,669,233|92| -|{ ...object, __proto__: null }|30,411,530|98| -|{ ...object, newProp: true }|923,761|89| -|structuredClone|270,214|96| -|JSON.parse + JSON.stringify|206,021|91| -|loop + object.keys starting with {}|1,647,349|99| -|loop + object.keys starting with { __proto__: null }|915,537|92| -|loop + object.keys starting with { randomProp: true }|656,722|95| -|object.keys + reduce(FN, {})|641,138|97| -|object.keys + reduce(FN, { __proto__: null })|925,154|97| -|object.keys + reduce(FN, { newProp: true })|655,794|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:54:17 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|273,871|95| -|Sort using first char|1,474,779|98| -|Sort using localeCompare|1,314,136|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:04:47 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,060|96| -|{...smallObject} - Total keys: 2|112,805,929|99| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,181|96| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,323|99| -|{ ...bigObject, ...anotherBigObject }|1,238|96| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,396,664|98| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,162,111|96| -|{ ...smallObject, ...anotherSmallObject }|25,855,699|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:17:22 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,683|88| -|streams.web.Readable reading 1e3 * "some data"|688|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:27:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,781|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,085|38| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:36:41 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|853,116,572|98| -|Using backtick (`)|854,425,680|98| -|Using array.join|12,733,315|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:45:21 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|853,850,464|95| -|Using indexof|854,482,238|94| -|Using RegExp.test|16,330,360|100| -|Using RegExp.text with cached regex pattern|16,973,178|100| -|Using new RegExp.test|4,723,561|95| -|Using new RegExp.test with cached regex pattern|5,557,986|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:57:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|849,845,601|96| -|Using this|851,491,782|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:09:49 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,495,724|93| -|Date.now()|25,346,901|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:17:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/RESULTS-v20_8_0.md b/v20/RESULTS-v20_8_0.md deleted file mode 100644 index 8167e17f..00000000 --- a/v20/RESULTS-v20_8_0.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|854,433,469|98| -|Using dot notation|853,901,011|98| -|Using define property (writable)|4,701,078|99| -|Using define property initialized (writable)|6,427,858|93| -|Using define property (getter)|2,446,968|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:56:03 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.025ms -new Array(length)|100|0.009ms -array.push|1,000|0.047ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.308ms -new Array(length)|10,000|0.326ms -array.push|1,000,000|30.506ms -new Array(length)|1,000,000|6.188ms -array.push|100,000,000|1,760.289ms -new Array(length)|100,000,000|4,266.606ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.017ms -array.push|100|0.04ms -new Array(length)|100|0.009ms -array.push|1,000|0.029ms -new Array(length)|1,000|0.012ms -array.push|10,000|0.23ms -new Array(length)|10,000|0.154ms -array.push|1,000,000|24.729ms -new Array(length)|1,000,000|4.411ms -array.push|100,000,000|2,530.998ms -new Array(length)|100,000,000|3,969.442ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|311|88| -|Array.from|24|43| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:11:14 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,334,817|99| -|[async] async function|18,183,679|86| -|[async] function|153,308|16| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:18:24 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,574|83| -|new Blob (1024)|579|75| -|text (128)|5,053|87| -|text (1024)|630|86| -|arrayBuffer (128)|5,037|88| -|arrayBuffer (1024)|631|87| -|slice (0, 64)|69,950|68| -|slice (0, 512)|18,842|65| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:32:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|234,813|57| -|[True conditional] Using constructor name|185,896|100| -|[True conditional] Check if property is valid then instanceof |183,416|92| -|[False conditional] Using instanceof only|854,163,120|98| -|[False conditional] Using constructor name|854,901,278|97| -|[False conditional] Check if property is valid then instanceof |855,250,372|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:44:38 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,780|94| -|crypto.verify('RSA-SHA256')|6,817|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:54:55 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,454,549|98| -|fromUnixToISOString(new Date())|2,243,153|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:04:31 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,442|81| -|Intl.DateTimeFormat().format(new Date())|19,819|87| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|17,139|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,562|82| -|Reusing Intl.DateTimeFormat()|728,437|96| -|Date.toLocaleDateString()|744,237|94| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,566|82| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:16:48 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,072,743|98| -|Using brackets {}|1,099,115|94| -|Using '' + |1,091,622|94| -|Using date.toString()|1,193,952|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:27:52 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,920,033|95| -|Using delete property (proto: null)|20,299,604|95| -|Using delete property (cached proto: null)|3,939,913|98| -|Using undefined assignment|852,389,898|99| -|Using undefined assignment (proto: null)|21,898,293|89| -|Using undefined property (cached proto: null)|848,711,958|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:39:30 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|226,558|54| -|NodeError|180,254|95| -|NodeError Range|180,782|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:48:31 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,721,512|95| -|Function returning explicitly undefined|1,692,009|99| -|Function returning implicitly undefined|1,751,157|96| -|Function returning string|1,679,047|95| -|Function returning integer|1,705,659|97| -|Function returning float|1,735,915|99| -|Function returning functions|1,681,637|99| -|Function returning arrow functions|1,718,075|96| -|Function returning empty object|1,740,545|98| -|Function returning empty array|1,741,806|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:06:42 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|850,808,372|98| -|using Array.includes (first item)|853,312,250|94| -|Using raw comparison|854,099,059|96| -|Using raw comparison (first item)|852,743,586|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:18:43 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|91,571,455|90| -|Using Object.getOwnPropertyNames()|95,983,081|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|847,843,638|98| -|Length = 10_000 - Array.at|850,894,155|96| -|Length = 1_000_000 - Array.at|850,301,338|96| -|Length = 100 - Array[length - 1]|852,497,145|101| -|Length = 10_000 - Array[length - 1]|854,689,460|96| -|Length = 1_000_000 - Array[length - 1]|853,878,402|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:41:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,348,788|90| -|Object.create({})|2,518,993|85| -|Cached Empty.prototype|852,004,103|100| -|Empty.prototype|2,370,380|91| -|Empty class|1,523,352|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:52:51 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|851,678,475|98| -|Using optional chain (obj.field?.field2) (undefined)|854,681,667|92| -|Using and operator (obj.field && obj.field.field2) (Valid)|853,718,512|88| -|Using and operator (obj.field && obj.field.field2) (undefined)|853,404,078|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:02:11 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|853,033,140|95| -|Using parseInt(x, 10) - big number (10 len)|855,061,589|97| -|Using + - small number (2 len)|855,268,702|93| -|Using + - big number (10 len)|854,848,382|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:12:22 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,207,038|80| -|Using ? operator to avoid rejection|1,257,396|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:19:49 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|850,222,327|95| -|Raw usage underscore usage|848,941,323|99| -|Manipulating private properties using #|841,188,750|95| -|Manipulating private properties using underscore(_)|841,043,647|101| -|Manipulating private properties using Symbol|840,534,835|92| -|Manipulating private properties using PrivateSymbol|56,301,112|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:31:54 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,417,795|96| -|Adding property in the object creation - small object|8,546,162|97| -|Adding property after the function creation - small class|257,741|87| -|Adding property in the function creation - small class|262,963|90| -|Adding property after the class creation - small class|221,161|88| -|Adding property in the class creation - small class|219,880|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:43:48 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|854,196,076|96| -|Getter|95,030,755|98| -|Method|854,771,988|100| -|DefineProperty (getter)|854,593,544|99| -|DefineProperty (getter & enumerable=false)|94,873,260|97| -|DefineProperty (getter & configurable=false)|855,328,379|97| -|DefineProperty (getter & enumerable=false & configurable=false)|94,662,920|95| -|DefineProperty (writable)|856,349,794|100| -|DefineProperty (writable & enumerable=false)|509,249,354|63| -|DefineProperty (writable & enumerable=false & configurable=false)|125,903,722|80| -|DefineProperties (getter)|57,995,047|91| -|DefineProperties (getter & enumerable=false)|95,035,951|97| -|DefineProperties (getter & enumerable=false & configurable=false)|95,165,621|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:06:19 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|838,422,704|99| -|Setter|12,817,029|100| -|Method|847,616,361|95| -|DefineProperty (setter)|819,832,036|96| -|DefineProperty (setter & enumerable=false)|12,641,929|99| -|DefineProperty (setter & configurable=false)|12,346,945|97| -|DefineProperty (setter & enumerable=false & configurable=false)|12,630,247|94| -|DefineProperty (writable)|848,170,039|100| -|DefineProperty (writable & enumerable=false)|848,406,651|98| -|DefineProperty (writable & enumerable=false & configurable=false)|820,590,484|96| -|DefineProperties (setter)|850,064,358|101| -|DefineProperties (setter & enumerable=false)|12,367,497|100| -|DefineProperties (setter & enumerable=false & configurable=false)|11,511,277|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:26:28 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,740,082|96| -|Using replaceAll()|3,270,415|97| -|Using replaceAll(//g)|3,381,100|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:39:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,104,866|94| -|{ ...object, __proto__: null }|29,742,767|94| -|{ ...object, newProp: true }|887,566|89| -|structuredClone|265,584|93| -|JSON.parse + JSON.stringify|208,699|100| -|loop + object.keys starting with {}|1,661,262|93| -|loop + object.keys starting with { __proto__: null }|874,728|95| -|loop + object.keys starting with { randomProp: true }|637,673|99| -|object.keys + reduce(FN, {})|608,708|95| -|object.keys + reduce(FN, { __proto__: null })|898,272|96| -|object.keys + reduce(FN, { newProp: true })|641,796|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:55:31 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|273,285|89| -|Sort using first char|1,477,178|94| -|Sort using localeCompare|1,243,572|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:05:19 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,063|93| -|{...smallObject} - Total keys: 2|112,441,528|98| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,176|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,479|100| -|{ ...bigObject, ...anotherBigObject }|1,238|96| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,311,938|96| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,198,080|96| -|{ ...smallObject, ...anotherSmallObject }|25,714,171|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:19:19 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,613|85| -|streams.web.Readable reading 1e3 * "some data"|2,441|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:28:21 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,927|95| -|streams.web.WritableStream writing 1e3 * "some data"|1,045|36| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:37:51 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|852,918,738|93| -|Using backtick (`)|854,845,242|98| -|Using array.join|12,377,131|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:45:54 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|854,108,534|100| -|Using indexof|853,468,205|94| -|Using RegExp.test|16,362,688|95| -|Using RegExp.text with cached regex pattern|17,117,795|99| -|Using new RegExp.test|4,735,720|99| -|Using new RegExp.test with cached regex pattern|5,642,908|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:58:23 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|849,343,547|96| -|Using this|850,146,366|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:10:41 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|11,592,512|92| -|Date.now()|22,068,931|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:18:26 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/RESULTS-v20_9_0.md b/v20/RESULTS-v20_9_0.md deleted file mode 100644 index 9fcb0f9a..00000000 --- a/v20/RESULTS-v20_9_0.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|851,030,980|99| -|Using dot notation|849,606,269|99| -|Using define property (writable)|4,635,975|97| -|Using define property initialized (writable)|6,299,871|91| -|Using define property (getter)|2,426,185|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:17:06 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.028ms -new Array(length)|100|0.01ms -array.push|1,000|0.044ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.317ms -new Array(length)|10,000|0.343ms -array.push|1,000,000|33.177ms -new Array(length)|1,000,000|6.811ms -array.push|100,000,000|1,818.088ms -new Array(length)|100,000,000|4,474.176ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.016ms -array.push|100|0.04ms -new Array(length)|100|0.009ms -array.push|1,000|0.028ms -new Array(length)|1,000|0.013ms -array.push|10,000|0.235ms -new Array(length)|10,000|0.158ms -array.push|1,000,000|23.289ms -new Array(length)|1,000,000|4.211ms -array.push|100,000,000|2,532.884ms -new Array(length)|100,000,000|4,145.757ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|270|86| -|Array.from|23|43| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:19:05 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|850,647,827|95| -|[async] async function|17,497,258|87| -|[async] function|170,577|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:20:17 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,541|85| -|new Blob (1024)|585|78| -|text (128)|4,854|83| -|text (1024)|614|86| -|arrayBuffer (128)|4,784|83| -|arrayBuffer (1024)|620|86| -|slice (0, 64)|67,190|69| -|slice (0, 512)|19,638|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:21:54 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|229,336|50| -|[True conditional] Using constructor name|179,654|94| -|[True conditional] Check if property is valid then instanceof |181,405|96| -|[False conditional] Using instanceof only|852,049,857|94| -|[False conditional] Using constructor name|851,488,337|98| -|[False conditional] Check if property is valid then instanceof |852,854,621|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:23:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,776|96| -|crypto.verify('RSA-SHA256')|6,714|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:24:36 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,549,112|97| -|fromUnixToISOString(new Date())|2,270,537|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:25:27 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|19,129|85| -|Intl.DateTimeFormat().format(new Date())|19,820|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|21,547|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,626|83| -|Reusing Intl.DateTimeFormat()|620,552|95| -|Date.toLocaleDateString()|714,838|94| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,786|86| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:26:58 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,068,925|97| -|Using brackets {}|1,098,834|99| -|Using '' + |1,098,285|93| -|Using date.toString()|1,220,889|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:28:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,903,124|98| -|Using delete property (proto: null)|21,229,518|97| -|Using delete property (cached proto: null)|3,917,481|99| -|Using undefined assignment|849,215,040|100| -|Using undefined assignment (proto: null)|21,785,239|99| -|Using undefined property (cached proto: null)|845,790,480|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:29:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|222,363|53| -|NodeError|176,965|96| -|NodeError Range|177,255|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:30:34 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,677,033|97| -|Function returning explicitly undefined|1,667,984|95| -|Function returning implicitly undefined|1,671,230|96| -|Function returning string|1,640,009|96| -|Function returning integer|1,693,062|100| -|Function returning float|1,673,988|95| -|Function returning functions|1,632,028|95| -|Function returning arrow functions|1,652,020|97| -|Function returning empty object|1,692,810|96| -|Function returning empty array|1,659,884|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:32:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|849,527,945|98| -|using Array.includes (first item)|849,391,229|96| -|Using raw comparison|852,285,935|100| -|Using raw comparison (first item)|851,152,348|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:33:34 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|92,433,883|89| -|Using Object.getOwnPropertyNames()|93,472,185|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:34:27 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|847,383,904|97| -|Length = 10_000 - Array.at|848,069,329|99| -|Length = 1_000_000 - Array.at|848,824,299|100| -|Length = 100 - Array[length - 1]|850,082,862|98| -|Length = 10_000 - Array[length - 1]|850,092,115|100| -|Length = 1_000_000 - Array[length - 1]|849,842,557|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:35:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,124,418|95| -|Object.create({})|2,438,311|82| -|Cached Empty.prototype|850,959,605|100| -|Empty.prototype|2,317,550|79| -|Empty class|1,466,105|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:37:05 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|850,483,127|98| -|Using optional chain (obj.field?.field2) (undefined)|851,701,944|98| -|Using and operator (obj.field && obj.field.field2) (Valid)|851,758,107|97| -|Using and operator (obj.field && obj.field.field2) (undefined)|850,979,192|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:38:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|851,012,869|98| -|Using parseInt(x, 10) - big number (10 len)|851,531,280|95| -|Using + - small number (2 len)|852,157,458|96| -|Using + - big number (10 len)|851,373,196|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:39:37 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,111,780|82| -|Using ? operator to avoid rejection|1,179,038|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:40:35 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|845,565,067|94| -|Raw usage underscore usage|847,970,393|97| -|Manipulating private properties using #|838,153,266|100| -|Manipulating private properties using underscore(_)|839,673,832|97| -|Manipulating private properties using Symbol|839,047,145|94| -|Manipulating private properties using PrivateSymbol|55,528,039|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:42:10 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,453,683|92| -|Adding property in the object creation - small object|8,501,750|94| -|Adding property after the function creation - small class|253,389|89| -|Adding property in the function creation - small class|260,543|91| -|Adding property after the class creation - small class|220,891|87| -|Adding property in the class creation - small class|215,513|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:43:29 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|850,306,210|99| -|Getter|94,727,194|97| -|Method|850,738,537|97| -|DefineProperty (getter)|851,055,231|97| -|DefineProperty (getter & enumerable=false)|94,768,870|96| -|DefineProperty (getter & configurable=false)|851,568,377|98| -|DefineProperty (getter & enumerable=false & configurable=false)|94,565,844|96| -|DefineProperty (writable)|851,144,449|100| -|DefineProperty (writable & enumerable=false)|852,411,137|99| -|DefineProperty (writable & enumerable=false & configurable=false)|394,520,868|49| -|DefineProperties (getter)|57,754,757|90| -|DefineProperties (getter & enumerable=false)|94,905,580|97| -|DefineProperties (getter & enumerable=false & configurable=false)|94,783,366|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:45:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|840,398,386|97| -|Setter|12,523,903|99| -|Method|843,324,101|98| -|DefineProperty (setter)|840,220,471|99| -|DefineProperty (setter & enumerable=false)|12,657,038|99| -|DefineProperty (setter & configurable=false)|12,839,287|96| -|DefineProperty (setter & enumerable=false & configurable=false)|12,738,305|99| -|DefineProperty (writable)|845,442,571|100| -|DefineProperty (writable & enumerable=false)|845,316,357|98| -|DefineProperty (writable & enumerable=false & configurable=false)|842,969,500|96| -|DefineProperties (setter)|845,814,773|98| -|DefineProperties (setter & enumerable=false)|11,865,508|94| -|DefineProperties (setter & enumerable=false & configurable=false)|11,581,846|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:47:19 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,725,190|94| -|Using replaceAll()|3,164,255|95| -|Using replaceAll(//g)|3,344,270|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:48:36 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,147,108|96| -|{ ...object, __proto__: null }|29,682,602|91| -|{ ...object, newProp: true }|887,687|86| -|structuredClone|262,504|99| -|JSON.parse + JSON.stringify|194,441|100| -|loop + object.keys starting with {}|1,575,811|94| -|loop + object.keys starting with { __proto__: null }|781,869|98| -|loop + object.keys starting with { randomProp: true }|573,464|96| -|object.keys + reduce(FN, {})|557,646|97| -|object.keys + reduce(FN, { __proto__: null })|797,217|97| -|object.keys + reduce(FN, { newProp: true })|577,436|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:50:19 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|253,634|97| -|Sort using first char|1,368,565|91| -|Sort using localeCompare|1,187,657|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:51:35 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,814|97| -|{...smallObject} - Total keys: 2|103,957,609|92| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,095|96| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,557|99| -|{ ...bigObject, ...anotherBigObject }|1,137|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,285,089|99| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|37,978,143|97| -|{ ...smallObject, ...anotherSmallObject }|25,407,507|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:53:08 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,325|86| -|streams.web.Readable reading 1e3 * "some data"|1,992|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:54:34 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,687|95| -|streams.web.WritableStream writing 1e3 * "some data"|1,081|49| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:55:54 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|849,889,886|99| -|Using backtick (`)|851,053,612|98| -|Using array.join|12,557,559|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:57:32 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|849,717,270|96| -|Using indexof|849,905,304|99| -|Using RegExp.test|15,567,324|100| -|Using RegExp.text with cached regex pattern|16,453,322|97| -|Using new RegExp.test|4,546,446|95| -|Using new RegExp.test with cached regex pattern|5,351,740|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:58:52 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|845,594,206|98| -|Using this|848,024,266|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 11:00:12 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|12,467,078|93| -|Date.now()|24,274,871|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 11:01:37 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/add-property.md b/v20/v20_6_0/add-property.md deleted file mode 100644 index 4ed8d520..00000000 --- a/v20/v20_6_0/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|853,516,082|95| -|Using dot notation|853,250,434|95| -|Using define property (writable)|4,817,736|99| -|Using define property initialized (writable)|6,416,729|97| -|Using define property (getter)|2,483,205|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:54:44 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/array-append.md b/v20/v20_6_0/array-append.md deleted file mode 100644 index 533908fc..00000000 --- a/v20/v20_6_0/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.004ms -array.push|100|0.023ms -new Array(length)|100|0.01ms -array.push|1,000|0.043ms -new Array(length)|1,000|0.028ms -array.push|10,000|0.305ms -new Array(length)|10,000|0.307ms -array.push|1,000,000|30.753ms -new Array(length)|1,000,000|6.583ms -array.push|100,000,000|1,751.384ms -new Array(length)|100,000,000|4,240.035ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.017ms -array.push|100|0.013ms -new Array(length)|100|0.009ms -array.push|1,000|0.031ms -new Array(length)|1,000|0.012ms -array.push|10,000|0.235ms -new Array(length)|10,000|0.159ms -array.push|1,000,000|22.929ms -new Array(length)|1,000,000|4.41ms -array.push|100,000,000|2,449.49ms -new Array(length)|100,000,000|3,952.21ms diff --git a/v20/v20_6_0/array-creation.md b/v20/v20_6_0/array-creation.md deleted file mode 100644 index 57521f23..00000000 --- a/v20/v20_6_0/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|310|88| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:10:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/async-function-vs-function.md b/v20/v20_6_0/async-function-vs-function.md deleted file mode 100644 index 94dacea7..00000000 --- a/v20/v20_6_0/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,062,157|99| -|[async] async function|18,629,299|88| -|[async] function|189,704|16| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:17:10 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/blob.md b/v20/v20_6_0/blob.md deleted file mode 100644 index d1d9af04..00000000 --- a/v20/v20_6_0/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,419|84| -|new Blob (1024)|585|75| -|text (128)|5,559|88| -|text (1024)|697|89| -|arrayBuffer (128)|5,533|87| -|arrayBuffer (1024)|624|87| -|slice (0, 64)|71,020|72| -|slice (0, 512)|18,645|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:29:06 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/compare-using-instanceof.md b/v20/v20_6_0/compare-using-instanceof.md deleted file mode 100644 index 004138cf..00000000 --- a/v20/v20_6_0/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|231,486|52| -|[True conditional] Using constructor name|179,888|94| -|[True conditional] Check if property is valid then instanceof |181,847|98| -|[False conditional] Using instanceof only|855,309,809|98| -|[False conditional] Using constructor name|855,297,195|97| -|[False conditional] Check if property is valid then instanceof |855,853,707|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:41:58 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/crypto-verify.md b/v20/v20_6_0/crypto-verify.md deleted file mode 100644 index a2a6c6a7..00000000 --- a/v20/v20_6_0/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,721|95| -|crypto.verify('RSA-SHA256')|6,762|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:53:44 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/date-format-iso.md b/v20/v20_6_0/date-format-iso.md deleted file mode 100644 index e3ce2b8c..00000000 --- a/v20/v20_6_0/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,491,228|99| -|fromUnixToISOString(new Date())|2,212,455|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:03:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/date-format.md b/v20/v20_6_0/date-format.md deleted file mode 100644 index 75835e5d..00000000 --- a/v20/v20_6_0/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,327|84| -|Intl.DateTimeFormat().format(new Date())|19,970|84| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|19,060|81| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|18,694|84| -|Reusing Intl.DateTimeFormat()|732,132|98| -|Date.toLocaleDateString()|742,528|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,783|86| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:14:55 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/date-string-coersion.md b/v20/v20_6_0/date-string-coersion.md deleted file mode 100644 index c33f7bf3..00000000 --- a/v20/v20_6_0/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,101,678|92| -|Using brackets {}|1,105,245|98| -|Using '' + |1,096,942|99| -|Using date.toString()|1,192,821|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:26:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/deleting-properties.md b/v20/v20_6_0/deleting-properties.md deleted file mode 100644 index 07e083f1..00000000 --- a/v20/v20_6_0/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,938,103|94| -|Using delete property (proto: null)|21,550,463|97| -|Using delete property (cached proto: null)|4,017,651|97| -|Using undefined assignment|851,274,202|99| -|Using undefined assignment (proto: null)|22,789,536|91| -|Using undefined property (cached proto: null)|849,684,990|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:37:56 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/error.md b/v20/v20_6_0/error.md deleted file mode 100644 index 5fcf6c74..00000000 --- a/v20/v20_6_0/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|223,603|53| -|NodeError|179,157|98| -|NodeError Range|179,788|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:47:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/function-return.md b/v20/v20_6_0/function-return.md deleted file mode 100644 index afb0ae04..00000000 --- a/v20/v20_6_0/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,731,706|96| -|Function returning explicitly undefined|1,737,499|100| -|Function returning implicitly undefined|1,776,405|97| -|Function returning string|1,724,649|99| -|Function returning integer|1,758,703|98| -|Function returning float|1,754,882|97| -|Function returning functions|1,711,067|100| -|Function returning arrow functions|1,723,796|100| -|Function returning empty object|1,751,639|97| -|Function returning empty array|1,687,651|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:04:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/includes-vs-raw-comparison.md b/v20/v20_6_0/includes-vs-raw-comparison.md deleted file mode 100644 index 7932a416..00000000 --- a/v20/v20_6_0/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|852,546,461|98| -|using Array.includes (first item)|854,203,095|96| -|Using raw comparison|855,520,439|101| -|Using raw comparison (first item)|855,407,256|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:16:18 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/keys-vs-getownpropertynames.md b/v20/v20_6_0/keys-vs-getownpropertynames.md deleted file mode 100644 index 1f0d4e03..00000000 --- a/v20/v20_6_0/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|93,164,013|89| -|Using Object.getOwnPropertyNames()|94,857,643|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:27:38 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/last-array-item.md b/v20/v20_6_0/last-array-item.md deleted file mode 100644 index 3b517c34..00000000 --- a/v20/v20_6_0/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|848,073,319|93| -|Length = 10_000 - Array.at|852,262,887|96| -|Length = 1_000_000 - Array.at|851,842,894|99| -|Length = 100 - Array[length - 1]|851,106,572|98| -|Length = 10_000 - Array[length - 1]|850,973,537|97| -|Length = 1_000_000 - Array[length - 1]|852,074,207|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:40:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/object-creation.md b/v20/v20_6_0/object-creation.md deleted file mode 100644 index 4efa7f50..00000000 --- a/v20/v20_6_0/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,701,950|92| -|Object.create({})|2,547,311|87| -|Cached Empty.prototype|853,861,124|92| -|Empty.prototype|2,428,241|82| -|Empty class|1,497,264|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:52:08 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/optional-chain-vs-and-operator.md b/v20/v20_6_0/optional-chain-vs-and-operator.md deleted file mode 100644 index d410cff3..00000000 --- a/v20/v20_6_0/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|854,225,679|100| -|Using optional chain (obj.field?.field2) (undefined)|853,461,585|98| -|Using and operator (obj.field && obj.field.field2) (Valid)|852,463,572|92| -|Using and operator (obj.field && obj.field.field2) (undefined)|852,402,037|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:00:56 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/parse-int.md b/v20/v20_6_0/parse-int.md deleted file mode 100644 index d57bfac7..00000000 --- a/v20/v20_6_0/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|853,592,730|97| -|Using parseInt(x, 10) - big number (10 len)|850,961,112|96| -|Using + - small number (2 len)|855,513,783|93| -|Using + - big number (10 len)|854,860,140|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:11:06 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/possible-undefined-function.md b/v20/v20_6_0/possible-undefined-function.md deleted file mode 100644 index a9fbd962..00000000 --- a/v20/v20_6_0/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,310,349|83| -|Using ? operator to avoid rejection|1,378,813|84| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:18:33 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/private-property.md b/v20/v20_6_0/private-property.md deleted file mode 100644 index 1dd628bc..00000000 --- a/v20/v20_6_0/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|848,026,698|95| -|Raw usage underscore usage|849,522,112|101| -|Manipulating private properties using #|840,417,166|98| -|Manipulating private properties using underscore(_)|842,457,460|93| -|Manipulating private properties using Symbol|842,288,682|101| -|Manipulating private properties using PrivateSymbol|56,267,067|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:29:20 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/property-access-transition.md b/v20/v20_6_0/property-access-transition.md deleted file mode 100644 index 43804352..00000000 --- a/v20/v20_6_0/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|7,901,300|98| -|Adding property in the object creation - small object|8,031,293|96| -|Adding property after the function creation - small class|262,768|90| -|Adding property in the function creation - small class|263,311|91| -|Adding property after the class creation - small class|221,664|87| -|Adding property in the class creation - small class|221,446|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:42:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/property-getter-access.md b/v20/v20_6_0/property-getter-access.md deleted file mode 100644 index 08a5cf3d..00000000 --- a/v20/v20_6_0/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|854,520,924|100| -|Getter|94,853,520|96| -|Method|854,179,066|98| -|DefineProperty (getter)|855,199,032|99| -|DefineProperty (getter & enumerable=false)|95,133,209|96| -|DefineProperty (getter & configurable=false)|855,794,227|99| -|DefineProperty (getter & enumerable=false & configurable=false)|95,043,628|97| -|DefineProperty (writable)|855,667,214|96| -|DefineProperty (writable & enumerable=false)|855,156,520|95| -|DefineProperty (writable & enumerable=false & configurable=false)|383,372,175|47| -|DefineProperties (getter)|58,386,836|94| -|DefineProperties (getter & enumerable=false)|95,188,948|97| -|DefineProperties (getter & enumerable=false & configurable=false)|94,929,664|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:03:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/property-setter-access.md b/v20/v20_6_0/property-setter-access.md deleted file mode 100644 index 298d1b62..00000000 --- a/v20/v20_6_0/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|842,348,268|95| -|Setter|12,586,217|98| -|Method|846,057,702|98| -|DefineProperty (setter)|816,594,055|95| -|DefineProperty (setter & enumerable=false)|12,981,205|92| -|DefineProperty (setter & configurable=false)|12,788,339|98| -|DefineProperty (setter & enumerable=false & configurable=false)|12,237,240|98| -|DefineProperty (writable)|849,217,688|100| -|DefineProperty (writable & enumerable=false)|848,551,246|98| -|DefineProperty (writable & enumerable=false & configurable=false)|842,929,220|98| -|DefineProperties (setter)|849,542,858|100| -|DefineProperties (setter & enumerable=false)|12,277,567|95| -|DefineProperties (setter & enumerable=false & configurable=false)|11,837,170|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:25:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/replace-vs-replaceall-comparison.md b/v20/v20_6_0/replace-vs-replaceall-comparison.md deleted file mode 100644 index 64a1b4e6..00000000 --- a/v20/v20_6_0/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,708,006|94| -|Using replaceAll()|3,265,658|100| -|Using replaceAll(//g)|3,339,600|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:37:57 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/shallow-copy.md b/v20/v20_6_0/shallow-copy.md deleted file mode 100644 index 8b8b3e5c..00000000 --- a/v20/v20_6_0/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,621,461|93| -|{ ...object, __proto__: null }|30,025,790|97| -|{ ...object, newProp: true }|905,094|90| -|structuredClone|271,053|96| -|JSON.parse + JSON.stringify|200,873|94| -|loop + object.keys starting with {}|1,656,637|95| -|loop + object.keys starting with { __proto__: null }|885,377|97| -|loop + object.keys starting with { randomProp: true }|639,886|98| -|object.keys + reduce(FN, {})|590,969|91| -|object.keys + reduce(FN, { __proto__: null })|881,798|93| -|object.keys + reduce(FN, { newProp: true })|641,680|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:53:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/sort-map.md b/v20/v20_6_0/sort-map.md deleted file mode 100644 index df2f4400..00000000 --- a/v20/v20_6_0/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|272,171|98| -|Sort using first char|1,423,132|94| -|Sort using localeCompare|1,244,591|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:04:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/spread-vs-object-assign.md b/v20/v20_6_0/spread-vs-object-assign.md deleted file mode 100644 index 8ce65f1b..00000000 --- a/v20/v20_6_0/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,040|94| -|{...smallObject} - Total keys: 2|112,215,646|95| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,198|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,668|99| -|{ ...bigObject, ...anotherBigObject }|1,229|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,905,988|95| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,171,054|97| -|{ ...smallObject, ...anotherSmallObject }|26,257,834|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:18:22 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/stream-readable.md b/v20/v20_6_0/stream-readable.md deleted file mode 100644 index f66f97b5..00000000 --- a/v20/v20_6_0/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,605|85| -|streams.web.Readable reading 1e3 * "some data"|706|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:27:01 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/stream-writable.md b/v20/v20_6_0/stream-writable.md deleted file mode 100644 index cb35791a..00000000 --- a/v20/v20_6_0/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,707|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,106|38| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:37:15 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/string-concat.md b/v20/v20_6_0/string-concat.md deleted file mode 100644 index 07008672..00000000 --- a/v20/v20_6_0/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|853,348,001|101| -|Using backtick (`)|854,379,241|99| -|Using array.join|12,799,936|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:44:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/string-searching.md b/v20/v20_6_0/string-searching.md deleted file mode 100644 index 071bcc9f..00000000 --- a/v20/v20_6_0/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|853,291,900|96| -|Using indexof|853,215,849|101| -|Using RegExp.test|16,238,785|99| -|Using RegExp.text with cached regex pattern|16,902,354|100| -|Using new RegExp.test|4,839,532|97| -|Using new RegExp.test with cached regex pattern|5,728,686|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:56:38 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/super-vs-this.md b/v20/v20_6_0/super-vs-this.md deleted file mode 100644 index e23cf791..00000000 --- a/v20/v20_6_0/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|848,508,749|100| -|Using this|851,964,272|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:09:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_6_0/unix-time.md b/v20/v20_6_0/unix-time.md deleted file mode 100644 index f0258870..00000000 --- a/v20/v20_6_0/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,216,093|97| -|Date.now()|25,092,105|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:16:16 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/add-property.md b/v20/v20_7_0/add-property.md deleted file mode 100644 index 88539286..00000000 --- a/v20/v20_7_0/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|852,449,418|96| -|Using dot notation|853,526,935|99| -|Using define property (writable)|4,775,186|96| -|Using define property initialized (writable)|6,443,108|95| -|Using define property (getter)|2,483,856|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:55:24 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/array-append.md b/v20/v20_7_0/array-append.md deleted file mode 100644 index 43b6855f..00000000 --- a/v20/v20_7_0/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.023ms -new Array(length)|100|0.007ms -array.push|1,000|0.047ms -new Array(length)|1,000|0.026ms -array.push|10,000|0.311ms -new Array(length)|10,000|0.322ms -array.push|1,000,000|30.6ms -new Array(length)|1,000,000|7.318ms -array.push|100,000,000|1,745.578ms -new Array(length)|100,000,000|4,219.819ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.009ms -new Array(length)|10|0.016ms -array.push|100|0.013ms -new Array(length)|100|0.01ms -array.push|1,000|0.03ms -new Array(length)|1,000|0.013ms -array.push|10,000|0.227ms -new Array(length)|10,000|0.237ms -array.push|1,000,000|22.495ms -new Array(length)|1,000,000|4.151ms -array.push|100,000,000|2,491.633ms -new Array(length)|100,000,000|3,916.569ms diff --git a/v20/v20_7_0/array-creation.md b/v20/v20_7_0/array-creation.md deleted file mode 100644 index 8fe1768d..00000000 --- a/v20/v20_7_0/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|312|88| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:10:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/async-function-vs-function.md b/v20/v20_7_0/async-function-vs-function.md deleted file mode 100644 index 1cb01382..00000000 --- a/v20/v20_7_0/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,533,035|100| -|[async] async function|17,914,079|84| -|[async] function|184,520|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:17:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/blob.md b/v20/v20_7_0/blob.md deleted file mode 100644 index 2272fe09..00000000 --- a/v20/v20_7_0/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,590|85| -|new Blob (1024)|587|74| -|text (128)|4,946|85| -|text (1024)|624|89| -|arrayBuffer (128)|4,962|88| -|arrayBuffer (1024)|625|89| -|slice (0, 64)|70,993|72| -|slice (0, 512)|18,712|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:31:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/compare-using-instanceof.md b/v20/v20_7_0/compare-using-instanceof.md deleted file mode 100644 index ff557f92..00000000 --- a/v20/v20_7_0/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|227,863|52| -|[True conditional] Using constructor name|180,522|97| -|[True conditional] Check if property is valid then instanceof |180,180|94| -|[False conditional] Using instanceof only|855,347,893|97| -|[False conditional] Using constructor name|855,649,052|96| -|[False conditional] Check if property is valid then instanceof |856,062,244|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:42:42 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/crypto-verify.md b/v20/v20_7_0/crypto-verify.md deleted file mode 100644 index 412206fb..00000000 --- a/v20/v20_7_0/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,731|96| -|crypto.verify('RSA-SHA256')|6,780|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:54:07 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/date-format-iso.md b/v20/v20_7_0/date-format-iso.md deleted file mode 100644 index 429f94db..00000000 --- a/v20/v20_7_0/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,492,315|100| -|fromUnixToISOString(new Date())|2,153,749|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:04:04 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/date-format.md b/v20/v20_7_0/date-format.md deleted file mode 100644 index bba85639..00000000 --- a/v20/v20_7_0/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,401|85| -|Intl.DateTimeFormat().format(new Date())|17,987|80| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|18,725|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,633|84| -|Reusing Intl.DateTimeFormat()|678,990|96| -|Date.toLocaleDateString()|735,723|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,825|89| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:15:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/date-string-coersion.md b/v20/v20_7_0/date-string-coersion.md deleted file mode 100644 index 118ce1a2..00000000 --- a/v20/v20_7_0/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,070,745|95| -|Using brackets {}|1,102,085|99| -|Using '' + |1,092,398|98| -|Using date.toString()|1,201,451|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:27:15 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/deleting-properties.md b/v20/v20_7_0/deleting-properties.md deleted file mode 100644 index 8f90b314..00000000 --- a/v20/v20_7_0/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|4,002,394|94| -|Using delete property (proto: null)|21,570,353|98| -|Using delete property (cached proto: null)|4,052,005|96| -|Using undefined assignment|851,874,978|100| -|Using undefined assignment (proto: null)|23,062,112|96| -|Using undefined property (cached proto: null)|850,982,147|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:38:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/error.md b/v20/v20_7_0/error.md deleted file mode 100644 index c7937e07..00000000 --- a/v20/v20_7_0/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|224,374|53| -|NodeError|179,191|95| -|NodeError Range|180,363|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:47:06 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/function-return.md b/v20/v20_7_0/function-return.md deleted file mode 100644 index 0cbbb867..00000000 --- a/v20/v20_7_0/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,932,412|94| -|Function returning explicitly undefined|1,924,070|95| -|Function returning implicitly undefined|1,981,217|96| -|Function returning string|1,834,648|93| -|Function returning integer|1,965,117|97| -|Function returning float|1,947,204|96| -|Function returning functions|1,895,626|94| -|Function returning arrow functions|1,901,793|95| -|Function returning empty object|1,953,149|97| -|Function returning empty array|1,953,335|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:05:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/includes-vs-raw-comparison.md b/v20/v20_7_0/includes-vs-raw-comparison.md deleted file mode 100644 index 5394c7a8..00000000 --- a/v20/v20_7_0/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|848,828,293|97| -|using Array.includes (first item)|852,244,473|97| -|Using raw comparison|852,668,252|98| -|Using raw comparison (first item)|852,088,124|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:17:31 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/keys-vs-getownpropertynames.md b/v20/v20_7_0/keys-vs-getownpropertynames.md deleted file mode 100644 index 31d54242..00000000 --- a/v20/v20_7_0/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|91,327,229|94| -|Using Object.getOwnPropertyNames()|94,628,427|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/last-array-item.md b/v20/v20_7_0/last-array-item.md deleted file mode 100644 index b039a244..00000000 --- a/v20/v20_7_0/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|848,840,778|94| -|Length = 10_000 - Array.at|851,459,451|98| -|Length = 1_000_000 - Array.at|851,943,368|98| -|Length = 100 - Array[length - 1]|851,285,877|100| -|Length = 10_000 - Array[length - 1]|853,406,353|99| -|Length = 1_000_000 - Array[length - 1]|852,552,713|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:39:21 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/object-creation.md b/v20/v20_7_0/object-creation.md deleted file mode 100644 index 9b4824a0..00000000 --- a/v20/v20_7_0/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,922,345|97| -|Object.create({})|2,561,430|87| -|Cached Empty.prototype|853,794,574|99| -|Empty.prototype|2,462,674|87| -|Empty class|1,545,426|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:50:59 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/optional-chain-vs-and-operator.md b/v20/v20_7_0/optional-chain-vs-and-operator.md deleted file mode 100644 index b91ea6c8..00000000 --- a/v20/v20_7_0/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|852,296,980|97| -|Using optional chain (obj.field?.field2) (undefined)|851,462,995|97| -|Using and operator (obj.field && obj.field.field2) (Valid)|850,847,516|94| -|Using and operator (obj.field && obj.field.field2) (undefined)|852,256,213|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:01:35 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/parse-int.md b/v20/v20_7_0/parse-int.md deleted file mode 100644 index d2de51c5..00000000 --- a/v20/v20_7_0/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|852,198,667|95| -|Using parseInt(x, 10) - big number (10 len)|854,326,436|96| -|Using + - small number (2 len)|853,647,008|97| -|Using + - big number (10 len)|853,033,099|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:11:42 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/possible-undefined-function.md b/v20/v20_7_0/possible-undefined-function.md deleted file mode 100644 index e7e9154b..00000000 --- a/v20/v20_7_0/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,313,411|76| -|Using ? operator to avoid rejection|1,403,340|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:18:59 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/private-property.md b/v20/v20_7_0/private-property.md deleted file mode 100644 index 4696f0f5..00000000 --- a/v20/v20_7_0/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|847,676,250|98| -|Raw usage underscore usage|850,325,431|94| -|Manipulating private properties using #|840,672,947|98| -|Manipulating private properties using underscore(_)|841,694,265|90| -|Manipulating private properties using Symbol|839,963,651|89| -|Manipulating private properties using PrivateSymbol|57,238,123|93| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:30:11 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/property-access-transition.md b/v20/v20_7_0/property-access-transition.md deleted file mode 100644 index 5e320d08..00000000 --- a/v20/v20_7_0/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,349,103|96| -|Adding property in the object creation - small object|8,503,698|98| -|Adding property after the function creation - small class|261,654|89| -|Adding property in the function creation - small class|262,058|92| -|Adding property after the class creation - small class|219,086|87| -|Adding property in the class creation - small class|218,033|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:43:01 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/property-getter-access.md b/v20/v20_7_0/property-getter-access.md deleted file mode 100644 index d5c25bb9..00000000 --- a/v20/v20_7_0/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|852,623,855|96| -|Getter|95,083,405|97| -|Method|853,109,714|99| -|DefineProperty (getter)|853,315,778|98| -|DefineProperty (getter & enumerable=false)|95,195,019|99| -|DefineProperty (getter & configurable=false)|855,517,827|100| -|DefineProperty (getter & enumerable=false & configurable=false)|95,280,246|94| -|DefineProperty (writable)|855,435,724|100| -|DefineProperty (writable & enumerable=false)|856,014,168|99| -|DefineProperty (writable & enumerable=false & configurable=false)|855,459,946|99| -|DefineProperties (getter)|94,807,837|94| -|DefineProperties (getter & enumerable=false)|95,461,288|96| -|DefineProperties (getter & enumerable=false & configurable=false)|65,228,093|69| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:02:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/property-setter-access.md b/v20/v20_7_0/property-setter-access.md deleted file mode 100644 index 037c5257..00000000 --- a/v20/v20_7_0/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|842,224,971|100| -|Setter|12,475,311|99| -|Method|847,445,309|98| -|DefineProperty (setter)|846,336,888|98| -|DefineProperty (setter & enumerable=false)|12,304,369|96| -|DefineProperty (setter & configurable=false)|12,347,672|95| -|DefineProperty (setter & enumerable=false & configurable=false)|12,170,501|98| -|DefineProperty (writable)|847,340,716|98| -|DefineProperty (writable & enumerable=false)|849,009,656|98| -|DefineProperty (writable & enumerable=false & configurable=false)|847,564,754|99| -|DefineProperties (setter)|848,767,483|100| -|DefineProperties (setter & enumerable=false)|12,094,112|100| -|DefineProperties (setter & enumerable=false & configurable=false)|11,045,309|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:23:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/replace-vs-replaceall-comparison.md b/v20/v20_7_0/replace-vs-replaceall-comparison.md deleted file mode 100644 index 9876fd25..00000000 --- a/v20/v20_7_0/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,741,097|94| -|Using replaceAll()|3,183,231|99| -|Using replaceAll(//g)|3,381,807|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:38:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/shallow-copy.md b/v20/v20_7_0/shallow-copy.md deleted file mode 100644 index a4f0b73a..00000000 --- a/v20/v20_7_0/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,669,233|92| -|{ ...object, __proto__: null }|30,411,530|98| -|{ ...object, newProp: true }|923,761|89| -|structuredClone|270,214|96| -|JSON.parse + JSON.stringify|206,021|91| -|loop + object.keys starting with {}|1,647,349|99| -|loop + object.keys starting with { __proto__: null }|915,537|92| -|loop + object.keys starting with { randomProp: true }|656,722|95| -|object.keys + reduce(FN, {})|641,138|97| -|object.keys + reduce(FN, { __proto__: null })|925,154|97| -|object.keys + reduce(FN, { newProp: true })|655,794|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:54:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/sort-map.md b/v20/v20_7_0/sort-map.md deleted file mode 100644 index 19de15d2..00000000 --- a/v20/v20_7_0/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|273,871|95| -|Sort using first char|1,474,779|98| -|Sort using localeCompare|1,314,136|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:04:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/spread-vs-object-assign.md b/v20/v20_7_0/spread-vs-object-assign.md deleted file mode 100644 index 6e5668ca..00000000 --- a/v20/v20_7_0/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,060|96| -|{...smallObject} - Total keys: 2|112,805,929|99| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,181|96| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,323|99| -|{ ...bigObject, ...anotherBigObject }|1,238|96| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,396,664|98| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,162,111|96| -|{ ...smallObject, ...anotherSmallObject }|25,855,699|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:17:22 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/stream-readable.md b/v20/v20_7_0/stream-readable.md deleted file mode 100644 index e2fd8c79..00000000 --- a/v20/v20_7_0/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,683|88| -|streams.web.Readable reading 1e3 * "some data"|688|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:27:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/stream-writable.md b/v20/v20_7_0/stream-writable.md deleted file mode 100644 index dcc04df7..00000000 --- a/v20/v20_7_0/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,781|93| -|streams.web.WritableStream writing 1e3 * "some data"|1,085|38| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:36:41 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/string-concat.md b/v20/v20_7_0/string-concat.md deleted file mode 100644 index 747da351..00000000 --- a/v20/v20_7_0/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|853,116,572|98| -|Using backtick (`)|854,425,680|98| -|Using array.join|12,733,315|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:45:21 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/string-searching.md b/v20/v20_7_0/string-searching.md deleted file mode 100644 index 065071b6..00000000 --- a/v20/v20_7_0/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|853,850,464|95| -|Using indexof|854,482,238|94| -|Using RegExp.test|16,330,360|100| -|Using RegExp.text with cached regex pattern|16,973,178|100| -|Using new RegExp.test|4,723,561|95| -|Using new RegExp.test with cached regex pattern|5,557,986|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:57:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/super-vs-this.md b/v20/v20_7_0/super-vs-this.md deleted file mode 100644 index 130591ca..00000000 --- a/v20/v20_7_0/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|849,845,601|96| -|Using this|851,491,782|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:09:49 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_7_0/unix-time.md b/v20/v20_7_0/unix-time.md deleted file mode 100644 index 199948bb..00000000 --- a/v20/v20_7_0/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,495,724|93| -|Date.now()|25,346,901|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:17:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/add-property.md b/v20/v20_8_0/add-property.md deleted file mode 100644 index b0d725ff..00000000 --- a/v20/v20_8_0/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|854,433,469|98| -|Using dot notation|853,901,011|98| -|Using define property (writable)|4,701,078|99| -|Using define property initialized (writable)|6,427,858|93| -|Using define property (getter)|2,446,968|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:56:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/array-append.md b/v20/v20_8_0/array-append.md deleted file mode 100644 index ecef8b11..00000000 --- a/v20/v20_8_0/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.025ms -new Array(length)|100|0.009ms -array.push|1,000|0.047ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.308ms -new Array(length)|10,000|0.326ms -array.push|1,000,000|30.506ms -new Array(length)|1,000,000|6.188ms -array.push|100,000,000|1,760.289ms -new Array(length)|100,000,000|4,266.606ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.017ms -array.push|100|0.04ms -new Array(length)|100|0.009ms -array.push|1,000|0.029ms -new Array(length)|1,000|0.012ms -array.push|10,000|0.23ms -new Array(length)|10,000|0.154ms -array.push|1,000,000|24.729ms -new Array(length)|1,000,000|4.411ms -array.push|100,000,000|2,530.998ms -new Array(length)|100,000,000|3,969.442ms diff --git a/v20/v20_8_0/array-creation.md b/v20/v20_8_0/array-creation.md deleted file mode 100644 index be16582c..00000000 --- a/v20/v20_8_0/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|311|88| -|Array.from|24|43| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:11:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/async-function-vs-function.md b/v20/v20_8_0/async-function-vs-function.md deleted file mode 100644 index 0b00bc34..00000000 --- a/v20/v20_8_0/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|854,334,817|99| -|[async] async function|18,183,679|86| -|[async] function|153,308|16| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:18:24 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/blob.md b/v20/v20_8_0/blob.md deleted file mode 100644 index 9a6c0ab2..00000000 --- a/v20/v20_8_0/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,574|83| -|new Blob (1024)|579|75| -|text (128)|5,053|87| -|text (1024)|630|86| -|arrayBuffer (128)|5,037|88| -|arrayBuffer (1024)|631|87| -|slice (0, 64)|69,950|68| -|slice (0, 512)|18,842|65| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:32:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/compare-using-instanceof.md b/v20/v20_8_0/compare-using-instanceof.md deleted file mode 100644 index d49e0afa..00000000 --- a/v20/v20_8_0/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|234,813|57| -|[True conditional] Using constructor name|185,896|100| -|[True conditional] Check if property is valid then instanceof |183,416|92| -|[False conditional] Using instanceof only|854,163,120|98| -|[False conditional] Using constructor name|854,901,278|97| -|[False conditional] Check if property is valid then instanceof |855,250,372|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:44:38 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/crypto-verify.md b/v20/v20_8_0/crypto-verify.md deleted file mode 100644 index 5c032435..00000000 --- a/v20/v20_8_0/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,780|94| -|crypto.verify('RSA-SHA256')|6,817|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:54:55 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/date-format-iso.md b/v20/v20_8_0/date-format-iso.md deleted file mode 100644 index 4ecca976..00000000 --- a/v20/v20_8_0/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,454,549|98| -|fromUnixToISOString(new Date())|2,243,153|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:04:31 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/date-format.md b/v20/v20_8_0/date-format.md deleted file mode 100644 index 81d400d6..00000000 --- a/v20/v20_8_0/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|18,442|81| -|Intl.DateTimeFormat().format(new Date())|19,819|87| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|17,139|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,562|82| -|Reusing Intl.DateTimeFormat()|728,437|96| -|Date.toLocaleDateString()|744,237|94| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,566|82| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:16:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/date-string-coersion.md b/v20/v20_8_0/date-string-coersion.md deleted file mode 100644 index 0a56f573..00000000 --- a/v20/v20_8_0/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,072,743|98| -|Using brackets {}|1,099,115|94| -|Using '' + |1,091,622|94| -|Using date.toString()|1,193,952|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:27:52 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/deleting-properties.md b/v20/v20_8_0/deleting-properties.md deleted file mode 100644 index 756a2dd4..00000000 --- a/v20/v20_8_0/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,920,033|95| -|Using delete property (proto: null)|20,299,604|95| -|Using delete property (cached proto: null)|3,939,913|98| -|Using undefined assignment|852,389,898|99| -|Using undefined assignment (proto: null)|21,898,293|89| -|Using undefined property (cached proto: null)|848,711,958|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:39:30 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/error.md b/v20/v20_8_0/error.md deleted file mode 100644 index 19d06679..00000000 --- a/v20/v20_8_0/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|226,558|54| -|NodeError|180,254|95| -|NodeError Range|180,782|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:48:31 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/function-return.md b/v20/v20_8_0/function-return.md deleted file mode 100644 index ee53d573..00000000 --- a/v20/v20_8_0/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,721,512|95| -|Function returning explicitly undefined|1,692,009|99| -|Function returning implicitly undefined|1,751,157|96| -|Function returning string|1,679,047|95| -|Function returning integer|1,705,659|97| -|Function returning float|1,735,915|99| -|Function returning functions|1,681,637|99| -|Function returning arrow functions|1,718,075|96| -|Function returning empty object|1,740,545|98| -|Function returning empty array|1,741,806|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:06:42 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/includes-vs-raw-comparison.md b/v20/v20_8_0/includes-vs-raw-comparison.md deleted file mode 100644 index 51c696eb..00000000 --- a/v20/v20_8_0/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|850,808,372|98| -|using Array.includes (first item)|853,312,250|94| -|Using raw comparison|854,099,059|96| -|Using raw comparison (first item)|852,743,586|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:18:43 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/keys-vs-getownpropertynames.md b/v20/v20_8_0/keys-vs-getownpropertynames.md deleted file mode 100644 index a6fcc0de..00000000 --- a/v20/v20_8_0/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|91,571,455|90| -|Using Object.getOwnPropertyNames()|95,983,081|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/last-array-item.md b/v20/v20_8_0/last-array-item.md deleted file mode 100644 index d53fe52c..00000000 --- a/v20/v20_8_0/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|847,843,638|98| -|Length = 10_000 - Array.at|850,894,155|96| -|Length = 1_000_000 - Array.at|850,301,338|96| -|Length = 100 - Array[length - 1]|852,497,145|101| -|Length = 10_000 - Array[length - 1]|854,689,460|96| -|Length = 1_000_000 - Array[length - 1]|853,878,402|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:41:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/object-creation.md b/v20/v20_8_0/object-creation.md deleted file mode 100644 index 054a3403..00000000 --- a/v20/v20_8_0/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,348,788|90| -|Object.create({})|2,518,993|85| -|Cached Empty.prototype|852,004,103|100| -|Empty.prototype|2,370,380|91| -|Empty class|1,523,352|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:52:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/optional-chain-vs-and-operator.md b/v20/v20_8_0/optional-chain-vs-and-operator.md deleted file mode 100644 index 6eafb457..00000000 --- a/v20/v20_8_0/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|851,678,475|98| -|Using optional chain (obj.field?.field2) (undefined)|854,681,667|92| -|Using and operator (obj.field && obj.field.field2) (Valid)|853,718,512|88| -|Using and operator (obj.field && obj.field.field2) (undefined)|853,404,078|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:02:11 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/parse-int.md b/v20/v20_8_0/parse-int.md deleted file mode 100644 index 1bb060c4..00000000 --- a/v20/v20_8_0/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|853,033,140|95| -|Using parseInt(x, 10) - big number (10 len)|855,061,589|97| -|Using + - small number (2 len)|855,268,702|93| -|Using + - big number (10 len)|854,848,382|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:12:22 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/possible-undefined-function.md b/v20/v20_8_0/possible-undefined-function.md deleted file mode 100644 index e18c9ef1..00000000 --- a/v20/v20_8_0/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,207,038|80| -|Using ? operator to avoid rejection|1,257,396|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:19:49 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/private-property.md b/v20/v20_8_0/private-property.md deleted file mode 100644 index 3ac8c66e..00000000 --- a/v20/v20_8_0/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|850,222,327|95| -|Raw usage underscore usage|848,941,323|99| -|Manipulating private properties using #|841,188,750|95| -|Manipulating private properties using underscore(_)|841,043,647|101| -|Manipulating private properties using Symbol|840,534,835|92| -|Manipulating private properties using PrivateSymbol|56,301,112|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:31:54 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/property-access-transition.md b/v20/v20_8_0/property-access-transition.md deleted file mode 100644 index bcca6dd7..00000000 --- a/v20/v20_8_0/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,417,795|96| -|Adding property in the object creation - small object|8,546,162|97| -|Adding property after the function creation - small class|257,741|87| -|Adding property in the function creation - small class|262,963|90| -|Adding property after the class creation - small class|221,161|88| -|Adding property in the class creation - small class|219,880|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:43:48 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/property-getter-access.md b/v20/v20_8_0/property-getter-access.md deleted file mode 100644 index c019d93a..00000000 --- a/v20/v20_8_0/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|854,196,076|96| -|Getter|95,030,755|98| -|Method|854,771,988|100| -|DefineProperty (getter)|854,593,544|99| -|DefineProperty (getter & enumerable=false)|94,873,260|97| -|DefineProperty (getter & configurable=false)|855,328,379|97| -|DefineProperty (getter & enumerable=false & configurable=false)|94,662,920|95| -|DefineProperty (writable)|856,349,794|100| -|DefineProperty (writable & enumerable=false)|509,249,354|63| -|DefineProperty (writable & enumerable=false & configurable=false)|125,903,722|80| -|DefineProperties (getter)|57,995,047|91| -|DefineProperties (getter & enumerable=false)|95,035,951|97| -|DefineProperties (getter & enumerable=false & configurable=false)|95,165,621|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:06:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/property-setter-access.md b/v20/v20_8_0/property-setter-access.md deleted file mode 100644 index ad4bbcd2..00000000 --- a/v20/v20_8_0/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|838,422,704|99| -|Setter|12,817,029|100| -|Method|847,616,361|95| -|DefineProperty (setter)|819,832,036|96| -|DefineProperty (setter & enumerable=false)|12,641,929|99| -|DefineProperty (setter & configurable=false)|12,346,945|97| -|DefineProperty (setter & enumerable=false & configurable=false)|12,630,247|94| -|DefineProperty (writable)|848,170,039|100| -|DefineProperty (writable & enumerable=false)|848,406,651|98| -|DefineProperty (writable & enumerable=false & configurable=false)|820,590,484|96| -|DefineProperties (setter)|850,064,358|101| -|DefineProperties (setter & enumerable=false)|12,367,497|100| -|DefineProperties (setter & enumerable=false & configurable=false)|11,511,277|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:26:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/replace-vs-replaceall-comparison.md b/v20/v20_8_0/replace-vs-replaceall-comparison.md deleted file mode 100644 index 8ee9bef1..00000000 --- a/v20/v20_8_0/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,740,082|96| -|Using replaceAll()|3,270,415|97| -|Using replaceAll(//g)|3,381,100|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:39:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/shallow-copy.md b/v20/v20_8_0/shallow-copy.md deleted file mode 100644 index 24600870..00000000 --- a/v20/v20_8_0/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,104,866|94| -|{ ...object, __proto__: null }|29,742,767|94| -|{ ...object, newProp: true }|887,566|89| -|structuredClone|265,584|93| -|JSON.parse + JSON.stringify|208,699|100| -|loop + object.keys starting with {}|1,661,262|93| -|loop + object.keys starting with { __proto__: null }|874,728|95| -|loop + object.keys starting with { randomProp: true }|637,673|99| -|object.keys + reduce(FN, {})|608,708|95| -|object.keys + reduce(FN, { __proto__: null })|898,272|96| -|object.keys + reduce(FN, { newProp: true })|641,796|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:55:31 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/sort-map.md b/v20/v20_8_0/sort-map.md deleted file mode 100644 index abf7e2a9..00000000 --- a/v20/v20_8_0/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|273,285|89| -|Sort using first char|1,477,178|94| -|Sort using localeCompare|1,243,572|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:05:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/spread-vs-object-assign.md b/v20/v20_8_0/spread-vs-object-assign.md deleted file mode 100644 index 043b9b5b..00000000 --- a/v20/v20_8_0/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,063|93| -|{...smallObject} - Total keys: 2|112,441,528|98| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,176|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,479|100| -|{ ...bigObject, ...anotherBigObject }|1,238|96| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,311,938|96| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|38,198,080|96| -|{ ...smallObject, ...anotherSmallObject }|25,714,171|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:19:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/stream-readable.md b/v20/v20_8_0/stream-readable.md deleted file mode 100644 index 5e20bfd2..00000000 --- a/v20/v20_8_0/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,613|85| -|streams.web.Readable reading 1e3 * "some data"|2,441|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:28:21 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/stream-writable.md b/v20/v20_8_0/stream-writable.md deleted file mode 100644 index 152dafb7..00000000 --- a/v20/v20_8_0/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,927|95| -|streams.web.WritableStream writing 1e3 * "some data"|1,045|36| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:37:51 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/string-concat.md b/v20/v20_8_0/string-concat.md deleted file mode 100644 index bde7cc99..00000000 --- a/v20/v20_8_0/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|852,918,738|93| -|Using backtick (`)|854,845,242|98| -|Using array.join|12,377,131|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:45:54 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/string-searching.md b/v20/v20_8_0/string-searching.md deleted file mode 100644 index 54e9a7b2..00000000 --- a/v20/v20_8_0/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|854,108,534|100| -|Using indexof|853,468,205|94| -|Using RegExp.test|16,362,688|95| -|Using RegExp.text with cached regex pattern|17,117,795|99| -|Using new RegExp.test|4,735,720|99| -|Using new RegExp.test with cached regex pattern|5,642,908|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:58:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/super-vs-this.md b/v20/v20_8_0/super-vs-this.md deleted file mode 100644 index f76e9ad5..00000000 --- a/v20/v20_8_0/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|849,343,547|96| -|Using this|850,146,366|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:10:41 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_8_0/unix-time.md b/v20/v20_8_0/unix-time.md deleted file mode 100644 index cb80b22f..00000000 --- a/v20/v20_8_0/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|11,592,512|92| -|Date.now()|22,068,931|88| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:18:26 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/add-property.md b/v20/v20_9_0/add-property.md deleted file mode 100644 index cc2e51d9..00000000 --- a/v20/v20_9_0/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|851,030,980|99| -|Using dot notation|849,606,269|99| -|Using define property (writable)|4,635,975|97| -|Using define property initialized (writable)|6,299,871|91| -|Using define property (getter)|2,426,185|92| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:17:06 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/array-append.md b/v20/v20_9_0/array-append.md deleted file mode 100644 index 5f228135..00000000 --- a/v20/v20_9_0/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.013ms -new Array(length)|10|0.002ms -array.push|100|0.028ms -new Array(length)|100|0.01ms -array.push|1,000|0.044ms -new Array(length)|1,000|0.024ms -array.push|10,000|0.317ms -new Array(length)|10,000|0.343ms -array.push|1,000,000|33.177ms -new Array(length)|1,000,000|6.811ms -array.push|100,000,000|1,818.088ms -new Array(length)|100,000,000|4,474.176ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.008ms -new Array(length)|10|0.016ms -array.push|100|0.04ms -new Array(length)|100|0.009ms -array.push|1,000|0.028ms -new Array(length)|1,000|0.013ms -array.push|10,000|0.235ms -new Array(length)|10,000|0.158ms -array.push|1,000,000|23.289ms -new Array(length)|1,000,000|4.211ms -array.push|100,000,000|2,532.884ms -new Array(length)|100,000,000|4,145.757ms diff --git a/v20/v20_9_0/array-creation.md b/v20/v20_9_0/array-creation.md deleted file mode 100644 index 012b0711..00000000 --- a/v20/v20_9_0/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|270|86| -|Array.from|23|43| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:19:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/async-function-vs-function.md b/v20/v20_9_0/async-function-vs-function.md deleted file mode 100644 index 21192725..00000000 --- a/v20/v20_9_0/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|850,647,827|95| -|[async] async function|17,497,258|87| -|[async] function|170,577|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:20:17 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/blob.md b/v20/v20_9_0/blob.md deleted file mode 100644 index 68d99cc4..00000000 --- a/v20/v20_9_0/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,541|85| -|new Blob (1024)|585|78| -|text (128)|4,854|83| -|text (1024)|614|86| -|arrayBuffer (128)|4,784|83| -|arrayBuffer (1024)|620|86| -|slice (0, 64)|67,190|69| -|slice (0, 512)|19,638|63| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:21:54 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/compare-using-instanceof.md b/v20/v20_9_0/compare-using-instanceof.md deleted file mode 100644 index 4f0e5e80..00000000 --- a/v20/v20_9_0/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|229,336|50| -|[True conditional] Using constructor name|179,654|94| -|[True conditional] Check if property is valid then instanceof |181,405|96| -|[False conditional] Using instanceof only|852,049,857|94| -|[False conditional] Using constructor name|851,488,337|98| -|[False conditional] Check if property is valid then instanceof |852,854,621|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:23:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/crypto-verify.md b/v20/v20_9_0/crypto-verify.md deleted file mode 100644 index 5a76277d..00000000 --- a/v20/v20_9_0/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,776|96| -|crypto.verify('RSA-SHA256')|6,714|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:24:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/date-format-iso.md b/v20/v20_9_0/date-format-iso.md deleted file mode 100644 index 1fc39cc1..00000000 --- a/v20/v20_9_0/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,549,112|97| -|fromUnixToISOString(new Date())|2,270,537|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:25:27 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/date-format.md b/v20/v20_9_0/date-format.md deleted file mode 100644 index 881395a7..00000000 --- a/v20/v20_9_0/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|19,129|85| -|Intl.DateTimeFormat().format(new Date())|19,820|77| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|21,547|83| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|21,626|83| -|Reusing Intl.DateTimeFormat()|620,552|95| -|Date.toLocaleDateString()|714,838|94| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|19,786|86| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:26:58 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/date-string-coersion.md b/v20/v20_9_0/date-string-coersion.md deleted file mode 100644 index 3a9d7bb9..00000000 --- a/v20/v20_9_0/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,068,925|97| -|Using brackets {}|1,098,834|99| -|Using '' + |1,098,285|93| -|Using date.toString()|1,220,889|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:28:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/deleting-properties.md b/v20/v20_9_0/deleting-properties.md deleted file mode 100644 index c300bd3f..00000000 --- a/v20/v20_9_0/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|3,903,124|98| -|Using delete property (proto: null)|21,229,518|97| -|Using delete property (cached proto: null)|3,917,481|99| -|Using undefined assignment|849,215,040|100| -|Using undefined assignment (proto: null)|21,785,239|99| -|Using undefined property (cached proto: null)|845,790,480|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:29:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/error.md b/v20/v20_9_0/error.md deleted file mode 100644 index f3dea1b9..00000000 --- a/v20/v20_9_0/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|222,363|53| -|NodeError|176,965|96| -|NodeError Range|177,255|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:30:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/function-return.md b/v20/v20_9_0/function-return.md deleted file mode 100644 index 2cfa7427..00000000 --- a/v20/v20_9_0/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|1,677,033|97| -|Function returning explicitly undefined|1,667,984|95| -|Function returning implicitly undefined|1,671,230|96| -|Function returning string|1,640,009|96| -|Function returning integer|1,693,062|100| -|Function returning float|1,673,988|95| -|Function returning functions|1,632,028|95| -|Function returning arrow functions|1,652,020|97| -|Function returning empty object|1,692,810|96| -|Function returning empty array|1,659,884|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:32:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/includes-vs-raw-comparison.md b/v20/v20_9_0/includes-vs-raw-comparison.md deleted file mode 100644 index 24ab8cb7..00000000 --- a/v20/v20_9_0/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|849,527,945|98| -|using Array.includes (first item)|849,391,229|96| -|Using raw comparison|852,285,935|100| -|Using raw comparison (first item)|851,152,348|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:33:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/keys-vs-getownpropertynames.md b/v20/v20_9_0/keys-vs-getownpropertynames.md deleted file mode 100644 index 71c3b0d0..00000000 --- a/v20/v20_9_0/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|92,433,883|89| -|Using Object.getOwnPropertyNames()|93,472,185|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:34:27 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/last-array-item.md b/v20/v20_9_0/last-array-item.md deleted file mode 100644 index 86bc4735..00000000 --- a/v20/v20_9_0/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|847,383,904|97| -|Length = 10_000 - Array.at|848,069,329|99| -|Length = 1_000_000 - Array.at|848,824,299|100| -|Length = 100 - Array[length - 1]|850,082,862|98| -|Length = 10_000 - Array[length - 1]|850,092,115|100| -|Length = 1_000_000 - Array[length - 1]|849,842,557|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:35:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/object-creation.md b/v20/v20_9_0/object-creation.md deleted file mode 100644 index c30a2bc4..00000000 --- a/v20/v20_9_0/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|78,124,418|95| -|Object.create({})|2,438,311|82| -|Cached Empty.prototype|850,959,605|100| -|Empty.prototype|2,317,550|79| -|Empty class|1,466,105|85| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:37:05 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/optional-chain-vs-and-operator.md b/v20/v20_9_0/optional-chain-vs-and-operator.md deleted file mode 100644 index 8830d5c2..00000000 --- a/v20/v20_9_0/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|850,483,127|98| -|Using optional chain (obj.field?.field2) (undefined)|851,701,944|98| -|Using and operator (obj.field && obj.field.field2) (Valid)|851,758,107|97| -|Using and operator (obj.field && obj.field.field2) (undefined)|850,979,192|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:38:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/parse-int.md b/v20/v20_9_0/parse-int.md deleted file mode 100644 index d64bbf78..00000000 --- a/v20/v20_9_0/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|851,012,869|98| -|Using parseInt(x, 10) - big number (10 len)|851,531,280|95| -|Using + - small number (2 len)|852,157,458|96| -|Using + - big number (10 len)|851,373,196|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:39:37 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/possible-undefined-function.md b/v20/v20_9_0/possible-undefined-function.md deleted file mode 100644 index 57d1c342..00000000 --- a/v20/v20_9_0/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,111,780|82| -|Using ? operator to avoid rejection|1,179,038|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:40:35 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/private-property.md b/v20/v20_9_0/private-property.md deleted file mode 100644 index 2045ccbc..00000000 --- a/v20/v20_9_0/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|845,565,067|94| -|Raw usage underscore usage|847,970,393|97| -|Manipulating private properties using #|838,153,266|100| -|Manipulating private properties using underscore(_)|839,673,832|97| -|Manipulating private properties using Symbol|839,047,145|94| -|Manipulating private properties using PrivateSymbol|55,528,039|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:42:10 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/property-access-transition.md b/v20/v20_9_0/property-access-transition.md deleted file mode 100644 index 67d4d787..00000000 --- a/v20/v20_9_0/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,453,683|92| -|Adding property in the object creation - small object|8,501,750|94| -|Adding property after the function creation - small class|253,389|89| -|Adding property in the function creation - small class|260,543|91| -|Adding property after the class creation - small class|220,891|87| -|Adding property in the class creation - small class|215,513|86| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:43:29 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/property-getter-access.md b/v20/v20_9_0/property-getter-access.md deleted file mode 100644 index c9a6172b..00000000 --- a/v20/v20_9_0/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|850,306,210|99| -|Getter|94,727,194|97| -|Method|850,738,537|97| -|DefineProperty (getter)|851,055,231|97| -|DefineProperty (getter & enumerable=false)|94,768,870|96| -|DefineProperty (getter & configurable=false)|851,568,377|98| -|DefineProperty (getter & enumerable=false & configurable=false)|94,565,844|96| -|DefineProperty (writable)|851,144,449|100| -|DefineProperty (writable & enumerable=false)|852,411,137|99| -|DefineProperty (writable & enumerable=false & configurable=false)|394,520,868|49| -|DefineProperties (getter)|57,754,757|90| -|DefineProperties (getter & enumerable=false)|94,905,580|97| -|DefineProperties (getter & enumerable=false & configurable=false)|94,783,366|94| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:45:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/property-setter-access.md b/v20/v20_9_0/property-setter-access.md deleted file mode 100644 index 4efad40e..00000000 --- a/v20/v20_9_0/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|840,398,386|97| -|Setter|12,523,903|99| -|Method|843,324,101|98| -|DefineProperty (setter)|840,220,471|99| -|DefineProperty (setter & enumerable=false)|12,657,038|99| -|DefineProperty (setter & configurable=false)|12,839,287|96| -|DefineProperty (setter & enumerable=false & configurable=false)|12,738,305|99| -|DefineProperty (writable)|845,442,571|100| -|DefineProperty (writable & enumerable=false)|845,316,357|98| -|DefineProperty (writable & enumerable=false & configurable=false)|842,969,500|96| -|DefineProperties (setter)|845,814,773|98| -|DefineProperties (setter & enumerable=false)|11,865,508|94| -|DefineProperties (setter & enumerable=false & configurable=false)|11,581,846|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:47:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/replace-vs-replaceall-comparison.md b/v20/v20_9_0/replace-vs-replaceall-comparison.md deleted file mode 100644 index 477bd514..00000000 --- a/v20/v20_9_0/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,725,190|94| -|Using replaceAll()|3,164,255|95| -|Using replaceAll(//g)|3,344,270|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:48:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/shallow-copy.md b/v20/v20_9_0/shallow-copy.md deleted file mode 100644 index 757b8263..00000000 --- a/v20/v20_9_0/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|29,147,108|96| -|{ ...object, __proto__: null }|29,682,602|91| -|{ ...object, newProp: true }|887,687|86| -|structuredClone|262,504|99| -|JSON.parse + JSON.stringify|194,441|100| -|loop + object.keys starting with {}|1,575,811|94| -|loop + object.keys starting with { __proto__: null }|781,869|98| -|loop + object.keys starting with { randomProp: true }|573,464|96| -|object.keys + reduce(FN, {})|557,646|97| -|object.keys + reduce(FN, { __proto__: null })|797,217|97| -|object.keys + reduce(FN, { newProp: true })|577,436|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:50:19 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/sort-map.md b/v20/v20_9_0/sort-map.md deleted file mode 100644 index 5906cc4b..00000000 --- a/v20/v20_9_0/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|253,634|97| -|Sort using first char|1,368,565|91| -|Sort using localeCompare|1,187,657|91| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:51:35 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/spread-vs-object-assign.md b/v20/v20_9_0/spread-vs-object-assign.md deleted file mode 100644 index ed52931b..00000000 --- a/v20/v20_9_0/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|1,814|97| -|{...smallObject} - Total keys: 2|103,957,609|92| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|1,095|96| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,557|99| -|{ ...bigObject, ...anotherBigObject }|1,137|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,285,089|99| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|37,978,143|97| -|{ ...smallObject, ...anotherSmallObject }|25,407,507|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:53:08 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/stream-readable.md b/v20/v20_9_0/stream-readable.md deleted file mode 100644 index 1bf5cf50..00000000 --- a/v20/v20_9_0/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,325|86| -|streams.web.Readable reading 1e3 * "some data"|1,992|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:54:34 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/stream-writable.md b/v20/v20_9_0/stream-writable.md deleted file mode 100644 index 43855108..00000000 --- a/v20/v20_9_0/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,687|95| -|streams.web.WritableStream writing 1e3 * "some data"|1,081|49| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:55:54 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/string-concat.md b/v20/v20_9_0/string-concat.md deleted file mode 100644 index ef59c520..00000000 --- a/v20/v20_9_0/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|849,889,886|99| -|Using backtick (`)|851,053,612|98| -|Using array.join|12,557,559|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:57:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/string-searching.md b/v20/v20_9_0/string-searching.md deleted file mode 100644 index c92defde..00000000 --- a/v20/v20_9_0/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|849,717,270|96| -|Using indexof|849,905,304|99| -|Using RegExp.test|15,567,324|100| -|Using RegExp.text with cached regex pattern|16,453,322|97| -|Using new RegExp.test|4,546,446|95| -|Using new RegExp.test with cached regex pattern|5,351,740|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 10:58:52 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/super-vs-this.md b/v20/v20_9_0/super-vs-this.md deleted file mode 100644 index 48cd476d..00000000 --- a/v20/v20_9_0/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|845,594,206|98| -|Using this|848,024,266|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 11:00:12 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v20/v20_9_0/unix-time.md b/v20/v20_9_0/unix-time.md deleted file mode 100644 index 772e27aa..00000000 --- a/v20/v20_9_0/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|12,467,078|93| -|Date.now()|24,274,871|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 11:01:37 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/RESULTS-v21_1_0.md b/v21/RESULTS-v21_1_0.md deleted file mode 100644 index 3a74d199..00000000 --- a/v21/RESULTS-v21_1_0.md +++ /dev/null @@ -1,726 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|847,064,487|91| -|Using dot notation|680,391,326|99| -|Using define property (writable)|4,519,380|96| -|Using define property initialized (writable)|6,443,327|96| -|Using define property (getter)|2,469,749|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:57:20 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.015ms -new Array(length)|10|0.002ms -array.push|100|0.075ms -new Array(length)|100|0.01ms -array.push|1,000|0.037ms -new Array(length)|1,000|0.016ms -array.push|10,000|0.254ms -new Array(length)|10,000|0.155ms -array.push|1,000,000|26.758ms -new Array(length)|1,000,000|6.808ms -array.push|100,000,000|1,705.45ms -new Array(length)|100,000,000|3,579.748ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.003ms -array.push|100|0.019ms -new Array(length)|100|0.013ms -array.push|1,000|0.038ms -new Array(length)|1,000|0.023ms -array.push|10,000|0.334ms -new Array(length)|10,000|0.201ms -array.push|1,000,000|18.851ms -new Array(length)|1,000,000|7.514ms -array.push|100,000,000|1,960.328ms -new Array(length)|100,000,000|4,276.416ms - -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|303|86| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:11:59 GMT+0000 (Coordinated Universal Time) -
- - - -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|847,916,393|98| -|[async] async function|17,488,480|90| -|[async] function|180,264|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:18:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,921|86| -|new Blob (1024)|610|81| -|text (128)|5,018|84| -|text (1024)|636|88| -|arrayBuffer (128)|5,032|85| -|arrayBuffer (1024)|633|87| -|slice (0, 64)|165,197|53| -|slice (0, 512)|35,966|78| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:34:03 GMT+0000 (Coordinated Universal Time) -
- - - -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|235,871|50| -|[True conditional] Using constructor name|189,428|95| -|[True conditional] Check if property is valid then instanceof |191,553|97| -|[False conditional] Using instanceof only|847,578,347|92| -|[False conditional] Using constructor name|847,815,083|92| -|[False conditional] Check if property is valid then instanceof |848,268,609|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:46:47 GMT+0000 (Coordinated Universal Time) -
- - - -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,731|94| -|crypto.verify('RSA-SHA256')|6,720|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:55:18 GMT+0000 (Coordinated Universal Time) -
- - - -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,489,616|95| -|fromUnixToISOString(new Date())|2,276,263|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:05:28 GMT+0000 (Coordinated Universal Time) -
- - - -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|20,340|83| -|Intl.DateTimeFormat().format(new Date())|19,438|82| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|19,305|82| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|15,151|84| -|Reusing Intl.DateTimeFormat()|731,954|100| -|Date.toLocaleDateString()|735,633|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|20,919|87| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:18:32 GMT+0000 (Coordinated Universal Time) -
- - - -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,073,970|95| -|Using brackets {}|1,080,332|100| -|Using '' + |1,077,820|96| -|Using date.toString()|1,176,553|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:29:32 GMT+0000 (Coordinated Universal Time) -
- - - -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|4,136,430|94| -|Using delete property (proto: null)|22,030,812|99| -|Using delete property (cached proto: null)|4,174,599|96| -|Using undefined assignment|843,426,991|95| -|Using undefined assignment (proto: null)|24,569,832|97| -|Using undefined property (cached proto: null)|678,094,341|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:41:04 GMT+0000 (Coordinated Universal Time) -
- - - -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|228,835|53| -|NodeError|186,381|98| -|NodeError Range|184,580|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:50:04 GMT+0000 (Coordinated Universal Time) -
- - - -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|2,034,239|95| -|Function returning explicitly undefined|2,042,704|101| -|Function returning implicitly undefined|1,988,090|96| -|Function returning string|2,053,396|100| -|Function returning integer|1,973,147|96| -|Function returning float|2,049,471|98| -|Function returning functions|2,008,769|101| -|Function returning arrow functions|2,048,917|100| -|Function returning empty object|2,073,850|101| -|Function returning empty array|2,060,609|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:08:03 GMT+0000 (Coordinated Universal Time) -
- - - -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|843,933,650|96| -|using Array.includes (first item)|848,527,502|97| -|Using raw comparison|846,591,057|99| -|Using raw comparison (first item)|847,909,520|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:19:55 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|87,520,667|91| -|Using Object.getOwnPropertyNames()|91,290,746|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:53 GMT+0000 (Coordinated Universal Time) -
- - - -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|845,661,058|95| -|Length = 10_000 - Array.at|846,274,945|98| -|Length = 1_000_000 - Array.at|847,549,452|99| -|Length = 100 - Array[length - 1]|849,003,793|94| -|Length = 10_000 - Array[length - 1]|849,442,698|98| -|Length = 1_000_000 - Array[length - 1]|850,542,503|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:42:36 GMT+0000 (Coordinated Universal Time) -
- - - -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,620,905|95| -|Object.create({})|2,634,628|89| -|Cached Empty.prototype|848,746,331|94| -|Empty.prototype|2,568,705|91| -|Empty class|1,556,280|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:54:13 GMT+0000 (Coordinated Universal Time) -
- - - -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|848,056,706|94| -|Using optional chain (obj.field?.field2) (undefined)|849,451,923|99| -|Using and operator (obj.field && obj.field.field2) (Valid)|848,661,343|94| -|Using and operator (obj.field && obj.field.field2) (undefined)|849,305,421|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:03:23 GMT+0000 (Coordinated Universal Time) -
- - - -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|846,005,647|91| -|Using parseInt(x, 10) - big number (10 len)|846,045,313|95| -|Using + - small number (2 len)|851,349,713|96| -|Using + - big number (10 len)|850,386,420|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:12:58 GMT+0000 (Coordinated Universal Time) -
- - - -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,298,888|82| -|Using ? operator to avoid rejection|1,362,373|84| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:20:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|675,145,144|97| -|Raw usage underscore usage|677,608,180|101| -|Manipulating private properties using #|670,677,504|99| -|Manipulating private properties using underscore(_)|670,555,568|99| -|Manipulating private properties using Symbol|669,123,977|97| -|Manipulating private properties using PrivateSymbol|55,387,405|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:33:36 GMT+0000 (Coordinated Universal Time) -
- - - -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,354,667|94| -|Adding property in the object creation - small object|8,416,985|95| -|Adding property after the function creation - small class|270,697|90| -|Adding property in the function creation - small class|263,473|92| -|Adding property after the class creation - small class|268,293|90| -|Adding property in the class creation - small class|265,636|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:45:24 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|849,953,430|99| -|Getter|105,766,479|97| -|Method|850,741,875|97| -|DefineProperty (getter)|850,757,181|96| -|DefineProperty (getter & enumerable=false)|105,539,669|98| -|DefineProperty (getter & configurable=false)|851,568,375|96| -|DefineProperty (getter & enumerable=false & configurable=false)|106,128,914|96| -|DefineProperty (writable)|851,593,201|99| -|DefineProperty (writable & enumerable=false)|851,758,966|95| -|DefineProperty (writable & enumerable=false & configurable=false)|851,613,805|100| -|DefineProperties (getter)|103,230,891|100| -|DefineProperties (getter & enumerable=false)|105,839,889|98| -|DefineProperties (getter & enumerable=false & configurable=false)|67,756,298|64| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:07:46 GMT+0000 (Coordinated Universal Time) -
- - - -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|844,076,474|97| -|Setter|12,884,458|100| -|Method|848,023,097|100| -|DefineProperty (setter)|848,244,993|96| -|DefineProperty (setter & enumerable=false)|12,867,167|99| -|DefineProperty (setter & configurable=false)|12,937,380|98| -|DefineProperty (setter & enumerable=false & configurable=false)|13,035,621|99| -|DefineProperty (writable)|849,363,834|98| -|DefineProperty (writable & enumerable=false)|822,182,996|97| -|DefineProperty (writable & enumerable=false & configurable=false)|849,658,911|100| -|DefineProperties (setter)|848,793,913|95| -|DefineProperties (setter & enumerable=false)|12,158,272|92| -|DefineProperties (setter & enumerable=false & configurable=false)|11,778,631|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:29:18 GMT+0000 (Coordinated Universal Time) -
- - - -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,612,910|90| -|Using replaceAll()|3,449,292|97| -|Using replaceAll(//g)|3,251,353|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:39:39 GMT+0000 (Coordinated Universal Time) -
- - - -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|32,317,844|97| -|{ ...object, __proto__: null }|2,747,008|93| -|{ ...object, newProp: true }|32,335,166|98| -|structuredClone|263,983|94| -|JSON.parse + JSON.stringify|277,546|96| -|loop + object.keys starting with {}|1,638,671|96| -|loop + object.keys starting with { __proto__: null }|872,460|98| -|loop + object.keys starting with { randomProp: true }|654,210|99| -|object.keys + reduce(FN, {})|637,991|98| -|object.keys + reduce(FN, { __proto__: null })|899,781|100| -|object.keys + reduce(FN, { newProp: true })|649,968|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:58:02 GMT+0000 (Coordinated Universal Time) -
- - - -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|320,547|97| -|Sort using first char|1,465,574|100| -|Sort using localeCompare|1,300,778|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:06:23 GMT+0000 (Coordinated Universal Time) -
- - - -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,104|96| -|{...smallObject} - Total keys: 2|116,756,777|97| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,258|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,653|97| -|{ ...bigObject, ...anotherBigObject }|1,265|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,122,150|94| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|39,856,836|98| -|{ ...smallObject, ...anotherSmallObject }|26,741,120|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:21:14 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,776|86| -|streams.web.Readable reading 1e3 * "some data"|2,740|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:28:50 GMT+0000 (Coordinated Universal Time) -
- - - -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,292|96| -|streams.web.WritableStream writing 1e3 * "some data"|1,065|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:38:57 GMT+0000 (Coordinated Universal Time) -
- - - -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|849,019,713|98| -|Using backtick (`)|850,595,209|98| -|Using array.join|12,565,978|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:46:57 GMT+0000 (Coordinated Universal Time) -
- - - -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|845,219,746|97| -|Using indexof|850,089,106|97| -|Using RegExp.test|16,114,017|97| -|Using RegExp.text with cached regex pattern|16,614,509|100| -|Using new RegExp.test|4,839,132|101| -|Using new RegExp.test with cached regex pattern|5,493,500|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:59:09 GMT+0000 (Coordinated Universal Time) -
- - - -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|844,244,063|93| -|Using this|841,763,032|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:11:10 GMT+0000 (Coordinated Universal Time) -
- - - -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,658,160|93| -|Date.now()|25,400,678|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:18:00 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/add-property.md b/v21/v21_1_0/add-property.md deleted file mode 100644 index 4b442803..00000000 --- a/v21/v21_1_0/add-property.md +++ /dev/null @@ -1,20 +0,0 @@ -## Adding property - -|name|ops/sec|samples| -|-|-|-| -|Directly in the object|847,064,487|91| -|Using dot notation|680,391,326|99| -|Using define property (writable)|4,519,380|96| -|Using define property initialized (writable)|6,443,327|96| -|Using define property (getter)|2,469,749|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 17:57:20 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/array-append.md b/v21/v21_1_0/array-append.md deleted file mode 100644 index e482451c..00000000 --- a/v21/v21_1_0/array-append.md +++ /dev/null @@ -1,32 +0,0 @@ -## Array.append (number) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.015ms -new Array(length)|10|0.002ms -array.push|100|0.075ms -new Array(length)|100|0.01ms -array.push|1,000|0.037ms -new Array(length)|1,000|0.016ms -array.push|10,000|0.254ms -new Array(length)|10,000|0.155ms -array.push|1,000,000|26.758ms -new Array(length)|1,000,000|6.808ms -array.push|100,000,000|1,705.45ms -new Array(length)|100,000,000|3,579.748ms -## Array.append (string) - -|type|amount|time elapsed| -|-|-|-| -array.push|10|0.007ms -new Array(length)|10|0.003ms -array.push|100|0.019ms -new Array(length)|100|0.013ms -array.push|1,000|0.038ms -new Array(length)|1,000|0.023ms -array.push|10,000|0.334ms -new Array(length)|10,000|0.201ms -array.push|1,000,000|18.851ms -new Array(length)|1,000,000|7.514ms -array.push|100,000,000|1,960.328ms -new Array(length)|100,000,000|4,276.416ms diff --git a/v21/v21_1_0/array-creation.md b/v21/v21_1_0/array-creation.md deleted file mode 100644 index b9efb065..00000000 --- a/v21/v21_1_0/array-creation.md +++ /dev/null @@ -1,17 +0,0 @@ -## Array Creation - -|name|ops/sec|samples| -|-|-|-| -|new Array|303|86| -|Array.from|23|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:11:59 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/async-function-vs-function.md b/v21/v21_1_0/async-function-vs-function.md deleted file mode 100644 index 2777e03d..00000000 --- a/v21/v21_1_0/async-function-vs-function.md +++ /dev/null @@ -1,18 +0,0 @@ -## async function vs function - -|name|ops/sec|samples| -|-|-|-| -|function|847,916,393|98| -|[async] async function|17,488,480|90| -|[async] function|180,264|17| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:18:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/blob.md b/v21/v21_1_0/blob.md deleted file mode 100644 index 71bc1c54..00000000 --- a/v21/v21_1_0/blob.md +++ /dev/null @@ -1,23 +0,0 @@ -## Blob - -|name|ops/sec|samples| -|-|-|-| -|new Blob (128)|4,921|86| -|new Blob (1024)|610|81| -|text (128)|5,018|84| -|text (1024)|636|88| -|arrayBuffer (128)|5,032|85| -|arrayBuffer (1024)|633|87| -|slice (0, 64)|165,197|53| -|slice (0, 512)|35,966|78| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:34:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/compare-using-instanceof.md b/v21/v21_1_0/compare-using-instanceof.md deleted file mode 100644 index c41d12e7..00000000 --- a/v21/v21_1_0/compare-using-instanceof.md +++ /dev/null @@ -1,21 +0,0 @@ -## Comparison using `instanceof` - -|name|ops/sec|samples| -|-|-|-| -|[True conditional] Using instanceof only|235,871|50| -|[True conditional] Using constructor name|189,428|95| -|[True conditional] Check if property is valid then instanceof |191,553|97| -|[False conditional] Using instanceof only|847,578,347|92| -|[False conditional] Using constructor name|847,815,083|92| -|[False conditional] Check if property is valid then instanceof |848,268,609|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:46:47 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/crypto-verify.md b/v21/v21_1_0/crypto-verify.md deleted file mode 100644 index 2af83d08..00000000 --- a/v21/v21_1_0/crypto-verify.md +++ /dev/null @@ -1,17 +0,0 @@ -## Crypto Verify - -|name|ops/sec|samples| -|-|-|-| -|crypto.createVerify('RSA-SHA256')|6,731|94| -|crypto.verify('RSA-SHA256')|6,720|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 18:55:18 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/date-format-iso.md b/v21/v21_1_0/date-format-iso.md deleted file mode 100644 index d7d4f5f6..00000000 --- a/v21/v21_1_0/date-format-iso.md +++ /dev/null @@ -1,17 +0,0 @@ -## Date toISOString - -|name|ops/sec|samples| -|-|-|-| -|new Date().toISOString()|1,489,616|95| -|fromUnixToISOString(new Date())|2,276,263|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:05:28 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/date-format.md b/v21/v21_1_0/date-format.md deleted file mode 100644 index 714fe373..00000000 --- a/v21/v21_1_0/date-format.md +++ /dev/null @@ -1,23 +0,0 @@ -## Date format MM/DD/YYYY - -|name|ops/sec|samples| -|-|-|-| -|Intl.DateTimeFormat().format(Date.now())|20,340|83| -|Intl.DateTimeFormat().format(new Date())|19,438|82| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(Date.now())|19,305|82| -|Intl.DateTimeFormat(undefined, twoDigitsLocaleOptions).format(new Date())|15,151|84| -|Reusing Intl.DateTimeFormat()|731,954|100| -|Date.toLocaleDateString()|735,633|98| -|Date.toLocaleDateString(undefined, twoDigitsLocaleOptions)|20,919|87| -|Format using date.get*|0|0| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:18:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/date-string-coersion.md b/v21/v21_1_0/date-string-coersion.md deleted file mode 100644 index b533cb91..00000000 --- a/v21/v21_1_0/date-string-coersion.md +++ /dev/null @@ -1,19 +0,0 @@ -## Date String coersion - -|name|ops/sec|samples| -|-|-|-| -|Using String()|1,073,970|95| -|Using brackets {}|1,080,332|100| -|Using '' + |1,077,820|96| -|Using date.toString()|1,176,553|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:29:32 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/deleting-properties.md b/v21/v21_1_0/deleting-properties.md deleted file mode 100644 index fddf445b..00000000 --- a/v21/v21_1_0/deleting-properties.md +++ /dev/null @@ -1,21 +0,0 @@ -## Deleting properties - -|name|ops/sec|samples| -|-|-|-| -|Using delete property|4,136,430|94| -|Using delete property (proto: null)|22,030,812|99| -|Using delete property (cached proto: null)|4,174,599|96| -|Using undefined assignment|843,426,991|95| -|Using undefined assignment (proto: null)|24,569,832|97| -|Using undefined property (cached proto: null)|678,094,341|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:41:04 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/error.md b/v21/v21_1_0/error.md deleted file mode 100644 index 75cfcc16..00000000 --- a/v21/v21_1_0/error.md +++ /dev/null @@ -1,18 +0,0 @@ -## Node.js Error - -|name|ops/sec|samples| -|-|-|-| -|Error|228,835|53| -|NodeError|186,381|98| -|NodeError Range|184,580|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 19:50:04 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/function-return.md b/v21/v21_1_0/function-return.md deleted file mode 100644 index d1641ab3..00000000 --- a/v21/v21_1_0/function-return.md +++ /dev/null @@ -1,25 +0,0 @@ -## Function return - -|name|ops/sec|samples| -|-|-|-| -|Function returning null|2,034,239|95| -|Function returning explicitly undefined|2,042,704|101| -|Function returning implicitly undefined|1,988,090|96| -|Function returning string|2,053,396|100| -|Function returning integer|1,973,147|96| -|Function returning float|2,049,471|98| -|Function returning functions|2,008,769|101| -|Function returning arrow functions|2,048,917|100| -|Function returning empty object|2,073,850|101| -|Function returning empty array|2,060,609|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:08:03 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/includes-vs-raw-comparison.md b/v21/v21_1_0/includes-vs-raw-comparison.md deleted file mode 100644 index 1afeee0d..00000000 --- a/v21/v21_1_0/includes-vs-raw-comparison.md +++ /dev/null @@ -1,19 +0,0 @@ -## Array.includes vs raw comparison - -|name|ops/sec|samples| -|-|-|-| -|using Array.includes|843,933,650|96| -|using Array.includes (first item)|848,527,502|97| -|Using raw comparison|846,591,057|99| -|Using raw comparison (first item)|847,909,520|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:19:55 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/keys-vs-getownpropertynames.md b/v21/v21_1_0/keys-vs-getownpropertynames.md deleted file mode 100644 index 37a1d318..00000000 --- a/v21/v21_1_0/keys-vs-getownpropertynames.md +++ /dev/null @@ -1,17 +0,0 @@ -## Object.keys vs Object.getOwnPropertyNames comparison - -|name|ops/sec|samples| -|-|-|-| -|Using Object.keys()|87,520,667|91| -|Using Object.getOwnPropertyNames()|91,290,746|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:28:53 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/last-array-item.md b/v21/v21_1_0/last-array-item.md deleted file mode 100644 index 1d1a25b6..00000000 --- a/v21/v21_1_0/last-array-item.md +++ /dev/null @@ -1,21 +0,0 @@ -## Get the last item of an Array - -|name|ops/sec|samples| -|-|-|-| -|Length = 100 - Array.at|845,661,058|95| -|Length = 10_000 - Array.at|846,274,945|98| -|Length = 1_000_000 - Array.at|847,549,452|99| -|Length = 100 - Array[length - 1]|849,003,793|94| -|Length = 10_000 - Array[length - 1]|849,442,698|98| -|Length = 1_000_000 - Array[length - 1]|850,542,503|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:42:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/object-creation.md b/v21/v21_1_0/object-creation.md deleted file mode 100644 index e17357f3..00000000 --- a/v21/v21_1_0/object-creation.md +++ /dev/null @@ -1,20 +0,0 @@ -## Object Creation - -|name|ops/sec|samples| -|-|-|-| -|Object.create(null)|77,620,905|95| -|Object.create({})|2,634,628|89| -|Cached Empty.prototype|848,746,331|94| -|Empty.prototype|2,568,705|91| -|Empty class|1,556,280|90| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 20:54:13 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/optional-chain-vs-and-operator.md b/v21/v21_1_0/optional-chain-vs-and-operator.md deleted file mode 100644 index 0f0929a0..00000000 --- a/v21/v21_1_0/optional-chain-vs-and-operator.md +++ /dev/null @@ -1,19 +0,0 @@ -## Optional Chain (?) vs && operator - -|name|ops/sec|samples| -|-|-|-| -|Using optional chain (obj.field?.field2) (Valid)|848,056,706|94| -|Using optional chain (obj.field?.field2) (undefined)|849,451,923|99| -|Using and operator (obj.field && obj.field.field2) (Valid)|848,661,343|94| -|Using and operator (obj.field && obj.field.field2) (undefined)|849,305,421|101| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:03:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/parse-int.md b/v21/v21_1_0/parse-int.md deleted file mode 100644 index 500b52e6..00000000 --- a/v21/v21_1_0/parse-int.md +++ /dev/null @@ -1,19 +0,0 @@ -## Parsing Integer - -|name|ops/sec|samples| -|-|-|-| -|Using parseInt(x, 10) - small number (2 len)|846,005,647|91| -|Using parseInt(x, 10) - big number (10 len)|846,045,313|95| -|Using + - small number (2 len)|851,349,713|96| -|Using + - big number (10 len)|850,386,420|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:12:58 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/possible-undefined-function.md b/v21/v21_1_0/possible-undefined-function.md deleted file mode 100644 index d3846a61..00000000 --- a/v21/v21_1_0/possible-undefined-function.md +++ /dev/null @@ -1,17 +0,0 @@ -## Possible undefined Function - -|name|ops/sec|samples| -|-|-|-| -|Using if to check function existence|1,298,888|82| -|Using ? operator to avoid rejection|1,362,373|84| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:20:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/private-property.md b/v21/v21_1_0/private-property.md deleted file mode 100644 index 1b148551..00000000 --- a/v21/v21_1_0/private-property.md +++ /dev/null @@ -1,21 +0,0 @@ -## Private Property - -|name|ops/sec|samples| -|-|-|-| -|Raw usage private field|675,145,144|97| -|Raw usage underscore usage|677,608,180|101| -|Manipulating private properties using #|670,677,504|99| -|Manipulating private properties using underscore(_)|670,555,568|99| -|Manipulating private properties using Symbol|669,123,977|97| -|Manipulating private properties using PrivateSymbol|55,387,405|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:33:36 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/property-access-transition.md b/v21/v21_1_0/property-access-transition.md deleted file mode 100644 index bb025c9b..00000000 --- a/v21/v21_1_0/property-access-transition.md +++ /dev/null @@ -1,21 +0,0 @@ -## Property access after shape transition - -|name|ops/sec|samples| -|-|-|-| -|Adding property after object creation - small object|8,354,667|94| -|Adding property in the object creation - small object|8,416,985|95| -|Adding property after the function creation - small class|270,697|90| -|Adding property in the function creation - small class|263,473|92| -|Adding property after the class creation - small class|268,293|90| -|Adding property in the class creation - small class|265,636|89| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 21:45:24 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/property-getter-access.md b/v21/v21_1_0/property-getter-access.md deleted file mode 100644 index 1a9c6990..00000000 --- a/v21/v21_1_0/property-getter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Getter Access - -|name|ops/sec|samples| -|-|-|-| -|Getter (class)|849,953,430|99| -|Getter|105,766,479|97| -|Method|850,741,875|97| -|DefineProperty (getter)|850,757,181|96| -|DefineProperty (getter & enumerable=false)|105,539,669|98| -|DefineProperty (getter & configurable=false)|851,568,375|96| -|DefineProperty (getter & enumerable=false & configurable=false)|106,128,914|96| -|DefineProperty (writable)|851,593,201|99| -|DefineProperty (writable & enumerable=false)|851,758,966|95| -|DefineProperty (writable & enumerable=false & configurable=false)|851,613,805|100| -|DefineProperties (getter)|103,230,891|100| -|DefineProperties (getter & enumerable=false)|105,839,889|98| -|DefineProperties (getter & enumerable=false & configurable=false)|67,756,298|64| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:07:46 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/property-setter-access.md b/v21/v21_1_0/property-setter-access.md deleted file mode 100644 index a9834f02..00000000 --- a/v21/v21_1_0/property-setter-access.md +++ /dev/null @@ -1,28 +0,0 @@ -## Property Setter Access - -|name|ops/sec|samples| -|-|-|-| -|Setter (class)|844,076,474|97| -|Setter|12,884,458|100| -|Method|848,023,097|100| -|DefineProperty (setter)|848,244,993|96| -|DefineProperty (setter & enumerable=false)|12,867,167|99| -|DefineProperty (setter & configurable=false)|12,937,380|98| -|DefineProperty (setter & enumerable=false & configurable=false)|13,035,621|99| -|DefineProperty (writable)|849,363,834|98| -|DefineProperty (writable & enumerable=false)|822,182,996|97| -|DefineProperty (writable & enumerable=false & configurable=false)|849,658,911|100| -|DefineProperties (setter)|848,793,913|95| -|DefineProperties (setter & enumerable=false)|12,158,272|92| -|DefineProperties (setter & enumerable=false & configurable=false)|11,778,631|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:29:18 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/replace-vs-replaceall-comparison.md b/v21/v21_1_0/replace-vs-replaceall-comparison.md deleted file mode 100644 index 14ee5f33..00000000 --- a/v21/v21_1_0/replace-vs-replaceall-comparison.md +++ /dev/null @@ -1,18 +0,0 @@ -## replace vs replaceAll comparison - -|name|ops/sec|samples| -|-|-|-| -|Using replace(//g)|3,612,910|90| -|Using replaceAll()|3,449,292|97| -|Using replaceAll(//g)|3,251,353|99| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:39:39 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/shallow-copy.md b/v21/v21_1_0/shallow-copy.md deleted file mode 100644 index aeaa3173..00000000 --- a/v21/v21_1_0/shallow-copy.md +++ /dev/null @@ -1,26 +0,0 @@ -## Shallow Copy - -|name|ops/sec|samples| -|-|-|-| -|{ ...object }|32,317,844|97| -|{ ...object, __proto__: null }|2,747,008|93| -|{ ...object, newProp: true }|32,335,166|98| -|structuredClone|263,983|94| -|JSON.parse + JSON.stringify|277,546|96| -|loop + object.keys starting with {}|1,638,671|96| -|loop + object.keys starting with { __proto__: null }|872,460|98| -|loop + object.keys starting with { randomProp: true }|654,210|99| -|object.keys + reduce(FN, {})|637,991|98| -|object.keys + reduce(FN, { __proto__: null })|899,781|100| -|object.keys + reduce(FN, { newProp: true })|649,968|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 22:58:02 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/sort-map.md b/v21/v21_1_0/sort-map.md deleted file mode 100644 index 0f7f11fe..00000000 --- a/v21/v21_1_0/sort-map.md +++ /dev/null @@ -1,18 +0,0 @@ -## Sorting Map - -|name|ops/sec|samples| -|-|-|-| -|Sort using default|320,547|97| -|Sort using first char|1,465,574|100| -|Sort using localeCompare|1,300,778|96| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:06:23 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/spread-vs-object-assign.md b/v21/v21_1_0/spread-vs-object-assign.md deleted file mode 100644 index a5a4b6ed..00000000 --- a/v21/v21_1_0/spread-vs-object-assign.md +++ /dev/null @@ -1,23 +0,0 @@ -## Object.assign VS spread operator - -|name|ops/sec|samples| -|-|-|-| -|{...bigObject} - Total keys: 1000|2,104|96| -|{...smallObject} - Total keys: 2|116,756,777|97| -|Object.assign({}, bigObject, anotherBigObject) - Total keys: 1000 - creating new object|2,258|98| -|Object.assign(bigObject, anotherBigObject) - mutating bigObject|6,653|97| -|{ ...bigObject, ...anotherBigObject }|1,265|97| -|Object.assign({}, smallObject, anotherSmallObject) - creating new object|15,122,150|94| -|Object.assign(smallObject, anotherSmallObject) - mutating smallObject|39,856,836|98| -|{ ...smallObject, ...anotherSmallObject }|26,741,120|98| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:21:14 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/stream-readable.md b/v21/v21_1_0/stream-readable.md deleted file mode 100644 index 1a6657a9..00000000 --- a/v21/v21_1_0/stream-readable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Readable - -|name|ops/sec|samples| -|-|-|-| -|streams.Readable reading 1e3 * "some data"|2,776|86| -|streams.web.Readable reading 1e3 * "some data"|2,740|87| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:28:50 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/stream-writable.md b/v21/v21_1_0/stream-writable.md deleted file mode 100644 index 59ecd5ba..00000000 --- a/v21/v21_1_0/stream-writable.md +++ /dev/null @@ -1,17 +0,0 @@ -## Stream.Writable - -|name|ops/sec|samples| -|-|-|-| -|streams.Writable writing 1e3 * "some data"|6,292|96| -|streams.web.WritableStream writing 1e3 * "some data"|1,065|42| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:38:57 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/string-concat.md b/v21/v21_1_0/string-concat.md deleted file mode 100644 index 4d0b8585..00000000 --- a/v21/v21_1_0/string-concat.md +++ /dev/null @@ -1,18 +0,0 @@ -## String concat - -|name|ops/sec|samples| -|-|-|-| -|Using + sign|849,019,713|98| -|Using backtick (`)|850,595,209|98| -|Using array.join|12,565,978|97| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:46:57 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/string-searching.md b/v21/v21_1_0/string-searching.md deleted file mode 100644 index 7a65177a..00000000 --- a/v21/v21_1_0/string-searching.md +++ /dev/null @@ -1,21 +0,0 @@ -## String searching - -|name|ops/sec|samples| -|-|-|-| -|Using includes|845,219,746|97| -|Using indexof|850,089,106|97| -|Using RegExp.test|16,114,017|97| -|Using RegExp.text with cached regex pattern|16,614,509|100| -|Using new RegExp.test|4,839,132|101| -|Using new RegExp.test with cached regex pattern|5,493,500|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Tue Nov 07 2023 23:59:09 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/super-vs-this.md b/v21/v21_1_0/super-vs-this.md deleted file mode 100644 index 21924261..00000000 --- a/v21/v21_1_0/super-vs-this.md +++ /dev/null @@ -1,17 +0,0 @@ -## Super vs This - -|name|ops/sec|samples| -|-|-|-| -|Using super|844,244,063|93| -|Using this|841,763,032|100| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:11:10 GMT+0000 (Coordinated Universal Time) -
- - diff --git a/v21/v21_1_0/unix-time.md b/v21/v21_1_0/unix-time.md deleted file mode 100644 index b3894e7f..00000000 --- a/v21/v21_1_0/unix-time.md +++ /dev/null @@ -1,17 +0,0 @@ -## Getting unix time - -|name|ops/sec|samples| -|-|-|-| -|new Date().getTime()|13,658,160|93| -|Date.now()|25,400,678|95| - - -
-Environment - -* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem -* __Run:__ Wed Nov 08 2023 00:18:00 GMT+0000 (Coordinated Universal Time) -
- -