diff --git a/package.json b/package.json index f10e84d3..25f74b67 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,9 @@ "test": "npm run test-node && npm run test-browser && tsc", "test-node": "qunit --require ./test/helpers/test-utils.js --require ./test/helpers/node-test-utils.js test/asserts/", "test-browser": "grunt build && node test/run.js --test", - "perf": "npm run perf-node && npm run perf-browser", - "perf-node": "node test/perf/node.js", - "perf-browser": "node test/run.js --benchmark", + "benchmark": "npm run benchmark-node && npm run benchmark-browser", + "benchmark-node": "node test/benchmark/node.js", + "benchmark-browser": "node test/run.js --benchmark", "lint": "eslint ." }, "contributors": [ diff --git a/test/perf/.eslintrc.js b/test/benchmark/.eslintrc.js similarity index 100% rename from test/perf/.eslintrc.js rename to test/benchmark/.eslintrc.js diff --git a/test/perf/perf.js b/test/benchmark/benchmark.js similarity index 100% rename from test/perf/perf.js rename to test/benchmark/benchmark.js diff --git a/test/perf/index.html b/test/benchmark/index.html similarity index 83% rename from test/perf/index.html rename to test/benchmark/index.html index 7dbcb750..df2b699c 100644 --- a/test/perf/index.html +++ b/test/benchmark/index.html @@ -2,13 +2,13 @@ - JSZip Performance + JSZip Benchmark - + diff --git a/test/perf/node.js b/test/benchmark/node.js similarity index 61% rename from test/perf/node.js rename to test/benchmark/node.js index a1daa3be..8b359596 100644 --- a/test/perf/node.js +++ b/test/benchmark/node.js @@ -3,5 +3,5 @@ globalThis.Benchmark = require("benchmark"); globalThis.JSZip = require("../../lib/index"); -const run = require("./perf"); -run("nodebuffer"); +const benchmark = require("./benchmark"); +benchmark("nodebuffer"); diff --git a/test/run.js b/test/run.js index 7300e970..d2993cda 100644 --- a/test/run.js +++ b/test/run.js @@ -95,7 +95,7 @@ async function waitForBenchmark(page) { } async function runBenchmark() { - const results = await runBrowsers(waitForBenchmark, "perf/index.html"); + const results = await runBrowsers(waitForBenchmark, "benchmark/index.html"); for (const [browser, logs] of results) { for (const log of logs) {