diff options
| author | Uri Shaked | 2025-02-11 10:31:57 +0200 |
|---|---|---|
| committer | Uri Shaked | 2025-02-11 10:31:57 +0200 |
| commit | 9ce22e49cf1110d0a8c1943877dc32e6568354cc (patch) | |
| tree | 6ad61569ee9a311b5ca8f330948b2136b2c04ed5 /benchmark | |
| parent | chore: replace ts-node with tsx (diff) | |
| download | avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.gz avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.bz2 avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.zip | |
chore(deps): upgrade prettier
reformat all code with the new prettier version
Diffstat (limited to '')
| -rw-r--r-- | benchmark/benchmark.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/benchmark.ts b/benchmark/benchmark.ts index b99aa06..51c43b4 100644 --- a/benchmark/benchmark.ts +++ b/benchmark/benchmark.ts @@ -78,7 +78,7 @@ export function createBenchmark(benchmarkName: string): Benchmark { // As a sanity if duration_ms is 0 just double the count. profile.iterationCount << 1, // Otherwise try to guess how many iterations we have to do to get the right time. - Math.round((MIN_SAMPLE_DURATION / durationMs) * profile.iterationCount) + Math.round((MIN_SAMPLE_DURATION / durationMs) * profile.iterationCount), ); profile.noImprovementCount = 0; runAgain = true; @@ -120,7 +120,7 @@ export function createBenchmark(benchmarkName: string): Benchmark { const percent = (100 - (profile.bestTime / fastest.bestTime) * 100).toFixed(0); return ' ' + profile.profileName + ': ' + time + ' ' + unit + '(' + percent + '%)'; }) - .join('\n')}` + .join('\n')}`, ); }; return benchmark; |
