Skip to content

Commit 8ae25c6

Browse files
committed
move benchmark
1 parent 295b5d1 commit 8ae25c6

File tree

8 files changed

+1
-281
lines changed

8 files changed

+1
-281
lines changed

benchmark/README.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,3 @@
11
# Benchmark
22

3-
The benchmark doesn't represent a real world usage of the framework, but it's a closer approximation.
4-
5-
It is running a simple web server that renders some React tree and responds with a stringified HTML. Consists of 1) node + express, 2) bun and 3) dream with server-reason-react.
6-
7-
The application uses the same React tree in all 3 cases, so the differences are:
8-
9-
- runtime
10-
- ReactDOM's implementation
11-
- server framework (if any)
12-
13-
It's based on 384cd79c73be5baddf281b9a089bbf843e1b990d and not what's currently on main.
14-
15-
## Running the benchmark
16-
17-
Command to run `wrk -t8 -c400 -d30s http://localhost:xxxx`
18-
19-
## Results
20-
21-
### node-express-js
22-
23-
```cd benchmark/node-express-js; NODE_ENV=production node index.js```
24-
25-
```sh
26-
Thread Stats Avg Stdev Max +/- Stdev
27-
Latency 30.89ms 11.23ms 206.66ms 93.11%
28-
Req/Sec 1.66k 321.02 2.02k 81.42%
29-
396545 requests in 30.09s, 524.91MB read
30-
31-
Requests/sec: 13176.71
32-
Transfer/sec: 17.44MB
33-
```
34-
35-
### bun-js
36-
37-
```cd benchmark/bun-js; NODE_ENV=production ~/bun/bin/bun run index.js```
38-
39-
```sh
40-
Thread Stats Avg Stdev Max +/- Stdev
41-
Latency 22.85ms 5.24ms 120.22ms 95.59%
42-
Req/Sec 0.88k 492.74 2.31k 50.77%
43-
315018 requests in 30.10s, 257.46MB read
44-
45-
Requests/sec: 10464.64
46-
Transfer/sec: 8.55MB
47-
```
48-
49-
### dream-reason-native
50-
51-
```make build-server-prod; _build/default/server/server.exe```
52-
53-
```sh
54-
Thread Stats Avg Stdev Max +/- Stdev
55-
Latency 6.15ms 598.15us 23.92ms 97.05%
56-
Req/Sec 8.17k 1.40k 75.44k 98.63%
57-
1951327 requests in 30.10s, 5.18GB read
58-
59-
Requests/sec: 64822.31
60-
Transfer/sec: 176.12MB
61-
```
3+
The benchmark has been moved to [ml-in-barcelona/server-reason-react/benchmark](https://github.com/ml-in-barcelona/fullstack-reason-react-demo/tree/main/benchmark).

benchmark/app/Link.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

benchmark/app/PageContainer.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

benchmark/app/Welcome.js

Lines changed: 0 additions & 99 deletions
This file was deleted.

benchmark/app/app.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

benchmark/bun-js/index.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmark/node-express-js/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

benchmark/node-express-rescript/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)