es-toolkit/docs/zh_hans/bundle-size.md
BlackWhite e9ede74362
docs: Translate Simplified Chinese (#165)
* Translate Simplified Chinese

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Supplement the omitted

* Update docs/.vitepress/shared.mts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-07-12 10:08:55 +09:00

1.3 KiB
Raw Blame History

description
es-toolkit提供的最小包体积

包体积

图表显示es-toolkit与lodash之间包大小的差异,差异高达97%。

通过其现代化的实现es-toolkit显著减少了其包体积与lodash等其他库相比可以减少高达97%。

这使得es-toolkit在包体积方面成为最高效的选择其中一些实用函数的体积甚至少于100字节。

包体积比较

es-toolkit@0.0.1 lodash-es@4.17.21 Difference
sample 88 bytes 2000 bytes -95.6%
difference 91 bytes 3190 bytes -97.2%
sum 152 bytes 413 bytes -63.2%
debounce 144 bytes 1400 bytes -89.7%
throttle 110 bytes 1460 bytes -92.5%
pick 657 bytes 3860 bytes -83.0%
zip 797 bytes 1790 bytes -55.5%