This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ deno run -A build.ts
17
17
cargo test --all
18
18
```
19
19
20
- ## Banchmark
20
+ ## Benchmark
21
21
22
22
``` bash
23
- deno run -A build.ts && deno run -A banchmark .ts
23
+ deno run -A build.ts && deno run -A benchmark .ts
24
24
```
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ function coloredDiff(d: number) {
35
35
return cf ( d . toFixed ( 2 ) + 'x' )
36
36
}
37
37
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)' : '' } ` )
40
40
41
41
const d1 = { d : 0 , min : 0 , max : 0 , }
42
42
for ( const { code, filename } of sourceFiles ) {
@@ -90,7 +90,7 @@ if (import.meta.main) {
90
90
sourceFiles . push ( { code : await Deno . readTextFile ( filename ) , filename } )
91
91
}
92
92
93
- banchmark ( sourceFiles , false )
94
- banchmark ( sourceFiles , true )
93
+ benchmark ( sourceFiles , false )
94
+ benchmark ( sourceFiles , true )
95
95
} ) ( )
96
96
}
You can’t perform that action at this time.
0 commit comments