Skip to content

Commit

Permalink
Align on "benchmark" instead of "perf"
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuk committed Jun 23, 2022
1 parent da96cb5 commit aa67068
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/perf/index.html → test/benchmark/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JSZip Performance</title>
<title>JSZip Benchmark</title>
</head>
<body>
<script src="../../node_modules/benchmark/node_modules/lodash/lodash.js"></script>
<script src="../../node_modules/benchmark/benchmark.js"></script>
<script src="../../dist/jszip.js"></script>
<script src="./perf.js"></script>
<script src="./benchmark.js"></script>
<script>
benchmark("arraybuffer");
</script>
Expand Down
4 changes: 2 additions & 2 deletions test/perf/node.js → test/benchmark/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
2 changes: 1 addition & 1 deletion test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aa67068

Please sign in to comment.