remove fixed number of iterations (#406)
This commit is contained in:
parent
c0d8e7ed8a
commit
72299f99a0
1 changed files with 1 additions and 5 deletions
|
|
@ -1,10 +1,8 @@
|
||||||
/* globals suite, set, bench */
|
/* globals suite, bench */
|
||||||
'use strict';
|
'use strict';
|
||||||
const chalk = require('.');
|
const chalk = require('.');
|
||||||
|
|
||||||
suite('chalk', () => {
|
suite('chalk', () => {
|
||||||
set('iterations', 1000000);
|
|
||||||
|
|
||||||
const chalkRed = chalk.red;
|
const chalkRed = chalk.red;
|
||||||
const chalkBgRed = chalk.bgRed;
|
const chalkBgRed = chalk.bgRed;
|
||||||
const chalkBlueBgRed = chalk.blue.bgRed;
|
const chalkBlueBgRed = chalk.blue.bgRed;
|
||||||
|
|
@ -48,8 +46,6 @@ suite('chalk', () => {
|
||||||
chalkBgRed(blueStyledString);
|
chalkBgRed(blueStyledString);
|
||||||
});
|
});
|
||||||
|
|
||||||
set('iterations', 10000);
|
|
||||||
|
|
||||||
bench('cached: 1 style template literal', () => {
|
bench('cached: 1 style template literal', () => {
|
||||||
// eslint-disable-next-line no-unused-expressions
|
// eslint-disable-next-line no-unused-expressions
|
||||||
chalkRed`the fox jumps over the lazy dog`;
|
chalkRed`the fox jumps over the lazy dog`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue