You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/tanstack-start-5x-ssr-throughput.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,23 @@ We did not benchmark "a representative app page". We used endpoints that exagger
56
56
57
57
This is transferable: isolate the subsystem you want to improve, and benchmark that.
58
58
59
+
### CPU profiling with `@platformatic/flame`
60
+
61
+
To capture a CPU profile of the server under load, we start the built server with [`@platformatic/flame`](https://github.com/platformatic/flame):
62
+
63
+
```sh
64
+
flame run ./dist/server.mjs
65
+
```
66
+
67
+
This produces:
68
+
69
+
- a CPU flamegraph
70
+
- a memory heap flamegraph
71
+
- and markdown summaries of the captured profile data
72
+
59
73
### Load generation with `autocannon`
60
74
61
-
We used [`autocannon`](https://github.com/mcollina/autocannon) to generate a 30s sustained load. We tracked:
75
+
While `@platformatic/flame` is running in one terminal, we used [`autocannon`](https://github.com/mcollina/autocannon) in another terminal to generate a 30s sustained load. We tracked:
62
76
63
77
- requests per second (req/s)
64
78
- latency distribution (average, p95, p99)
@@ -69,25 +83,13 @@ Example command (adjust concurrency and route):
0 commit comments