Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit be4456c

Browse files
docs: banchmark -> benchmark
1 parent ef1964a commit be4456c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ deno run -A build.ts
1717
cargo test --all
1818
```
1919

20-
## Banchmark
20+
## Benchmark
2121

2222
```bash
23-
deno run -A build.ts && deno run -A banchmark.ts
23+
deno run -A build.ts && deno run -A benchmark.ts
2424
```

compiler/banchmark.ts renamed to compiler/benchmark.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function coloredDiff(d: number) {
3535
return cf(d.toFixed(2) + 'x')
3636
}
3737

38-
async function banchmark(sourceFiles: Array<{ code: string, filename: string }>, isDev: boolean) {
39-
console.log(`[banchmark] ${sourceFiles.length} files ${isDev ? '(development mode)' : ''}`)
38+
async function benchmark(sourceFiles: Array<{ code: string, filename: string }>, isDev: boolean) {
39+
console.log(`[benchmark] ${sourceFiles.length} files ${isDev ? '(development mode)' : ''}`)
4040

4141
const d1 = { d: 0, min: 0, max: 0, }
4242
for (const { code, filename } of sourceFiles) {
@@ -90,7 +90,7 @@ if (import.meta.main) {
9090
sourceFiles.push({ code: await Deno.readTextFile(filename), filename })
9191
}
9292

93-
banchmark(sourceFiles, false)
94-
banchmark(sourceFiles, true)
93+
benchmark(sourceFiles, false)
94+
benchmark(sourceFiles, true)
9595
})()
9696
}

0 commit comments

Comments
 (0)