Skip to content

perf(hstr): inline atom equality hot path

9472db8
Select commit
Loading
Failed to load commit list.
Closed

perf(hstr): trim atom hash and benchmark hashset lookups #11874

perf(hstr): inline atom equality hot path
9472db8
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded May 20, 2026

Performance Gate Passed

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 13 improved benchmarks
✅ 206 untouched benchmarks
🆕 228 new benchmarks
⏩ 31 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
es/large/minify/libraries/d3 493.1 ms 479.8 ms +2.79%
es/large/all/es2018 112.8 ms 110.2 ms +2.28%
es/large/all/es3 180.4 ms 176.8 ms +2.03%
es/large/minify/libraries/lodash 142 ms 138.4 ms +2.65%
es/large/minify/libraries/vue 177.9 ms 174.3 ms +2.06%
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false 48.8 ms 47.7 ms +2.22%
es/minifier/libs/d3 377.4 ms 365.5 ms +3.26%
es/minifier/libs/jquery 89.8 ms 87.8 ms +2.26%
es/minifier/libs/moment 57.8 ms 56.5 ms +2.4%
es/minifier/libs/react 18.5 ms 18.2 ms +2.03%
es/minifier/libs/lodash 108.3 ms 105.1 ms +3.1%
es/minifier/libs/vue 135.7 ms 132.4 ms +2.46%
es/resolver_with_hygiene/typescript 757.7 ms 738.4 ms +2.61%
🆕 compact_str[1024] N/A 741.1 ns N/A
🆕 compact_str[128] N/A 741.1 ns N/A
🆕 compact_str[32] N/A 770.3 ns N/A
🆕 compact_str[4] N/A 745.3 ns N/A
🆕 smartstring[16] N/A 768.9 ns N/A
🆕 kstring[1024] N/A 611.9 ns N/A
🆕 compact_str[512] N/A 741.1 ns N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing hardfist:perf/micro-optimize-hstr (9472db8) with main (aa5b539)

Open in CodSpeed

Footnotes

  1. 31 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.