Skip to content

Commit

Permalink
Still trying to find the memory test sweet spot
Browse files Browse the repository at this point in the history
  • Loading branch information
noppa committed Sep 30, 2023
1 parent e61162b commit c3d38ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ async function testWithLargeFile() {
/* globals gc */
gc();
}
// Make a large XML file by repeating the item 400 000 times.
// This will take about 400MB.
const xml = xmlValid.replace(partToRepliacate, partToRepliacate.repeat(400000));
// Make a large XML file by repeating the item 300 000 times.
// This will take about 300MB.
const xml = xmlValid.replace(partToRepliacate, partToRepliacate.repeat(300000));
let error = 'No error. XML length: '
// Force V8 to eagerly evaluate length of the created string to fight
// any weird optimiziations that it migt be tempted to do.
Expand Down

0 comments on commit c3d38ba

Please sign in to comment.