Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@

- bun run bench
- bun run bench:constraints
- bun run bench:patterns
- bun run bench:structures
- bun run bench:node
- bun run bench:node:constraints
- bun run bench:node:patterns
- bun run bench:node:structures
- bun run bench:browser
- bun run bench:all

Expand Down
14 changes: 1 addition & 13 deletions bench/browser.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { runPasswordBench, formatPasswordBench } from "./bench.mjs";
import { runPatternBench, formatPatternBench } from "./patterns.mjs";
import { runStructuresBench, formatStructuresBench } from "./structures.mjs";
import { runConstraintsBench, formatConstraintsBench } from "./constraints.mjs";

const params = new URLSearchParams(globalThis.location?.search ?? "");
Expand All @@ -10,10 +8,6 @@ const log = !params.has("quiet");
const passwordOverrides = fast
? { warmup: 1, samples: 2, iters: 800, length: 12 }
: {};
const patternOverrides = fast ? { warmup: 1, samples: 2, iters: 400 } : {};
const structureOverrides = fast
? { warmup: 1, samples: 2, iters: 5_000, length: 16 }
: {};
const constraintsOverrides = fast
? {
warmup: 1,
Expand All @@ -29,21 +23,15 @@ const constraintsOverrides = fast

try {
const password = await runPasswordBench(passwordOverrides);
const patterns = runPatternBench(patternOverrides);
const structures = runStructuresBench(structureOverrides);
const constraints = await runConstraintsBench(constraintsOverrides);

const results = { password, patterns, structures, constraints };
const results = { password, constraints };
globalThis.__benchResults = results;

if (log) {
const output = [
...formatPasswordBench(password),
"",
...formatPatternBench(patterns),
"",
...formatStructuresBench(structures),
"",
...formatConstraintsBench(constraints),
];
for (const line of output) {
Expand Down
109 changes: 0 additions & 109 deletions bench/patterns.mjs

This file was deleted.

106 changes: 0 additions & 106 deletions bench/structures.mjs

This file was deleted.

Loading
Loading