Skip to content

Conversation

@manudeli
Copy link
Member

@manudeli manudeli commented Aug 4, 2025

No description provided.

… benchmarks and improved performance metrics for es-toolkit compared to lodash-es.
@manudeli manudeli self-assigned this Aug 4, 2025
@vercel
Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
es-toolkit Ready Ready Preview Comment Sep 9, 2025 2:09pm

@manudeli manudeli requested review from Copilot and removed request for dayongkr and raon0211 August 4, 2025 01:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the performance documentation across multiple languages to reflect newer benchmark results using [email protected] instead of 0.0.1. The update includes improved performance metrics showing es-toolkit's advantages over lodash-es and removes some previously mentioned claims about extreme performance gains.

  • Updated version information from [email protected] to @1.39.8
  • Removed references to "up to 11× performance improvement" claims and performance graph
  • Updated benchmark data with newer test results showing consistent performance advantages

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/performance.md Updated English performance documentation with newer benchmark data
docs/zh_hans/performance.md Updated Chinese (Simplified) performance documentation
docs/ko/performance.md Updated Korean performance documentation
docs/ja/performance.md Updated Japanese performance documentation
benchmarks/performance/*.bench.ts Added lodash-es benchmarks to existing test files for comprehensive comparisons

| [dropRightWhile](./reference/array/dropRightWhile.md) | 18,924,422 times | 11,115,819 times | 1.70x |

テスト環境はMacBook Pro 14インチ(M1 Max2021です。[ベンチマークコード](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)を参照してください。
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The Japanese text should use consistent formatting for 'MacBook Pro 16-inch'. Consider using Japanese parentheses () instead of English parentheses () for consistency with Japanese typography conventions, or maintain the English format consistently as in the original.

Suggested change
テスト環境はMacBook Pro 16-inch (M1 Max, 2021)です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。
テスト環境はMacBook Pro 16-inchM1 Max, 2021です。[ベンチマークコード](https://github.com/toss/es-toolkit/tree/main/benchmarks)を参照してください。

Copilot uses AI. Check for mistakes.

![Graph showing the difference in performance between es-toolkit and lodash. Using es-toolkit results in a performance gain of up to 11 times.](/assets/performance.png)

Designed with performance in mind, es-toolkit provides an average of 2× performance improvement compared to alternative libraries like lodash. Some functions achieve up to an 11× performance gain by fully utilizing modern JavaScript APIs.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, the difference is not up to 11 times, so this part can be considered an exaggeration, so it is removed.

@manudeli manudeli changed the title feat(benchmarks): update performance documentation to reflect the new benchmarks and improved performance metrics for es-toolkit compared to lodash-es feat(benchmarks): update performance documentation Aug 4, 2025
@manudeli manudeli requested review from dayongkr and raon0211 August 4, 2025 01:40
import { difference as differenceToolkit_ } from 'es-toolkit';
import { difference as differenceCompatToolkit_ } from 'es-toolkit/compat';
import { difference as differenceLodash_ } from 'lodash';
import { difference as differenceLodash_es } from 'lodash-es';
Copy link
Collaborator

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

The page https://es-toolkit.dev/performance.html uses lodash-es to demonstrate the performance of es-toolkit. so I used lodash-es too

@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.75%. Comparing base (2f40871) to head (7ecd44a).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1297   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         468      468           
  Lines        4439     4439           
  Branches     1309     1309           
=======================================
  Hits         4428     4428           
  Misses         11       11           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants