Skip to content

Commit 5c4da59

Browse files
committed
benchmark: calibrate util.style-text
According to nodejs/performance#186 this benchmark takes 0.48 minutes to run a single run. So using calibrate-n script it suggests reduce it from 1e3 to 1e2
1 parent cb87667 commit 5c4da59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/util/style-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
99
messageType: ['string', 'number', 'boolean', 'invalid'],
1010
format: ['red', 'italic', 'invalid'],
1111
validateStream: [1, 0],
12-
n: [1e3],
12+
n: [100],
1313
});
1414

1515
function main({ messageType, format, validateStream, n }) {

0 commit comments

Comments
 (0)