docs(bench): disclose charset + secure-cost scope; add typecheck:bench script

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-06 23:17:58 -05:00
1 parent daa13f6f78
commit 7593d1425a
4 files changed
+128 -113

No files matched your search

+7
View File
@@ -147,6 +147,10 @@ function renderSecureCost(secureCost: RenderData['secureCost']): string {
'',
deltaNote,
'',
'> Scope: this micro-bench currently measures the security-**headers** cost only (`security:false` vs',
'> `security:true` on `/hello`). The incremental cost of `@body` validation and CORS is not separately',
'> measured yet (deferred) — so this table is narrower than the design spec\'s 4-point plan.',
'',
].join('\n');
}
@@ -167,6 +171,9 @@ function renderMethodology(): string {
' `JSON.stringify` in these benchmarks. Fastify\'s `fast-json-stringify` response serializer is',
' deliberately **not** engaged — only its input `schema.body` validation is used — so no framework',
' gets a serialization fast path the others lack.',
'- **Content-type charset asymmetry (disclosed, not controlled)**: green-tea and raw-http send',
' `Content-Type: application/json` while Express and Fastify send `application/json; charset=utf-8`.',
' This is a minor header-byte asymmetry that is disclosed here rather than normalized away.',
'',
].join('\n');
}