chalk/benchmark.js

16 lines
381 B
JavaScript
Raw Normal View History

2014-07-04 22:29:02 +02:00
var chalk = require('./');
2014-07-04 22:29:02 +02:00
suite('chalk', function () {
bench('single style', function () {
chalk.red('the fox jumps over the lazy dog');
});
2014-07-04 22:29:02 +02:00
bench('several styles', function () {
chalk.blue.bgRed.bold('the fox jumps over the lazy dog');
});
2014-07-04 22:29:02 +02:00
bench('nested styles', function () {
chalk.red('the fox jumps', chalk.underline.bgBlue('over the lazy dog') + '!');
});
});