Skip to content

Commit e70f9f0

Browse files
Gugustinettesxzz
andauthored
docs: add benchmark page (#333)
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
1 parent 1cd4b87 commit e70f9f0

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

docs/.vitepress/config/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export function getLocaleConfig(lang: string) {
8989
{ text: t('Hooks'), link: '/hooks.md' },
9090
{ text: t('Rolldown Options'), link: '/rolldown-options.md' },
9191
{ text: t('Programmatic Usage'), link: '/programmatic-usage.md' },
92+
{ text: t('Benchmark'), link: '/benchmark.md' },
9293
],
9394
},
9495
{

docs/.vitepress/i18n/translate-map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const zhCN = {
3636
Plugins: '插件',
3737
Hooks: '钩子(Hooks)',
3838
'Programmatic Usage': '编程使用',
39+
Benchmark: '性能基准',
3940
FAQ: '常见问题',
4041

4142
'Config Options': '配置选项',

docs/advanced/benchmark.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Benchmark
2+
3+
`tsdown` delivers exceptional performance compared to other popular bundlers. In most cases, it is approximately **2 times faster** than `tsup` for standard builds, and up to **8 times faster** when generating TypeScript declaration files.
4+
5+
For detailed comparisons and real-world results, see [bundler-benchmark](https://gugustinette.github.io/bundler-benchmark/).

docs/zh-CN/advanced/benchmark.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 性能基准
2+
3+
与其他流行的打包器相比,`tsdown` 拥有卓越的性能。在大多数情况下,标准构建速度约为 `tsup`**2 倍**,在生成 TypeScript 声明文件时甚至可达**8 倍**之多。
4+
5+
有关详细对比和真实案例结果,请参阅 [bundler-benchmark](https://gugustinette.github.io/bundler-benchmark/)

0 commit comments

Comments
 (0)