JavaScript Compressor output-size benchmark

On December 3, 2026, a 17,158-byte synthetic catalog produced 17,165 bytes with Replace Names alone. Enabling Compressor reduced the output to 7,798 bytes. Both versions returned the expected price for all 480 items and the expected result for an unknown item.

Reproduce the comparison

  1. Copy the entire catalog fixture into the online tool.
  2. Select Replace Names alone and obfuscate. Record the protected size. Repeat with Compressor added and check the list of applied options. Output size can vary between runs.
  3. Save each output as a JavaScript file. Append the check below to each file and run it with Node.js. Both files should print “481 lookups passed”.
for (let i = 0; i < 480; i++) {
  if (price("catalog-item-" + i) !== i * 17 + 9) throw Error("Mismatch at " + i);
}
if (price("missing") !== -1) throw Error("Missing item mismatch");
console.log("481 lookups passed");

This catalog has repeated keys and statements. For a release decision, repeat the paired test with a representative file from your application.