Skip to content

Commit

Permalink
prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Jan 12, 2025
1 parent c467148 commit 675dfb2
Show file tree
Hide file tree
Showing 8 changed files with 10,835 additions and 8,959 deletions.
2,037 changes: 1,429 additions & 608 deletions perf/benchmarks/checkboxes.new.html

Large diffs are not rendered by default.

2,037 changes: 1,429 additions & 608 deletions perf/benchmarks/checkboxes.old.html

Large diffs are not rendered by default.

862 changes: 488 additions & 374 deletions perf/benchmarks/html5.new.html

Large diffs are not rendered by default.

804 changes: 460 additions & 344 deletions perf/benchmarks/html5.old.html

Large diffs are not rendered by default.

7,016 changes: 3,508 additions & 3,508 deletions perf/benchmarks/table.new.html

Large diffs are not rendered by default.

7,016 changes: 3,508 additions & 3,508 deletions perf/benchmarks/table.old.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion perf/runner.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script>window.params = new URLSearchParams(window.location.search);</script>
<script>
window.params = new URLSearchParams(window.location.search);
</script>

<script>
let using = params.get("using");
Expand Down
18 changes: 10 additions & 8 deletions perf/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ if (benchmarks[0] === "morphdom" || /^v[\d.]+$/.test(benchmarks[0])) {
if (benchmarks.length === 0) {
benchmarks = fs
.readdirSync(`${__dirname}/benchmarks`)
.map(file => file.split(".")[0]) // Remove file extension
.map((file) => file.split(".")[0]) // Remove file extension
.filter((name, i, self) => i === self.indexOf(name)); // Remove duplicates
}

benchmarks.forEach(benchmark => {
benchmarks.forEach((benchmark) => {
const config = {
root: "..",
benchmarks: [
Expand All @@ -34,11 +34,13 @@ benchmarks.forEach(benchmark => {
},
],
};
fs.writeFileSync(path.resolve(__dirname, "../tmp/tachometer.json"), JSON.stringify(config), 'utf8');

spawnSync("npx",
["tachometer", "--config=tmp/tachometer.json"],
{ stdio: "inherit" },
fs.writeFileSync(
path.resolve(__dirname, "../tmp/tachometer.json"),
JSON.stringify(config),
"utf8",
);
});

spawnSync("npx", ["tachometer", "--config=tmp/tachometer.json"], {
stdio: "inherit",
});
});

0 comments on commit 675dfb2

Please sign in to comment.