Skip to content

Commit 9e08dbe

Browse files
committed
benchmark results
1 parent 39b0785 commit 9e08dbe

4 files changed

Lines changed: 74 additions & 8 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# oRPC Type-Check Benchmark
2+
3+
Run the benchmark with:
4+
5+
```bash
6+
pnpm bench
7+
```
8+
9+
## Overview
10+
11+
This benchmark evaluates TypeScript type-checking performance on a project with 3,000 procedures and 1,501 routers.
12+
13+
We use [Standard Schema](https://github.com/standard-schema/standard-schema) instead of a specific library like Zod to ensure the results reflect oRPC's performance without external influences.
14+
15+
## System Details
16+
17+
- **Platform:** Linux
18+
- **Architecture:** x64
19+
- **Kernel Version:** #19~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 17 11:51:52 UTC 2
20+
- **Memory:** 7,755 MB
21+
- **CPU Cores:** 8
22+
23+
## Benchmark Results
24+
25+
### oRPC 1.0.0-beta.2 - 2025-03-20T10:18:33.021Z
26+
27+
```bash
28+
Time (mean ± σ): 6.384 s ± 0.168 s [User: 12.308 s, System: 0.393 s]
29+
Range (min … max): 6.161 s … 6.608 s 10 runs
30+
```
31+
32+
### oRPC 1.0.0-beta.2 - 2025-03-20T10:19:57.563Z
33+
34+
```bash
35+
Time (mean ± σ): 6.526 s ± 0.129 s [User: 12.663 s, System: 0.405 s]
36+
Range (min … max): 6.377 s … 6.854 s 10 runs
37+
```
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# tRPC Type-Check Benchmark
2+
3+
Run the benchmark with:
4+
5+
```bash
6+
pnpm bench
7+
```
8+
9+
## Overview
10+
11+
This benchmark evaluates TypeScript type-checking performance on a project with 3,000 procedures and 1,501 routers.
12+
13+
We use [Standard Schema](https://github.com/standard-schema/standard-schema) instead of a specific library like Zod to ensure the results reflect tRPC's performance without external influences.
14+
15+
## System Details
16+
17+
- **Platform:** Linux
18+
- **Architecture:** x64
19+
- **Kernel Version:** #19~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 17 11:51:52 UTC 2
20+
- **Memory:** 7,755 MB
21+
- **CPU Cores:** 8
22+
23+
## Benchmark Results
24+
25+
### tRPC 11.0.0-rc.840 - 2025-03-20T10:27:05.931Z
26+
27+
```bash
28+
Time (mean ± σ): 9.976 s ± 0.263 s [User: 15.735 s, System: 0.453 s]
29+
Range (min … max): 9.620 s … 10.605 s 10 runs
30+
```
31+
32+
### tRPC 11.0.0-rc.840 - 2025-03-20T10:29:40.223Z
33+
34+
```bash
35+
Time (mean ± σ): 9.956 s ± 0.173 s [User: 15.743 s, System: 0.435 s]
36+
Range (min … max): 9.609 s … 10.247 s 10 runs
37+
```

benchmarks/trpc-typecheck/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
"bench": "pnpm run gen && hyperfine 'tsc --noEmit'"
99
},
1010
"dependencies": {
11-
"@orpc/client": "1.0.0-beta.2",
12-
"@orpc/server": "1.0.0-beta.2",
1311
"@standard-schema/spec": "^1.0.0",
1412
"@trpc/client": "11.0.0-rc.840",
1513
"@trpc/server": "11.0.0-rc.840"

pnpm-lock.yaml

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)