← Hushfang · Raw JSON · Measured source 9e0b49c · Working tree after 0.2.0
Hushbench

Runtime comparison

Python 3.12.16 / 7 cases / 7 active adapters

Output quality

AdapterExact outputVisible canariesPublic controls intactErrorsDrops
hushfang
7 / 7
0 / 52 / 200
hushfang-tokens
7 / 7
0 / 52 / 200
logmask
7 / 7
0 / 52 / 200
actions-runner
6 / 7
1 / 52 / 200
loggingredactor
4 / 7
3 / 52 / 200
airflow
4 / 7
3 / 52 / 200
stdlib
2 / 7
5 / 52 / 200

Exact output counts full-record matches. Visible canaries count sensitive cases with an exposed marker. Errors and drops count as failed cases.

Shared text-registration cohort. All adapters received the same 7 cases. 0 cases requiring binary registration were excluded for every adapter. Airflow uses its stdlib filter. Actions Runner receives the rendered text via Python.NET. Runner timings include interop.

Registry latency

Reference run on Apple M1 Max. Each sample pairs Hushfang with the standard formatter on the same input.

Added formatter latencyClean lineOne match
Added p50020 µs40 µs60 µs1101001k10k100k1MClean line, 1 value, 3.04 µsClean line, 10 values, 7.17 µsClean line, 100 values, 53.00 µsClean line, 1,000 values, 13.96 µsClean line, 10,000 values, 13.50 µsClean line, 100,000 values, 12.79 µsClean line, 1,000,000 values, 13.96 µsOne match, 1 value, 3.58 µsOne match, 10 values, 6.75 µsOne match, 100 values, 45.29 µsOne match, 1,000 values, 14.17 µsOne match, 10,000 values, 14.12 µsOne match, 100,000 values, 13.17 µsOne match, 1,000,000 values, 14.58 µsRegistered values · logarithmic scale

2026-12-06 UTC · Apple M1 Max · macOS-27.2.1-arm64-arm-64bit-Mach-O · Python 3.14.10 · Hushfang 0.2.0 (matcher adee25594302) · Pydantic 2.14.4 · 66-byte input · 31 paired samples per path and size.

Measurements and method

Per log record

SecretsInputStdlib p50Hushfang p50Added p50Hushfang p95
1Clean0.58 µs3.67 µs3.04 µs7.54 µs
1One match0.58 µs4.12 µs3.58 µs18.96 µs
10Clean0.58 µs7.75 µs7.17 µs11.33 µs
10One match0.58 µs7.29 µs6.75 µs8.29 µs
100Clean0.67 µs53.67 µs53.00 µs58.96 µs
100One match0.62 µs45.92 µs45.29 µs48.17 µs
1,000Clean0.58 µs14.54 µs13.96 µs18.75 µs
1,000One match0.58 µs14.79 µs14.17 µs17.79 µs
10,000Clean0.62 µs14.12 µs13.50 µs19.67 µs
10,000One match0.58 µs14.75 µs14.12 µs16.17 µs
100,000Clean0.58 µs13.38 µs12.79 µs17.58 µs
100,000One match0.54 µs13.71 µs13.17 µs15.62 µs
1,000,000Clean0.62 µs14.62 µs13.96 µs18.79 µs
1,000,000One match0.62 µs15.21 µs14.58 µs18.29 µs

Registry preparation

SecretsRegister batchPeak process RSS (MiB)
1118.58 µs39.6
10224.17 µs39.8
1001.16 ms39.6
1,00010.81 ms40.7
10,000111.88 ms53.7
100,0001.17 s189.3
1,000,00012.43 s1,536.6

Each row comes from a fresh process with the default exact registry. A single register(*values) call receives distinct synthetic 32-character ASCII SecretStr tokens. Setup time covers registration, including preparation of encoded forms. Peak RSS is the worker's process high-water mark, including input objects and temporary allocations. Linux and macOS report RSS in this experiment.

