https://github.com/cerjs/trpc-bun
trpc-bun
https://github.com/cerjs/trpc-bun
Last synced: 10 months ago
JSON representation
trpc-bun
- Host: GitHub
- URL: https://github.com/cerjs/trpc-bun
- Owner: cerjs
- License: mit
- Created: 2023-12-13T14:14:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T14:22:49.000Z (over 2 years ago)
- Last Synced: 2025-08-17T00:28:52.435Z (10 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [tRPC](https://trpc.io/) + [Bun](https://bun.sh/)
```sh
git clone https://github.com/sachinraja/trpc-bun
cd trpc-bun
bun install
bun dx
```
The `bun dx` command will start the development server and open the app in your browser. Changes to the router are automatically reloaded using [`bun-livereload`](https://github.com/Jarred-Sumner/bun-livereload).
# bun1.0.16-trpc
autocannon -c 1000 -d 20 -p 100 http://localhost:5000/hello
Running 20s test @ http://localhost:5000/hello
1000 connections with 100 pipelining factor
┌─────────┬────────┬────────┬────────┬────────┬──────────┬───────────┬─────────┐
│ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │
├─────────┼────────┼────────┼────────┼────────┼──────────┼───────────┼─────────┤
│ Latency │ 461 ms │ 597 ms │ 607 ms │ 695 ms │ 593.7 ms │ 100.99 ms │ 1879 ms │
└─────────┴────────┴────────┴────────┴────────┴──────────┴───────────┴─────────┘
┌───────────┬─────────┬─────────┬─────────┬─────────┬───────────┬──────────┬─────────┐
│ Stat │ 1% │ 2.5% │ 50% │ 97.5% │ Avg │ Stdev │ Min │
├───────────┼─────────┼─────────┼─────────┼─────────┼───────────┼──────────┼─────────┤
│ Req/Sec │ 156,415 │ 156,415 │ 167,167 │ 168,319 │ 166,297.6 │ 2,731.87 │ 156,298 │
├───────────┼─────────┼─────────┼─────────┼─────────┼───────────┼──────────┼─────────┤
│ Bytes/Sec │ 26.1 MB │ 26.1 MB │ 27.9 MB │ 28.1 MB │ 27.8 MB │ 456 kB │ 26.1 MB │
└───────────┴─────────┴─────────┴─────────┴─────────┴───────────┴──────────┴─────────┘
Req/Bytes counts sampled once per second.
# of samples: 20
3426k requests in 20.14s, 555 MB read