-
Notifications
You must be signed in to change notification settings - Fork 510
feat(benchmarks): update performance documentation #1297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
manudeli
wants to merge
5
commits into
main
Choose a base branch
from
docs/performance.md
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a062c23
feat(benchmarks): update performance documentation to reflect the new…
manudeli 55b884b
Merge branch 'main' into docs/performance.md
manudeli aef453d
Merge branch 'main' into docs/performance.md
manudeli 4c3c00c
Merge branch 'main' into docs/performance.md
manudeli 7ecd44a
Merge branch 'main' into docs/performance.md
manudeli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,23 +4,19 @@ description: es-toolkitと他のライブラリのパフォーマンスの違い | |||||
|
|
||||||
| # パフォーマンス | ||||||
|
|
||||||
|  | ||||||
|
|
||||||
| パフォーマンスを重視して設計されたes-toolkitは、lodashのような他のライブラリと比較して平均2倍のパフォーマンス向上を提供します。いくつかの関数は、最新のJavaScript APIを完全に活用することで、最大11倍のパフォーマンス向上を達成します。 | ||||||
| パフォーマンスを重視して設計されたes-toolkitは、lodashのような他のライブラリと比較して平均2倍のパフォーマンス向上を提供します。 | ||||||
|
|
||||||
| ## パフォーマンス比較 | ||||||
|
|
||||||
| | | [email protected] | [email protected] | Difference | | ||||||
| | --------------------------------------------------------- | ---------------- | ----------------- | ---------- | | ||||||
| | [omit](./reference/object/omit.md) | 4,767,360 times | 403,624 times | 11.8× | | ||||||
| | [pick](./reference/object/pick.md) | 9,121,839 times | 2,663,072 times | 3.43× | | ||||||
| | [differenceWith](./reference/array/differenceWith.md) | 9,291,897 times | 4,275,222 times | 2.17× | | ||||||
| | [difference](./reference/array/difference.md) | 10,436,101 times | 5,155,631 times | 2.02× | | ||||||
| | [intersectionWith](./reference/array/intersectionWith.md) | 8,074,722 times | 3,814,479 times | 2.12× | | ||||||
| | [intersection](./reference/array/intersection.md) | 9,999,571 times | 4,630,316 times | 2.15× | | ||||||
| | [unionBy](./reference/array/unionBy.md) | 6,435,983 times | 3,794,899 times | 1.69× | | ||||||
| | [union](./reference/array/union.md) | 5,059,209 times | 4,771,400 times | 1.06× | | ||||||
| | [dropRightWhile](./reference/array/dropRightWhile.md) | 7,529,559 times | 5,606,439 times | 1.34× | | ||||||
| | [groupBy](./reference/array/groupBy.md) | 5,000,235 times | 5,206,286 times | 0.96× | | ||||||
| | | [email protected] | [email protected] | Difference | | ||||||
| | --------------------------------------------------------- | ----------------- | ----------------- | ---------- | | ||||||
| | [omit](./reference/object/omit.md) | 5,522,023 times | 1,598,902 times | 3.45x | | ||||||
| | [pick](./reference/object/pick.md) | 11,548,374 times | 2,507,413 times | 4.61x | | ||||||
| | [differenceWith](./reference/array/differenceWith.md) | 18,559,083 times | 4,648,750 times | 3.99x | | ||||||
| | [difference](./reference/array/difference.md) | 13,838,471 times | 5,605,974 times | 2.47x | | ||||||
| | [intersectionWith](./reference/array/intersectionWith.md) | 14,160,477 times | 4,100,403 times | 3.87x | | ||||||
| | [intersection](./reference/array/intersection.md) | 12,555,311 times | 5,442,531 times | 2.31x | | ||||||
| | [unionBy](./reference/array/unionBy.md) | 6,116,069 times | 4,210,245 times | 1.76x | | ||||||
| | [dropRightWhile](./reference/array/dropRightWhile.md) | 18,924,422 times | 11,115,819 times | 1.70x | | ||||||
|
|
||||||
| テスト環境はMacBook Pro 14インチ(M1 Max、2021)です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。 | ||||||
| テスト環境はMacBook Pro 16-inch (M1 Max, 2021)です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。 | ||||||
|
||||||
| テスト環境はMacBook Pro 16-inch (M1 Max, 2021)です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。 | |
| テスト環境はMacBook Pro 16-inch(M1 Max, 2021)です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, there shouldn't be any performance differences between lodash-es and lodash, so I'm wondering what the reason was for adding it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The page https://es-toolkit.dev/performance.html uses lodash-es to demonstrate the performance of es-toolkit. so I used lodash-es too