bench - minor code style tweaks
This commit is contained in:
parent
0dde0473e0
commit
d255f42a9e
1 changed files with 7 additions and 12 deletions
19
benchmark.js
19
benchmark.js
|
|
@ -1,20 +1,15 @@
|
|||
// ran through matcha
|
||||
// ./node_modules/matcha/bin/matcha benchmark.js
|
||||
var chalk = require('./');
|
||||
|
||||
var chalk = require('./index.js');
|
||||
|
||||
suite('chalk', function(){
|
||||
|
||||
bench('add colour', function(){
|
||||
suite('chalk', function () {
|
||||
bench('single style', function () {
|
||||
chalk.red('the fox jumps over the lazy dog');
|
||||
});
|
||||
|
||||
bench('add several styles', function(){
|
||||
chalk.blue.bgRed.bold('the fox jumps over the lazy dog') ;
|
||||
bench('several styles', function () {
|
||||
chalk.blue.bgRed.bold('the fox jumps over the lazy dog');
|
||||
});
|
||||
|
||||
bench('add nested styles', function(){
|
||||
chalk.red('the fox jumps ', chalk.underline.bgBlue('over the lazy dog') + '!') ;
|
||||
bench('nested styles', function () {
|
||||
chalk.red('the fox jumps', chalk.underline.bgBlue('over the lazy dog') + '!');
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue