Avatar for the Aureliolo user
Aureliolo
synthorg
BlogDocsChangelog

refactor: drain no_magic_numbers baseline to zero via Final hoists (#1856 phase 2)

#1872Merged
Comparing
refactor/issue-1856-phase-2-literal-migration
(
71ffdd6
) with
main
(
9070387
)
CodSpeed Performance Gauge
0%
Untouched
33
Skipped
21

Benchmarks

21 total
unwrap x500 (single object)
web/src/__tests__/benchmarks/api-client-pagination.bench.ts::api client unwrap
Skipped
40.4 µs*
unwrapPaginated x100 (50 rows)
web/src/__tests__/benchmarks/api-client-pagination.bench.ts::api client unwrap
Skipped
31.3 µs*
unwrapPaginated x100 (500 rows)
web/src/__tests__/benchmarks/api-client-pagination.bench.ts::api client unwrap
Skipped
25.6 µs*
parseCsrfTokenFromCookieString x500 (multiple cookies, target deep)
web/src/__tests__/benchmarks/csrf.bench.ts::CSRF cookie parser
Skipped
1.5 ms*
parseCsrfTokenFromCookieString x500 (single cookie)
web/src/__tests__/benchmarks/csrf.bench.ts::CSRF cookie parser
Skipped
954.1 µs*
formatCurrency x100
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
11.7 ms*
resolveLocale x1000 (override-trim path)
web/src/__tests__/benchmarks/locale.bench.ts::resolveLocale
Skipped
10.3 ms*
bidi-attack payload x500
web/src/__tests__/benchmarks/notifications-sanitize.bench.ts::sanitizeWsString
Skipped
1.1 ms*
clean payload x500
web/src/__tests__/benchmarks/notifications-sanitize.bench.ts::sanitizeWsString
Skipped
925.1 µs*
control-char heavy x500
web/src/__tests__/benchmarks/notifications-sanitize.bench.ts::sanitizeWsString
Skipped
730.4 µs*
over-length payload x500 (length cap path)
web/src/__tests__/benchmarks/notifications-sanitize.bench.ts::sanitizeWsString
Skipped
12.4 ms*
formatDateTime x100
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
16.5 ms*
formatNumber x100
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
9.5 ms*
formatRelativeTime x100 (1-day-old happy path)
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
6 ms*
formatRelativeTime x100 (null/undefined fast path)
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
2.2 ms*
resolveLocale x1000 (browser fallback after invalid override)
web/src/__tests__/benchmarks/locale.bench.ts::resolveLocale
Skipped
24.6 ms*
formatRelativeTime x100 (old date >1 week fallback)
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
17.5 ms*
formatTokenCount x100
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
10.8 ms*
resolveLocale x1000 (full-fallback to APP_LOCALE_FALLBACK)
web/src/__tests__/benchmarks/locale.bench.ts::resolveLocale
Skipped
135.2 µs*
resolveLocale x1000 (override-hit)
web/src/__tests__/benchmarks/locale.bench.ts::resolveLocale
Skipped
9.3 ms*
formatCurrencyCompact x100
web/src/__tests__/benchmarks/format.bench.ts::format helpers
Skipped
12.8 ms*

Commits

Click on a commit to change the comparison range
Base
main
9070387
+0.13%
refactor: drain last baseline entry by switching Literal[2] to Final[int]
245dd88
16 days ago
by Aureliolo
-0.29%
fix: babysit round 2, 18 findings (5 coderabbit, 13 gemini)
a5dfe0e
16 days ago
by Aureliolo
+0.06%
Merge branch 'main' into refactor/issue-1856-phase-2-literal-migration
71ffdd6
15 days ago
by Aureliolo
© 2026 CodSpeed Technology
Home Terms Privacy Docs