Skip to content

Commit e531a52

Browse files
committed
test(benchmark): add replace-source buffer() (no replacements) case
Pairs with the existing 'buffers() (no replacements)' bench so the no-replacements pass-through path can be A/B compared against the inherited default. https://claude.ai/code/session_01EHhGq9PRFRGefVtwwasCqZ
1 parent 728aed5 commit e531a52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

benchmark/cases/replace-source/index.bench.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ export default function register(bench) {
9696
buildManyReplacements(1000).buffer();
9797
});
9898

99+
bench.add("replace-source: buffer() (no replacements)", () => {
100+
for (let i = 0; i < 100; i++) {
101+
new sources.ReplaceSource(new sources.RawSource(fixtureCode)).buffer();
102+
}
103+
});
104+
99105
bench.add("replace-source: buffers() (no replacements)", () => {
100106
for (let i = 0; i < 100; i++) {
101107
new sources.ReplaceSource(new sources.RawSource(fixtureCode)).buffers();

0 commit comments

Comments
 (0)