The clean line and the line containing one exact token have equal input length. Each path first checks the complete output and warms both formatters. Each subsequent sample times one format(record) call on a prebuilt record. Stdlib and Hushfang alternate first position in each pair. Added p50 is the median of the paired differences. P95 is the nearest-rank percentile of individual Hushfang calls. These measurements exclude logger dispatch, I/O, queueing, contention and field-name rules.

Reproduce with task bench:latency.

Adapter formatting time

Median microseconds per record across 5 batches of 250 calls after warm-up. Registration and I/O are excluded.

Adapter1 credential32 credentials128 credentials
stdlib2.972.922.95
hushfang11.9814.4514.31
hushfang-tokens13.6916.5816.13
logmask5.229.48168.25
loggingredactor9.2810.1913.65
airflow6.487.016.41
actions-runner11.9126.4466.8

Case explorer

7 cases
Username and escaped password in the authorityhttp / supportedstdlib leaked hushfang exact hushfang-tokens exact logmask exact loggingredactor leaked airflow leaked actions-runner exact

http-url-userinfo · Keep the host and path when both parts of userinfo are designated credentials.

Unmasked input

request=r-17 GET https://demo-client-294:maple%4042@api.example.invalid/files?page=2

Expected output

request=r-17 GET https://***:***@api.example.invalid/files?page=2

stdlib   leaked

request=r-17 GET https://demo-client-294:maple%4042@api.example.invalid/files?page=2

hushfang   exact

request=r-17 GET https://***:***@api.example.invalid/files?page=2

hushfang-tokens   exact

request=r-17 GET https://***:***@api.example.invalid/files?page=2

logmask   exact

request=r-17 GET https://***:***@api.example.invalid/files?page=2

loggingredactor   leaked

request=r-17 GET https://***:maple%4042@api.example.invalid/files?page=2

airflow   leaked

request=r-17 GET https://***:maple%4042@api.example.invalid/files?page=2

actions-runner   exact

request=r-17 GET https://***:***@api.example.invalid/files?page=2
Repeated percent-encoded access tokenhttp / supportedstdlib leaked hushfang exact hushfang-tokens exact logmask exact loggingredactor leaked airflow leaked actions-runner exact

http-url-query · Keep the query order and page number when an SDK repeats the same query parameter.

Unmasked input

GET https://api.example.invalid/files?access_token=cedar%2F47%2Bmint&page=2&access_token=cedar%2F47%2Bmint

Expected output

GET https://api.example.invalid/files?access_token=***&page=2&access_token=***

stdlib   leaked

GET https://api.example.invalid/files?access_token=cedar%2F47%2Bmint&page=2&access_token=cedar%2F47%2Bmint

hushfang   exact

GET https://api.example.invalid/files?access_token=***&page=2&access_token=***

hushfang-tokens   exact

GET https://api.example.invalid/files?access_token=***&page=2&access_token=***

logmask   exact

GET https://api.example.invalid/files?access_token=***&page=2&access_token=***

loggingredactor   leaked

GET https://api.example.invalid/files?access_token=cedar%2F47%2Bmint&page=2&access_token=cedar%2F47%2Bmint

airflow   leaked

GET https://api.example.invalid/files?access_token=cedar%2F47%2Bmint&page=2&access_token=cedar%2F47%2Bmint

actions-runner   exact

GET https://api.example.invalid/files?access_token=***&page=2&access_token=***
Credential in a path segmenthttp / supportedstdlib leaked hushfang exact hushfang-tokens exact logmask exact loggingredactor exact airflow exact actions-runner exact

http-url-path · Retain the host, route and public object type when a path component is a credential.

Unmasked input

GET https://api.example.invalid/files/route-Seed-8721/preview?page=2

Expected output

GET https://api.example.invalid/files/***/preview?page=2

stdlib   leaked

GET https://api.example.invalid/files/route-Seed-8721/preview?page=2

hushfang   exact

GET https://api.example.invalid/files/***/preview?page=2

hushfang-tokens   exact

GET https://api.example.invalid/files/***/preview?page=2

logmask   exact

GET https://api.example.invalid/files/***/preview?page=2

