Skip to content

Commit

Permalink
Update, add more and reorganize bench results
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Reidel <[email protected]>
  • Loading branch information
Gelbpunkt committed Feb 10, 2025
1 parent d027a47 commit cf2b7ca
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 786 deletions.
43 changes: 26 additions & 17 deletions benches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ It is a bit tricky to benchmark WebSocket libraries, since you're going to be li

## Environment

I run these benchmarks irregularly on my main system (CPU: `AMD Ryzen 9 7950X`, RAM: `32GB`). The kernel version last used is:
The benchmarks are run irregularly on a bunch of different systems to get a rough idea for the scaling of the library on different hardware.

```
$ uname -a
Linux ceres 6.7.0-0.rc3.20231129gt18d46e76.329.vanilla.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 29 06:20:06 UTC 2023 x86_64 GNU/Linux
```

and the benchmarks are run in a podman container based on Alpine Linux Edge.
All benchmarks are run in a podman container based on Chimera Linux.

## Methodology

Expand All @@ -30,22 +25,36 @@ The benchmarking script was taken from [fastwebsockets](https://github.com/denol

## Results

### 10 connections, 1024 byte payloads
### AMD Epyc 7402P, 256GB RAM, Linux 6.12.7

This target uses AVX2.

<details>

<summary>Expand results</summary>

#### 10 connections, 1024 byte payloads

![10 Connections, 1024 byte payloads](./results/10-1024-chart.png)

#### 10 connections, 16384 byte payloads

![10 Connections, 16384 byte payloads](./results/10-16384-chart.png)

![10 Connections, 1024 byte payloads](./results/10-1024-chart.svg)
#### 100 connections, 0 byte payloads

### 10 connections, 16384 byte payloads
![100 Connections, 0 byte payloads](./results/100-0-chart.png)

![10 Connections, 16384 byte payloads](./results/10-16384-chart.svg)
#### 100 connections, 20 byte payloads

### 100 connections, 20 byte payloads
![100 Connections, 20 byte payloads](./results/100-20-chart.png)

![100 Connections, 20 byte payloads](./results/100-20-chart.svg)
#### 200 connections, 16384 byte payloads

### 200 connections, 16384 byte payloads
![200 Connections, 16384 byte payloads](./results/200-16384-chart.png)

![200 Connections, 16384 byte payloads](./results/200-16384-chart.svg)
#### 500 connections, 16384 byte payloads

### 500 connections, 16384 byte payloads
![500 Connections, 16384 byte payloads](./results/500-16384-chart.png)

![500 Connections, 16384 byte payloads](./results/500-16384-chart.svg)
</details>
Binary file modified benches/results/10-1024-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 0 additions & 141 deletions benches/results/10-1024-chart.svg

This file was deleted.

Binary file modified benches/results/10-16384-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cf2b7ca

Please sign in to comment.