pepe-http 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,235 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.52.0](https://github.com/omarmhaimdat/pepe/compare/v0.51.1...v0.52.0) - 2026-10-20
10
+
11
+ ### Added
12
+
13
+ - *(ui)* the screens in the pepper's colours: a band for the mode, cards, tags ([#220](https://github.com/omarmhaimdat/pepe/pull/220))
14
+
15
+ ## What
16
+
17
+ pepe's screens take the site's look, starting with the shared pieces and
18
+ the load-test dashboard.
19
+
20
+ - **The palette.**
21
+ - `pepe` now has an ink ground, cream text and the pepper's red as the
22
+ one accent (it was ember), lime for good and gold for warnings.
23
+ - The heatmap runs from ink to red to cream.
24
+ - `paper` takes the site's cream.
25
+ - There are three new roles, each the same in every theme: the ink
26
+ written on a band or a badge, a card's hard shadow (red on dark, ink on
27
+ light), and the modes' band colours.
28
+ - **The kit** ([src/ui/kit.rs](src/ui/kit.rs)):
29
+ - `band`: the mode's colour across the top, with `pepe` in an ink chip,
30
+ the title in ink and the site's checker strip under it.
31
+ - `card`: a square frame on the panel surface, its title a tag set into
32
+ the border, and an optional hard shadow half a cell right and below. The
33
+ frame sits in the panel's existing padding, so nothing drawn inside
34
+ moves.
35
+ - `tag`, `badge`, `corner`: tags are reverse video, so they read in
36
+ every theme, including `NO_COLOR`.
37
+ - Every panel is square now, and key chips and tabs are tags. The picked
38
+ tab has the red corner square, and titles inside a card are small
39
+ capitals.
40
+ - **The dashboard:**
41
+ - The ember band holds the method, the URL, the state, the concurrency
42
+ and the clock.
43
+ - The big numbers' names are tags, and the verdict is a badge in ink on
44
+ its level's colour.
45
+ - On the live tab, the charts, the totals, the latest requests and the
46
+ errors are cards, and the charts card carries the shadow.
47
+
48
+ Ping, ramp and setup get their bands (lime, gold, red) in follow-ups.
49
+ The palette already holds those colours, and the kit's `Band` takes a
50
+ variant per screen as each one moves over. Those screens already get the
51
+ square frames, tags and chips from this change.
52
+
53
+ ## Why
54
+
55
+ The site and the docs have the pepper's look
56
+ ([omarmhaimdat/pepe#216](https://github.com/omarmhaimdat/pepe/pull/216)),
57
+ and the screens didn't match. The mock-up that came before this work
58
+ recorded the real screens and laid them out again in the site's style.
59
+ This PR builds that design for the dashboard.
60
+
61
+ ## Checked
62
+
63
+ - `cargo test`: 409 passed. Four tests that read tab titles now expect
64
+ small capitals.
65
+ - `cargo +1.98 clippy --all-targets -- -D warnings` and `cargo fmt
66
+ --check`: clean.
67
+ - Recorded the live dashboard at 120×36 against `bench/server` on
68
+ localhost in a hidden terminal, in the `pepe` and `paper` themes, and
69
+ compared it with the mock-up.
70
+ - Ping and setup were recorded too, to check the square frames, tag
71
+ titles, chips and tabs there.
72
+ - `python3 site/build-docs.py --check`: current. The themes table in
73
+ `docs/install.md` describes the new palettes.
74
+
75
+
76
+ ## [0.51.1](https://github.com/omarmhaimdat/pepe/compare/v0.51.0...v0.51.1) - 2026-10-19
77
+
78
+ ### Performance
79
+
80
+ - drop axoupdater, so macOS no longer links Security.framework ([#217](https://github.com/omarmhaimdat/pepe/pull/217))
81
+
82
+ Measured first: the bench/ suite on macOS (M4 Pro), with wrk and k6 in
83
+ it for the first time beside oha and vegeta. pepe's CPU was level with
84
+ wrk's and a quarter of oha's. Its memory was not first: 10.7 to 15.0 MB
85
+ where wrk held 3.1, and `pepe --version` alone held 8.4 MB.
86
+
87
+ **Cause.** `otool -L` showed the binary linking `Security.framework` and
88
+ `CoreFoundation.framework`, which dyld loads at every launch. They came
89
+ from axoupdater's second reqwest (0.13), whose platform certificate
90
+ verifier is Security.framework on macOS. pepe's own HTTP uses rustls
91
+ with webpki roots. A C hello-world goes from 1.4 to 5.9 MB RSS just by
92
+ linking those two frameworks.
93
+
94
+ **Change.** `pepe self-update` now does axoupdater's job itself:
95
+ - reads `pepe-receipt.json` (`$XDG_CONFIG_HOME/pepe`, `~/.config/pepe`,
96
+ `%LOCALAPPDATA%\pepe`) and checks it is for this executable, keeping the
97
+ cargo-dist 0.10–0.14 `bin` workaround;
98
+ - downloads the release's `pepe-installer.sh` / `.ps1` with pepe's own
99
+ reqwest;
100
+ - runs it with `PEPE_INSTALL_DIR`, `CARGO_DIST_FORCE_INSTALL_DIR` and
101
+ `PEPE_NO_MODIFY_PATH` as the receipt says.
102
+
103
+ On Windows the running exe is renamed aside before the install and
104
+ restored if the install fails, as axoupdater did. One difference: the
105
+ `.previous.exe` is removed at the next self-update rather than
106
+ self-deleted. New tests cover the receipt and run a stand-in installer
107
+ to check its environment and the error message.
108
+
109
+ The binary now links only `libSystem` and `libiconv`. It is 10.2 → 8.0
110
+ MB on disk, and 62 of 286 crates leave the lockfile.
111
+
112
+ **Numbers (macOS; full tables in bench/README.md under "What the binary
113
+ links", CSVs in bench/results/)**
114
+
115
+ | | before | after |
116
+ | --- | --- | --- |
117
+ | tiny-c64, peak MB | 10.8–11.6 | 6.9 |
118
+ | tiny-c1000, peak MB | 13.8–14.6 | 9.5–10.1 |
119
+ | tls-c64, peak MB | 15.0 | 10.0–10.5 |
120
+ | million-c64, peak MB | 10.7–12.0 | 6.2 |
121
+ | every workload, memory | | −29 to −45% |
122
+ | 1M GETs, CPU ms/1k (median of 5 alternating) | 6.10 | 6.08 |
123
+ | 400k TLS, CPU ms/1k (median of 5 alternating) | 6.55 | 6.53 |
124
+ | dashboard, 200k at 64 | 1.24–1.28 s · 15.4–15.9 MB | 1.26–1.28 s ·
125
+ 11.3–11.5 MB |
126
+
127
+ `bench/compare.sh`, best of 3: CPU +0.8 to +4.9% (inside the rounds'
128
+ spread; the 5-round medians above show no change), memory −30 to −44%.
129
+
130
+ **Where pepe still isn't first (macOS):**
131
+ - Memory against wrk at ≤256 connections: 6.2–7.6 MB vs 3.1–4.7. What is
132
+ left is clean code pages; the physical footprint is 3.3 MB vs wrk's 2.3.
133
+ From 1,000 connections, and over TLS, pepe now holds less than wrk.
134
+ - CPU at 1,000 slow connections: wrk 6.4–6.7 vs pepe 7.2–8.0 ms/1k,
135
+ mostly kernel time.
136
+ - TLS requests a second: oha and k6 on 14 threads beat pepe's one. wrk
137
+ on one thread is level with it.
138
+
139
+ **Not measured:** Linux. Docker wasn't running here. On Linux the
140
+ frameworks don't exist, and the second reqwest's verifier is pure Rust,
141
+ so the published 4.0 MB musl number isn't expected to move. The
142
+ Benchmarks workflow checks it on the next release PR. docs/benchmarks.md
143
+ quotes Linux numbers only, so it is unchanged.
144
+
145
+
146
+
147
+ ### Other
148
+
149
+ - the site in the pepper's colours, and a page for every config file ([#216](https://github.com/omarmhaimdat/pepe/pull/216))
150
+
151
+ ## What
152
+
153
+ **The site, restyled.** The front page and every docs page take the
154
+ mascot's own palette: its cream (`#FFF1E0`) and ink, pepper red, lime,
155
+ gold and ember, with Geist for prose and Geist Mono for code, square
156
+ edges and hard shadows.
157
+
158
+ - **The front page** (`site/index.html`) is bands of colour, one a mode:
159
+ ping split into its five phases, a ramp bending at its capacity,
160
+ compare's before and after, the guardrails for agents, every mode, and
161
+ the benchmarks. Requests cross the hero behind a live ping card. The
162
+ install is one line to copy, with `via curl · brew · powershell · docker
163
+ · nix · cargo` to swap it.
164
+ - **The docs** stay calm, with no bands. A tag sits above each title
165
+ with its group and command (`MODES` · `pepe ping`), and the subject is
166
+ selected. Code blocks mark `pepe` and dim the comments, and TOML tables
167
+ are coloured. The sidebar's current page is an ink block, and the
168
+ columns have no scroll bar until the pointer is over them.
169
+
170
+ **A new page: [Config files](docs/config.md).** It covers everything a
171
+ TOML file can say, in one place:
172
+
173
+ - **`pepe.toml`:** every key with what it does and its flag; the rules
174
+ (flags win, length is said once, on/off keys only switch on, unknown
175
+ keys are errors, this directory only); and recipes (guardrails, a soak,
176
+ a CSV-driven run, a ramp, a ping watch).
177
+ - **The other files:**
178
+ - `[[webhook]]` tables, with every key and hole;
179
+ - where `${NAME}` is read, and where it isn't;
180
+ - saved tests: how they're made and named, and how `--load` picks the
181
+ mode;
182
+ - `settings.toml`;
183
+ - which file wins, including the caps;
184
+ - flow files;
185
+ - `slack.toml`.
186
+ - **Refusals:** what pepe says when a file is refused.
187
+
188
+ It's linked from the overview, `llms.txt` and the load-testing page's
189
+ config section, and it sits in the sidebar under Reference.
190
+
191
+ ## Why
192
+
193
+ The site looked like a generic docs theme rather than pepe. What a
194
+ config file can hold was spread over five pages (load testing, install,
195
+ flows, webhooks, agents), and some of it was on none of them:
196
+
197
+ - `vars` refuses `pepe api` and `pepe ping`.
198
+ - `max-requests` and `max-rate` refuse a ramp.
199
+ - `${NAME}` is filled only in webhooks.
200
+ - A saved test keeps its headers, tokens included.
201
+ - `vars` and `export` from `[defaults]` don't reach under a `pepe.toml`.
202
+ - A cap typed on the command line replaces the file's.
203
+
204
+ ## Checked
205
+
206
+ - `python3 site/build-docs.py --check`: current.
207
+ - Every TOML example on the new page passes `--dry-run` in its own mode
208
+ (run, ramp, ping, flow, settings), with each error message the page
209
+ quotes produced by pepe itself.
210
+ - Looked at the front page and the docs in light and dark, at desktop
211
+ and phone widths, with no sideways scroll.
212
+ - No Rust changed.
213
+
214
+
215
+ - *(nix)* update flake.lock ([#215](https://github.com/omarmhaimdat/pepe/pull/215))
216
+
217
+ Automated changes by the
218
+ [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
219
+ GitHub Action.
220
+
221
+ ```
222
+ Flake lock file updates:
223
+
224
+ • Updated input 'nixpkgs':
225
+ 'github:NixOS/nixpkgs/6510408d147d8c5e6d76043e899e9251756f6a75?narHash=sha256-XK4KceonkwD8LuMAt/vNrz982mXJM5jeHAxMwsUXXAQ%3D' (2026-10-10)
226
+ → 'github:NixOS/nixpkgs/fe13242281a67641c0102cdb1087f0ebe586c7df?narHash=sha256-zp8ToDMnqZcu4o4IH9pdwXFXGp7yLm/M0dEnNWnyd7I%3D' (2026-10-15)
227
+ ```
228
+
229
+ ### Running GitHub Actions on this PR
230
+
231
+ GitHub Actions will not run workflows on pull requests which are opened
232
+ by a GitHub Action.
233
+
234
+ **To run GitHub Actions workflows on this PR, close and re-open this
235
+ pull request.**
236
+
237
+
9
238
  ## [0.51.0](https://github.com/omarmhaimdat/pepe/compare/v0.50.0...v0.51.0) - 2026-10-18
10
239
 
11
240
  ### Added
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "pepe-http",
22
- "version": "0.51.0"
22
+ "version": "0.52.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.51.0"
51
+ "version": "0.52.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/omarmhaimdat/pepe/releases/download/v0.51.0"
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.52.0"
4
4
  ],
5
5
  "author": "Omar MHAIMDAT",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "zipExt": ".tar.xz"
120
120
  }
121
121
  },
122
- "version": "0.51.0",
122
+ "version": "0.52.0",
123
123
  "volta": {
124
124
  "node": "18.14.1",
125
125
  "npm": "9.5.0"