pepe-http 0.0.0-stage → 0.34.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.
@@ -0,0 +1,52 @@
1
+ {
2
+ "lockfileVersion": 3,
3
+ "name": "pepe-http",
4
+ "packages": {
5
+ "": {
6
+ "bin": {
7
+ "pepe": "run-pepe.js"
8
+ },
9
+ "dependencies": {
10
+ "detect-libc": "^2.1.2"
11
+ },
12
+ "devDependencies": {
13
+ "prettier": "^3.9.6"
14
+ },
15
+ "engines": {
16
+ "node": ">=14.14",
17
+ "npm": ">=6"
18
+ },
19
+ "hasInstallScript": true,
20
+ "license": "MIT",
21
+ "name": "pepe-http",
22
+ "version": "0.34.0"
23
+ },
24
+ "node_modules/detect-libc": {
25
+ "engines": {
26
+ "node": ">=8"
27
+ },
28
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
29
+ "license": "Apache-2.0",
30
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
31
+ "version": "2.1.2"
32
+ },
33
+ "node_modules/prettier": {
34
+ "bin": {
35
+ "prettier": "bin/prettier.cjs"
36
+ },
37
+ "dev": true,
38
+ "engines": {
39
+ "node": ">=14"
40
+ },
41
+ "funding": {
42
+ "url": "https://github.com/prettier/prettier?sponsor=1"
43
+ },
44
+ "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==",
45
+ "license": "MIT",
46
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz",
47
+ "version": "3.9.6"
48
+ }
49
+ },
50
+ "requires": true,
51
+ "version": "0.34.0"
52
+ }
package/package.json CHANGED
@@ -1,6 +1,127 @@
1
1
  {
2
+ "artifactDownloadUrls": [
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.34.0"
4
+ ],
5
+ "author": "Omar MHAIMDAT",
6
+ "bin": {
7
+ "pepe": "run-pepe.js"
8
+ },
9
+ "dependencies": {
10
+ "detect-libc": "^2.1.2"
11
+ },
12
+ "description": "HTTP load generator and performance testing tool",
13
+ "devDependencies": {
14
+ "prettier": "^3.9.6"
15
+ },
16
+ "engines": {
17
+ "node": ">=14.14",
18
+ "npm": ">=6"
19
+ },
20
+ "glibcMinimum": {
21
+ "major": 2,
22
+ "series": 31
23
+ },
24
+ "homepage": "https://github.com/omarmhaimdat/pepe",
25
+ "keywords": [
26
+ "command-line-utilities",
27
+ "network-programming",
28
+ "testing",
29
+ "performance",
30
+ "benchmark",
31
+ "stress",
32
+ "utility"
33
+ ],
34
+ "license": "MIT",
2
35
  "name": "pepe-http",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
36
+ "preferUnplugged": true,
37
+ "repository": "https://github.com/omarmhaimdat/pepe",
38
+ "scripts": {
39
+ "fmt": "prettier --write **/*.js",
40
+ "fmt:check": "prettier --check **/*.js",
41
+ "postinstall": "node ./install.js"
42
+ },
43
+ "supportedPlatforms": {
44
+ "aarch64-apple-darwin": {
45
+ "artifactName": "pepe-aarch64-apple-darwin.tar.xz",
46
+ "bins": {
47
+ "pepe": "pepe"
48
+ },
49
+ "zipExt": ".tar.xz"
50
+ },
51
+ "aarch64-pc-windows-msvc": {
52
+ "artifactName": "pepe-x86_64-pc-windows-msvc.zip",
53
+ "bins": {
54
+ "pepe": "pepe.exe"
55
+ },
56
+ "zipExt": ".zip"
57
+ },
58
+ "aarch64-unknown-linux-gnu": {
59
+ "artifactName": "pepe-aarch64-unknown-linux-musl.tar.xz",
60
+ "bins": {
61
+ "pepe": "pepe"
62
+ },
63
+ "zipExt": ".tar.xz"
64
+ },
65
+ "aarch64-unknown-linux-musl-dynamic": {
66
+ "artifactName": "pepe-aarch64-unknown-linux-musl.tar.xz",
67
+ "bins": {
68
+ "pepe": "pepe"
69
+ },
70
+ "zipExt": ".tar.xz"
71
+ },
72
+ "aarch64-unknown-linux-musl-static": {
73
+ "artifactName": "pepe-aarch64-unknown-linux-musl.tar.xz",
74
+ "bins": {
75
+ "pepe": "pepe"
76
+ },
77
+ "zipExt": ".tar.xz"
78
+ },
79
+ "x86_64-apple-darwin": {
80
+ "artifactName": "pepe-x86_64-apple-darwin.tar.xz",
81
+ "bins": {
82
+ "pepe": "pepe"
83
+ },
84
+ "zipExt": ".tar.xz"
85
+ },
86
+ "x86_64-pc-windows-gnu": {
87
+ "artifactName": "pepe-x86_64-pc-windows-msvc.zip",
88
+ "bins": {
89
+ "pepe": "pepe.exe"
90
+ },
91
+ "zipExt": ".zip"
92
+ },
93
+ "x86_64-pc-windows-msvc": {
94
+ "artifactName": "pepe-x86_64-pc-windows-msvc.zip",
95
+ "bins": {
96
+ "pepe": "pepe.exe"
97
+ },
98
+ "zipExt": ".zip"
99
+ },
100
+ "x86_64-unknown-linux-gnu": {
101
+ "artifactName": "pepe-x86_64-unknown-linux-musl.tar.xz",
102
+ "bins": {
103
+ "pepe": "pepe"
104
+ },
105
+ "zipExt": ".tar.xz"
106
+ },
107
+ "x86_64-unknown-linux-musl-dynamic": {
108
+ "artifactName": "pepe-x86_64-unknown-linux-musl.tar.xz",
109
+ "bins": {
110
+ "pepe": "pepe"
111
+ },
112
+ "zipExt": ".tar.xz"
113
+ },
114
+ "x86_64-unknown-linux-musl-static": {
115
+ "artifactName": "pepe-x86_64-unknown-linux-musl.tar.xz",
116
+ "bins": {
117
+ "pepe": "pepe"
118
+ },
119
+ "zipExt": ".tar.xz"
120
+ }
121
+ },
122
+ "version": "0.34.0",
123
+ "volta": {
124
+ "node": "18.14.1",
125
+ "npm": "9.5.0"
126
+ }
6
127
  }