loggingredactor   exact

GET https://api.example.invalid/files/***/preview?page=2

airflow   exact

GET https://api.example.invalid/files/***/preview?page=2

actions-runner   exact

GET https://api.example.invalid/files/***/preview?page=2
Basic header derived from URL userinfohttp / supportedstdlib leaked hushfang exact hushfang-tokens exact logmask exact loggingredactor leaked airflow leaked actions-runner leaked

http-basic-header · A registration at the settings boundary must survive conversion into a Basic header.

Unmasked input

Authorization: Basic ZGVtby1jbGllbnQtMjk0Om1hcGxlQDQy status=403 request=r-17

Expected output

Authorization: Basic *** status=403 request=r-17

stdlib   leaked

Authorization: Basic ZGVtby1jbGllbnQtMjk0Om1hcGxlQDQy status=403 request=r-17

hushfang   exact

Authorization: Basic *** status=403 request=r-17

hushfang-tokens   exact

Authorization: Basic *** status=403 request=r-17

logmask   exact

Authorization: Basic *** status=403 request=r-17

loggingredactor   leaked

Authorization: Basic ZGVtby1jbGllbnQtMjk0Om1hcGxlQDQy status=403 request=r-17

airflow   leaked

Authorization: Basic ZGVtby1jbGllbnQtMjk0Om1hcGxlQDQy status=403 request=r-17

actions-runner   leaked

Authorization: Basic ZGVtby1jbGllbnQtMjk0Om1hcGxlQDQy status=403 request=r-17
Bearer token and request correlationhttp / supportedstdlib leaked hushfang exact hushfang-tokens exact logmask exact loggingredactor exact airflow exact actions-runner exact

http-bearer-header · Retain the authorization scheme and correlation ID when a client logs its headers.

Unmasked input

Authorization: Bearer demo-bearer-529 X-Request-ID: r-17

Expected output

Authorization: Bearer *** X-Request-ID: r-17

stdlib   leaked

Authorization: Bearer demo-bearer-529 X-Request-ID: r-17

hushfang   exact

Authorization: Bearer *** X-Request-ID: r-17

hushfang-tokens   exact

Authorization: Bearer *** X-Request-ID: r-17

logmask   exact

Authorization: Bearer *** X-Request-ID: r-17

loggingredactor   exact

Authorization: Bearer *** X-Request-ID: r-17

airflow   exact

Authorization: Bearer *** X-Request-ID: r-17

actions-runner   exact

Authorization: Bearer *** X-Request-ID: r-17
Public URL on the same hosthttp / supportedstdlib exact hushfang exact hushfang-tokens exact logmask exact loggingredactor exact airflow exact actions-runner exact

http-public-route · A call with the same public route and query keys must survive when their values are public.

Unmasked input

GET https://api.example.invalid/files/preview?view=summary&page=2

Expected output

GET https://api.example.invalid/files/preview?view=summary&page=2

stdlib   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

hushfang   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

hushfang-tokens   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

logmask   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

loggingredactor   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

airflow   exact

GET https://api.example.invalid/files/preview?view=summary&page=2

actions-runner   exact

GET https://api.example.invalid/files/preview?view=summary&page=2
Public authentication challenge and correlation IDhttp / supportedstdlib exact hushfang exact hushfang-tokens exact logmask exact loggingredactor exact airflow exact actions-runner exact

http-public-headers · Keep the 403 reason, auth challenge and correlation header for a denied request.

Unmasked input

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

Expected output

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

stdlib   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

hushfang   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

hushfang-tokens   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

logmask   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

loggingredactor   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

airflow   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

actions-runner   exact

403 Forbidden | WWW-Authenticate: Bearer realm="files" | X-Request-ID: r-17

Environment

Linux-7.0.0-1020-azure-x86_64-with-glibc2.43
hushbench 0.2.0   /   pydantic 2.14.4   /   hushfang 0.2.0   /   logmask 0.1.5   /   loggingredactor 0.0.7   /   airflow 1.4.0   /   actions-runner 2.338.2