remove fixed number of iterations (#406)

This commit is contained in:
Toon Baeyens 2020-11-20 15:26:28 +01:00 committed by GitHub
parent c0d8e7ed8a
commit 72299f99a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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`;