-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(unix-time.js): update benchmark results
- Loading branch information
1 parent
f90845c
commit 465f74a
Showing
30 changed files
with
118 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## Deleting properties | ||
## Getting unix time | ||
|
||
|name|ops/sec|samples| | ||
|-|-|-| | ||
|Using delete property|1,692,524|88| | ||
|Using undefined assignment|564,278,692|86| | ||
|new Date().getTime()|7,345,326|97| | ||
|Date.now()|14,136,590|95| | ||
|
||
|
||
<details> | ||
<summary>Environment</summary> | ||
|
||
* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem | ||
* __Run:__ Thu Sep 21 2023 22:17:07 GMT+0000 (Coordinated Universal Time) | ||
* __Run:__ Tue Oct 03 2023 02:12:27 GMT+0000 (Coordinated Universal Time) | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## Array Creation | ||
## Getting unix time | ||
|
||
|name|ops/sec|samples| | ||
|-|-|-| | ||
|new Array|243|77| | ||
|Array.from|11|32| | ||
|new Date().getTime()|7,829,945|95| | ||
|Date.now()|14,470,130|97| | ||
|
||
|
||
<details> | ||
<summary>Environment</summary> | ||
|
||
* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem | ||
* __Run:__ Thu Sep 21 2023 22:05:50 GMT+0000 (Coordinated Universal Time) | ||
* __Run:__ Tue Oct 03 2023 02:12:28 GMT+0000 (Coordinated Universal Time) | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## Date toISOString | ||
## Getting unix time | ||
|
||
|name|ops/sec|samples| | ||
|-|-|-| | ||
|new Date().toISOString()|1,610,281|95| | ||
|fromUnixToISOString(new Date())|1,389,989|98| | ||
|new Date().getTime()|7,418,390|93| | ||
|Date.now()|14,262,652|98| | ||
|
||
|
||
<details> | ||
<summary>Environment</summary> | ||
|
||
* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem | ||
* __Run:__ Thu Sep 21 2023 22:10:27 GMT+0000 (Coordinated Universal Time) | ||
* __Run:__ Tue Oct 03 2023 02:12:24 GMT+0000 (Coordinated Universal Time) | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
## Shallow Copy | ||
## Getting unix time | ||
|
||
|name|ops/sec|samples| | ||
|-|-|-| | ||
|{ ...object }|13,634,170|91| | ||
|{ ...object, __proto__: null }|13,424,046|94| | ||
|{ ...object, newProp: true }|510,574|85| | ||
|structuredClone|0|0| | ||
|JSON.parse + JSON.stringify|144,585|98| | ||
|loop + object.keys starting with {}|328,752|92| | ||
|loop + object.keys starting with { __proto__: null }|434,923|94| | ||
|loop + object.keys starting with { randomProp: true }|341,338|96| | ||
|object.keys + reduce(FN, {})|333,113|97| | ||
|object.keys + reduce(FN, { __proto__: null })|426,462|91| | ||
|object.keys + reduce(FN, { newProp: true })|344,621|93| | ||
|new Date().getTime()|7,261,299|96| | ||
|Date.now()|14,220,634|95| | ||
|
||
|
||
<details> | ||
<summary>Environment</summary> | ||
|
||
* __Machine:__ linux x64 | 2 vCPUs | 6.8GB Mem | ||
* __Run:__ Thu Sep 21 2023 22:53:53 GMT+0000 (Coordinated Universal Time) | ||
* __Run:__ Tue Oct 03 2023 02:12:24 GMT+0000 (Coordinated Universal Time) | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.