remove fixed number of iterations

This commit is contained in:
Toon Baeyens 2020-06-09 10:13:01 +02:00
parent 4c3df88472
commit 5b933bb5ac

View file

@ -1,10 +1,8 @@
/* globals suite, set, bench */
/* globals suite, bench */
'use strict';
const chalk = require('.');
suite('chalk', () => {
set('iterations', 1000000);
const chalkRed = chalk.red;
const chalkBgRed = chalk.bgRed;
const chalkBlueBgRed = chalk.blue.bgRed;
@ -48,8 +46,6 @@ suite('chalk', () => {
chalkBgRed(blueStyledString);
});
set('iterations', 10000);
bench('cached: 1 style template literal', () => {
// eslint-disable-next-line no-unused-expressions
chalkRed`the fox jumps over the lazy dog`;