Skip to content

Commit

Permalink
remove fixed number of iterations (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
toonijn committed Nov 20, 2020
1 parent c0d8e7e commit 72299f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions benchmark.js
@@ -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;
Expand Down Expand Up @@ -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`;
Expand Down

0 comments on commit 72299f9

Please sign in to comment.