Avatar for the Hiroki-org user
Hiroki-org
OpenShelf
BlogDocsChangelog

test(api): add codspeed benchmarks for utils

#524Merged
Comparing
feature/add-codspeed-benchmarks-2298691787030383717
(
fa2f6fa
) with
staging
(
0c5aa50
)
CodSpeed Performance Gauge
-2%
Untouched
2
New
14
Skipped
15

Benchmarks

31 total
buildBadgeSvg
apps/api/src/utils/__tests__/badge.bench.ts::badge benchmark
CodSpeed Performance Gauge
N/A
N/A117.2 µs
parseStoredTags with valid JSON array
apps/api/src/utils/__tests__/tags.bench.ts::tags benchmark
CodSpeed Performance Gauge
N/A
N/A41.9 µs
estimateTextWidth
apps/api/src/utils/__tests__/badge.bench.ts::badge benchmark
CodSpeed Performance Gauge
N/A
N/A59 µs
isAllowedOrigin wildcard match
apps/api/src/utils/__tests__/origin.bench.ts::origin benchmark
CodSpeed Performance Gauge
N/A
N/A85.6 µs
parseStoredTags with empty string
apps/api/src/utils/__tests__/tags.bench.ts::tags benchmark
CodSpeed Performance Gauge
N/A
N/A13.8 µs
buildCitation apa
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A106.4 µs
isAllowedOrigin exact match
apps/api/src/utils/__tests__/origin.bench.ts::origin benchmark
CodSpeed Performance Gauge
N/A
N/A67.9 µs
buildCitation plain
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A58.7 µs
parseStoredTags with null
apps/api/src/utils/__tests__/tags.bench.ts::tags benchmark
CodSpeed Performance Gauge
N/A
N/A13.9 µs
buildCitation biblatex
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A123.9 µs
buildCitation bibtex
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A124.5 µs
buildCitation mla
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A58.8 µs
parseStoredTags with invalid JSON
apps/api/src/utils/__tests__/tags.bench.ts::tags benchmark
CodSpeed Performance Gauge
N/A
N/A89.7 µs
buildCitation ieee
apps/api/src/utils/__tests__/citation.bench.ts::citation benchmark
CodSpeed Performance Gauge
N/A
N/A61.7 µs
validateMagicNumbers png
apps/api/src/utils/__tests__/file.bench.ts::file extensions benchmark
CodSpeed Performance Gauge
-1%
209.4 µs210.7 µs
validateMagicNumbers pdf
apps/api/src/utils/__tests__/file.bench.ts::file extensions benchmark
CodSpeed Performance Gauge
-3%
524.9 µs538.8 µs
optimized (reduce)
apps/api/src/test/perf/invites.bench.ts::invites unique extraction
Skipped
1.9 ms*
optimized (for...of)
apps/api/src/test/perf/invites.bench.ts::invites unique extraction
Skipped
2.6 ms*
original
apps/api/src/test/perf/invites.bench.ts::invites unique extraction
Skipped
3.1 ms*
validateDescription invalid type
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
12.9 µs*
validateName invalid too long
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
16.1 µs*
validateSlug invalid uppercase
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
22.5 µs*
validateDescription invalid too long
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
14.3 µs*
validateDescription null
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
13.7 µs*
validateName invalid empty
apps/api/src/utils/__tests__/validation.bench.ts::validation benchmarks
Skipped
15.3 µs*

Commits

Click on a commit to change the comparison range
Base
staging
0c5aa50
-0.39%
test(api): add codspeed benchmarks for utils
0401206
8 days ago
by google-labs-jules[bot]
-1.65%
Merge branch 'staging' into feature/add-codspeed-benchmarks-2298691787030383717
8742503
8 days ago
by is0692vs
+0.45%
test(api): add codspeed benchmarks for utils
fa2f6fa
8 days ago
by google-labs-jules[bot]
© 2026 CodSpeed Technology
Home Terms Privacy Docs