package/run-pepe.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { run } = require("./binary");
4
+ run("pepe");
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pepe.mhaimdat.com/schema/compare.schema.json",
4
+ "title": "pepe compare report",
5
+ "description": "What `pepe compare --json` prints: the verdict, each number before and after with its change and the spread it was held against, the findings, and the verdict as a badge. Fields are added over time and never renamed within a schema_version.",
6
+ "type": "object",
7
+ "required": ["schema_version", "verdict", "regression", "before", "after", "changes", "findings", "badge"],
8
+ "properties": {
9
+ "schema_version": { "type": "integer", "const": 1 },
10
+ "verdict": { "type": "string", "enum": ["better", "faster", "same", "slower", "worse"] },
11
+ "regression": { "type": "boolean", "description": "Slower or Worse: what --gate stops on" },
12
+ "before": { "$ref": "#/$defs/side" },
13
+ "after": { "$ref": "#/$defs/side" },
14
+ "changes": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "required": ["metric", "before", "after", "noise_percent", "significant"],
19
+ "properties": {
20
+ "metric": { "type": "string", "description": "p99_ms, median_ms, requests_per_second, capacity_per_second, or a ping phase such as connect_ms" },
21
+ "before": { "type": "number" },
22
+ "after": { "type": "number" },
23
+ "change_percent": { "type": "number", "description": "Absent when `before` is zero" },
24
+ "noise_percent": { "type": "number", "description": "How much this number wobbles between two runs like these; a change inside it is not called a change" },
25
+ "significant": { "type": "boolean" }
26
+ }
27
+ }
28
+ },
29
+ "findings": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "required": ["level", "text"],
34
+ "properties": {
35
+ "level": { "type": "string", "enum": ["Healthy", "Degraded", "Failing"] },
36
+ "text": { "type": "string" }
37
+ }
38
+ }
39
+ },
40
+ "badge": {
41
+ "type": "object",
42
+ "description": "The verdict in a badge's three parts, for shields.io and the like",
43
+ "required": ["label", "message", "color"],
44
+ "properties": {
45
+ "label": { "type": "string" },
46
+ "message": { "type": "string" },
47
+ "color": { "type": "string", "description": "A hex colour without the #" }
48
+ }
49
+ }
50
+ },
51
+ "$defs": {
52
+ "side": {
53
+ "type": "object",
54
+ "description": "What a report says, in the numbers the comparison is made of",
55
+ "required": ["file", "requests", "failed_percent"],
56
+ "properties": {
57
+ "file": { "type": "string" },
58
+ "target": { "type": "string" },
59
+ "concurrency": { "type": "integer" },
60
+ "requests": { "type": "integer", "minimum": 0 },
61
+ "failed_percent": { "type": "number" },
62
+ "median_ms": { "type": "number" },
63
+ "p99_ms": { "type": "number" },
64
+ "requests_per_second": { "type": "number" },
65
+ "capacity_per_second": { "type": "number" },
66
+ "holds_concurrency": { "type": "integer" },
67
+ "every_s": { "type": "number", "description": "A ping's interval" },
68
+ "dns_ms": { "type": "number" },
69
+ "connect_ms": { "type": "number" },
70
+ "tls_ms": { "type": "number" },
71
+ "tls_resumed_ms": { "type": "number" },
72
+ "ttfb_ms": { "type": "number" },
73
+ "download_ms": { "type": "number" }
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,188 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pepe.mhaimdat.com/schema/ping.schema.json",
4
+ "title": "pepe ping report",
5
+ "description": "What `pepe ping --json` prints and `--save` writes: each target's pings, latency, phases, TLS and certificate. One line of `--jsonl` is a `sample`. Fields are added over time and never renamed within a schema_version.",
6
+ "type": "object",
7
+ "required": ["schema_version", "mode", "every_s", "elapsed_s", "interrupted", "targets"],
8
+ "properties": {
9
+ "schema_version": { "type": "integer", "const": 1 },
10
+ "mode": { "type": "string", "const": "ping" },
11
+ "every_s": { "type": "number", "description": "Seconds between pings" },
12
+ "elapsed_s": { "type": "number" },
13
+ "interrupted": { "type": "boolean" },
14
+ "slo": {
15
+ "type": "object",
16
+ "description": "The --slo limits, in milliseconds, by phase",
17
+ "additionalProperties": { "type": "number" }
18
+ },
19
+ "targets": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "required": ["name", "target", "sent", "answered", "lost", "loss", "timeouts", "latency_ms", "phases_ms", "bytes", "status_codes", "failures", "slo"],
24
+ "properties": {
25
+ "name": { "type": "string" },
26
+ "target": { "type": "string", "description": "The URL, the host and port, or the command" },
27
+ "sent": { "type": "integer", "minimum": 0 },
28
+ "answered": { "type": "integer", "minimum": 0 },
29
+ "lost": { "type": "integer", "minimum": 0 },
30
+ "loss": { "type": "number", "minimum": 0, "maximum": 1, "description": "Lost over sent" },
31
+ "timeouts": { "type": "integer", "minimum": 0 },
32
+ "latency_ms": {
33
+ "type": "object",
34
+ "required": ["min", "avg", "max", "jitter", "p50", "p95", "p99"],
35
+ "properties": {
36
+ "last": { "type": ["number", "null"] },
37
+ "min": { "type": "number" },
38
+ "avg": { "type": "number" },
39
+ "max": { "type": "number" },
40
+ "jitter": { "type": "number", "description": "Mean difference between one answer and the next" },
41
+ "p50": { "type": "number" },
42
+ "p95": { "type": "number" },
43
+ "p99": { "type": "number" }
44
+ }
45
+ },
46
+ "phases_ms": {
47
+ "type": "object",
48
+ "description": "Each phase's distribution; null when nothing measured it",
49
+ "properties": {
50
+ "dns": { "$ref": "#/$defs/phase" },
51
+ "connect": { "$ref": "#/$defs/phase" },
52
+ "tls_full": { "$ref": "#/$defs/phase" },
53
+ "tls_resumed": { "$ref": "#/$defs/phase" },
54
+ "ttfb": { "$ref": "#/$defs/phase" },
55
+ "download": { "$ref": "#/$defs/phase" }
56
+ }
57
+ },
58
+ "reused_connections": { "type": "integer", "minimum": 0 },
59
+ "bytes": { "type": "integer", "minimum": 0 },
60
+ "status_codes": { "type": "object", "additionalProperties": { "type": "integer" } },
61
+ "failures": { "type": "object", "description": "By cause", "additionalProperties": { "type": "integer" } },
62
+ "remote": { "type": ["string", "null"] },
63
+ "local": { "type": ["string", "null"] },
64
+ "http_version": { "type": ["string", "null"] },
65
+ "tls": { "$ref": "#/$defs/tls" },
66
+ "slo": {
67
+ "type": "object",
68
+ "required": ["pass", "violations"],
69
+ "properties": {
70
+ "pass": { "type": "boolean" },
71
+ "violations": { "type": "integer", "minimum": 0 },
72
+ "worst_ms": { "type": "object", "additionalProperties": { "type": "number" } }
73
+ }
74
+ },
75
+ "findings": {
76
+ "type": "array",
77
+ "description": "What to look at, most serious first",
78
+ "items": {
79
+ "type": "object",
80
+ "required": ["level", "text"],
81
+ "properties": {
82
+ "level": { "type": "string", "enum": ["good", "note", "warn", "bad"] },
83
+ "text": { "type": "string" }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "$defs": {
92
+ "phase": {
93
+ "type": ["object", "null"],
94
+ "required": ["count", "median_ms", "p99_ms", "max_ms"],
95
+ "properties": {
96
+ "count": { "type": "integer", "minimum": 0 },
97
+ "median_ms": { "type": "number" },
98
+ "p99_ms": { "type": "number" },
99
+ "max_ms": { "type": "number" }
100
+ }
101
+ },
102
+ "tls": {
103
+ "type": ["object", "null"],
104
+ "properties": {
105
+ "version": { "type": "string" },
106
+ "cipher": { "type": "string" },
107
+ "alpn": { "type": ["string", "null"] },
108
+ "resumed": { "type": "boolean" },
109
+ "cert": {
110
+ "type": ["object", "null"],
111
+ "properties": {
112
+ "subject": { "type": "string" },
113
+ "issuer": { "type": "string" },
114
+ "names": { "type": "array", "items": { "type": "string" } },
115
+ "not_before": { "type": "string", "description": "RFC 3339, UTC" },
116
+ "not_after": { "type": "string" },
117
+ "days_left": { "type": "integer" },
118
+ "valid": { "type": "boolean" }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "sample": {
124
+ "type": "object",
125
+ "description": "One line of --jsonl: one ping",
126
+ "required": ["schema_version", "target", "url", "seq", "time", "at_s", "ok", "answered", "timeout", "timings_ms", "slo"],
127
+ "properties": {
128
+ "schema_version": { "type": "integer", "const": 1 },
129
+ "target": { "type": "string" },
130
+ "url": { "type": "string" },
131
+ "seq": { "type": "integer" },
132
+ "time": { "type": "string" },
133
+ "at_s": { "type": "number" },
134
+ "ok": { "type": "boolean" },
135
+ "answered": { "type": "boolean" },
136
+ "timeout": { "type": "boolean" },
137
+ "status": { "type": ["integer", "null"] },
138
+ "error": { "type": ["string", "null"] },
139
+ "timings_ms": {
140
+ "type": "object",
141
+ "required": ["total"],
142
+ "properties": {
143
+ "dns": { "type": ["number", "null"] },
144
+ "connect": { "type": ["number", "null"] },
145
+ "tls": { "type": ["number", "null"] },
146
+ "ttfb": { "type": ["number", "null"] },
147
+ "download": { "type": ["number", "null"] },
148
+ "total": { "type": "number" }
149
+ }
150
+ },
151
+ "reused_connection": { "type": "boolean" },
152
+ "bytes": { "type": "integer" },
153
+ "remote": { "type": ["string", "null"] },
154
+ "local": { "type": ["string", "null"] },
155
+ "http_version": { "type": ["string", "null"] },
156
+ "tls": { "$ref": "#/$defs/tls" },
157
+ "redirects": {
158
+ "type": "array",
159
+ "items": {
160
+ "type": "object",
161
+ "properties": {
162
+ "url": { "type": "string" },
163
+ "status": { "type": "integer" },
164
+ "took_ms": { "type": "number" }
165
+ }
166
+ }
167
+ },
168
+ "slo": {
169
+ "type": "object",
170
+ "properties": {
171
+ "pass": { "type": "boolean" },
172
+ "violations": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "object",
176
+ "properties": {
177
+ "key": { "type": "string" },
178
+ "threshold_ms": { "type": "number" },
179
+ "actual_ms": { "type": "number" }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pepe.mhaimdat.com/schema/ramp.schema.json",
4
+ "title": "pepe ramp report",
5
+ "description": "What `pepe ramp --json` prints: each step of the climb, the level that held, and the capacity estimate. Fields are added over time and never renamed within a schema_version.",
6
+ "type": "object",
7
+ "required": ["schema_version", "ended", "requests", "failed_requests", "seconds", "findings", "steps"],
8
+ "properties": {
9
+ "schema_version": { "type": "integer", "const": 1 },
10
+ "ended": { "type": "string", "description": "completed, interrupted, or `stopped: <condition>`" },
11
+ "holds_concurrency": { "type": ["integer", "null"], "description": "The highest level the target kept up with" },
12
+ "capacity": {
13
+ "type": ["object", "null"],
14
+ "description": "A saturation curve fitted to the steps; null when the curve hadn't begun to bend",
15
+ "required": ["requests_per_second", "concurrency", "extrapolated"],
16
+ "properties": {
17
+ "requests_per_second": { "type": "number" },
18
+ "concurrency": { "type": "number", "description": "Where that rate is reached" },
19
+ "extrapolated": { "type": "boolean", "description": "Past the levels that were run" },
20
+ "latency_doubles_at_concurrency": { "type": ["number", "null"] }
21
+ }
22
+ },
23
+ "requests": { "type": "integer", "minimum": 0 },
24
+ "failed_requests": { "type": "integer", "minimum": 0 },
25
+ "seconds": { "type": "number", "description": "Time spent on the steps, pauses left out" },
26
+ "findings": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "required": ["level", "title"],
31
+ "properties": {
32
+ "level": { "type": "string", "enum": ["healthy", "degraded", "failing"] },
33
+ "title": { "type": "string" },
34
+ "detail": { "type": ["string", "null"] }
35
+ }
36
+ }
37
+ },
38
+ "steps": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "required": ["concurrency", "seconds", "requests", "failed_requests", "requests_per_second", "successful_per_second", "error_rate_percent", "median_ms", "p99_ms", "status_codes"],
43
+ "properties": {
44
+ "concurrency": { "type": "integer" },
45
+ "seconds": { "type": "number" },
46
+ "requests": { "type": "integer", "minimum": 0 },
47
+ "failed_requests": { "type": "integer", "minimum": 0 },
48
+ "requests_per_second": { "type": "number" },
49
+ "successful_per_second": { "type": "number" },
50
+ "error_rate_percent": { "type": "number" },
51
+ "data_transfer_bytes": { "type": "integer", "minimum": 0 },
52
+ "min_ms": { "type": "number" },
53
+ "avg_ms": { "type": "number" },
54
+ "median_ms": { "type": "number" },
55
+ "p90_ms": { "type": "number" },
56
+ "p95_ms": { "type": "number" },
57
+ "p99_ms": { "type": "number" },
58
+ "max_ms": { "type": "number" },
59
+ "status_codes": { "type": "object", "additionalProperties": { "type": "integer" } },
60
+ "timeouts": { "type": "integer", "minimum": 0 },
61
+ "connection_errors": { "type": "integer", "minimum": 0 },
62
+ "note": { "type": ["string", "null"], "description": "What the step was: where throughput stopped following the load, where it broke" }
63
+ }
64
+ }
65
+ },
66
+ "generator": {
67
+ "type": "object",
68
+ "properties": {
69
+ "threads": { "type": "integer" },
70
+ "peak_busy_percent": { "type": ["integer", "null"] }
71
+ }
72
+ }
73
+ }
74
+ }