aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 10:31:57 +0200
committerUri Shaked2025-02-11 10:31:57 +0200
commit9ce22e49cf1110d0a8c1943877dc32e6568354cc (patch)
tree6ad61569ee9a311b5ca8f330948b2136b2c04ed5 /benchmark
parentchore: replace ts-node with tsx (diff)
downloadavr8js-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.ts4
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;