From 72299f99a0f785128b3b974afac7d8a9bccbeb4a Mon Sep 17 00:00:00 2001 From: Toon Baeyens Date: Fri, 20 Nov 2020 15:26:28 +0100 Subject: [PATCH] remove fixed number of iterations (#406) --- benchmark.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/benchmark.js b/benchmark.js index 25b3f5d..98ee5ee 100644 --- a/benchmark.js +++ b/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; @@ -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`;