oxc-project
oxc-sourcemap
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf(visualizer): fix O(n²) chars().nth scan and reduce allocations
#344
Merged
Comparing
perf/visualizer-and-token-accessors
(
6d20ba6
) with
main
(
55ebb8e
)
CodSpeed Performance Gauge
0%
Untouched
16
Skipped
5
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
Skipped
21 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse[real_xlarge]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
build_single
benches/simple.rs::sourcemap::bench::builder/SourceMapBuilder
CodSpeed Performance Gauge
0%
7.1 µs
7.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
add_sourcemap_loop
benches/simple.rs::sourcemap::bench::concat
CodSpeed Performance Gauge
0%
336.8 µs
336.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse[real_small]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
11.6 µs
11.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
from_sourcemaps
benches/simple.rs::sourcemap::bench::concat
CodSpeed Performance Gauge
0%
318.8 µs
318.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
lookup_table[real_large]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
4.5 µs
4.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
serialize[real_small]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
4.4 µs
4.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
serialize[real_xlarge]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
589 µs
589 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
lookup_table[real_medium]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
1.5 µs
1.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
from_json_string_inline
benches/simple.rs::sourcemap::bench::smoke/SourceMap
CodSpeed Performance Gauge
0%
14.2 µs
14.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
lookup_table[real_small]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
1.3 µs
1.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
serialize[real_large]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
20.6 µs
20.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
lookup_table[real_xlarge]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
132.2 µs
132.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
serialize[real_medium]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
5.1 µs
5.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse[real_large]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
46.5 µs
46.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse[real_medium]
benches/simple.rs::sourcemap::bench
CodSpeed Performance Gauge
0%
14.5 µs
14.5 µs
The benchmarks below were skipped, so their baseline results are used instead. If they were deleted in your codebase, archive them to remove them from the performance reports.
Learn more about archiving benchmarks
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_json_string
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
4.8 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
from_json_string
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
16.3 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
generate_lookup_table
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
1.3 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
add_name_add_source_and_content
benches/simple.rs::sourcemap::bench::SourceMapBuilder
Skipped
1.6 µs
*
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_json
benches/simple.rs::sourcemap::bench::SourceMap
Skipped
5.6 µs
*
Commits
Click on a commit to change the comparison range
Base
main
55ebb8e
0%
perf(visualizer): fix O(n²) chars().nth scan and reduce allocations
6d20ba6
22 hours ago
by Boshen
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs