Skip to content

Commit 1ff3290

Browse files
authored
update spectator-js performance numbers
1 parent 0dd41a7 commit 1ff3290

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/spectator/lang/nodejs/usage.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,13 @@ describe("Protocol Parser Tests", (): void => {
454454
On an `m5d.2xlarge` EC2 instance, with `Node.js v22.16.0` and `nflx-spectator: ^3.0.5`, we have
455455
observed the following single-threaded performance numbers across a two-minute test window:
456456

457-
* ??? requests/second over `udp`
457+
* 85,317 requests/second over `udp` with `await`
458458

459459
The benchmark incremented a single counter with two tags in a tight loop, to simulate real-world tag
460460
usage, and the rate-per-second observed on the corresponding Atlas graph matched. The protocol line
461461
was `74` characters in length.
462462

463-
The Node.js process CPU usage was ~100% and the `spectatord` process CPU usage was ~55% on this 8
463+
The Node.js process CPU usage was ~100% and the `spectatord` process CPU usage was ~50% on this 8
464464
vCPU system.
465+
466+
Without `await`, a heap limit allocation fail error will occur around 5.5M iterations at 34 seconds.

0 commit comments

Comments
 (0)