Skip to content

Commit 2edfc45

Browse files
committed
Update docs
1 parent 69fbdce commit 2edfc45

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ A cooperative fiber scheduler for Linux with per-CPU scheduler threads, io_uring
1919
- Clang 21
2020
- ccache (optional)
2121
- Boost (`libboost-dev`, `libboost-context-dev`, `libboost-program-options-dev`)
22-
- libbpf (`libbpf-dev`) — optional, required only for `src/profiler`; the profiler is silently skipped if absent
22+
- libelf (`libelf-dev`) — optional, required only for `src/profiler`; the profiler is silently skipped if absent.
2323

24-
GTest, Google Benchmark, libbacktrace, liburing, and librseq are bundled as submodules under `contrib/` and do not need to be installed separately. Poco, the AWS SDK, and jemalloc are built on demand via `--build-poco`, `--build-aws`, and `--build-jemalloc` passed to `configure`.
24+
GTest, Google Benchmark, libbacktrace, liburing, librseq, libbpf, and bpftool are bundled as submodules under `contrib/` and do not need to be installed separately. Poco, the AWS SDK, and jemalloc are built on demand via `--build-poco`, `--build-aws`, and `--build-jemalloc` passed to `configure`.
2525

26-
Runtime dependencies for optional benchmarks: nginx (for `http-perf`), fio (for `fio-perf`), sockperf (for `sockperf-perf`), and MinIO (for `s3-perf`). MinIO is downloaded automatically to `.tools/` if not in PATH; the others must be installed separately.
26+
Runtime dependencies for optional benchmarks: nginx (only for `http-perf --nginx`; the default uses an internal Poco-based server built into the `http-perf` binary), fio (for `fio-perf`), sockperf (for `sockperf-perf`), and MinIO (for `s3-perf`). MinIO is downloaded automatically to `.tools/` if not in PATH; the others must be installed separately.
2727

2828
## Build
2929

@@ -204,7 +204,7 @@ sockperf comparison (ping-pong). Same options as `net-perf` (except `--delay`, `
204204

205205
#### `http-perf`
206206

207-
HTTP/1.1 GET benchmark. Uses nginx as the server.
207+
HTTP/1.1 GET benchmark. Defaults to silk's internal HTTP server (Poco's `HTTPServerConnection` over `FiberSocketImpl`, one fiber per connection); pass `--nginx` to run against nginx instead.
208208

209209
| Option | Default | Description |
210210
|---|---|---|
@@ -213,14 +213,16 @@ HTTP/1.1 GET benchmark. Uses nginx as the server.
213213
| `--duration DURATION` | `10` | Measurement duration |
214214
| `--warmup DURATION` | `2` | Warmup duration |
215215
| `--connections N [N ...]` | `1000` | Connection counts to sweep |
216-
| `--delay DURATION` | `0` | Server-side delay injected via nginx lua sleep (e.g. `1ms`, `100us`) |
217-
| `--threads` | | Use thread-per-connection mode instead of fibers |
216+
| `--delay DURATION` | `0` | Server-side per-request delay (e.g. `1ms`, `100us`); fiber server uses `silk::FiberScheduler::sleep`, nginx uses lua sleep |
217+
| `--threads` | | Use thread-per-connection client mode instead of fibers |
218+
| `--nginx` | | Run client against nginx instead of the internal server |
218219
| `--flamegraph` | | Profile client and generate flamegraph SVG |
219220
| `--print-counters` | | Print perf counters after each run |
220221

221222
```
222223
./bb -b release http-perf
223224
./bb -b release http-perf --threads
225+
./bb -b release http-perf --nginx
224226
./bb -b release http-perf --delay 5ms
225227
./bb -b release http-perf --connections 1 512 1024 2048
226228
./bb -b release http-perf --flamegraph
@@ -268,8 +270,9 @@ Run multiple perf benchmarks in one shot.
268270
| `--net` | Run net-perf |
269271
| `--net-asio` | Run net-perf-asio |
270272
| `--sockperf` | Run sockperf comparison |
271-
| `--http` | Run http-perf (fibers) |
272-
| `--http-threads` | Run http-perf (threads) |
273+
| `--http` | Run http-perf (internal server, fiber client) |
274+
| `--http-threads` | Run http-perf (internal server, thread client) |
275+
| `--http-nginx` | Run http-perf against nginx |
273276
| `--s3` | Run s3-perf (fibers) |
274277
| `--s3-threads` | Run s3-perf (threads) |
275278
| `--all` | Run everything |

‎docs/perf.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Performance Results
22

33
Measurements on an AWS instance (32-CPU Intel Xeon Platinum 8488C, Linux 6.17, release build `-O3`).
4-
Results are reproducible with `./bb -b release perf --file --fio --net --net-asio --http --http-threads --s3 --s3-threads`.
4+
Results are reproducible with `./bb -b release perf --file --fio --net --net-asio --http --http-threads --http-nginx --s3 --s3-threads`.
55

66
---
77

0 commit comments

Comments
 (0)