Skip to content

Commit

Permalink
[benchmarks] --hide-logo
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Nov 30, 2011
1 parent a9bbfce commit 44b87e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions benchmarks/suite.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ exports.run = function(options) {
xjst.compile(input, file, options).apply; xjst.compile(input, file, options).apply;
}; };


console.log([ if (!options['hide-logo']) {
'', console.log([
' XX XX JJ SSSSSSS TTTTTTTTTT', '',
' XX XX JJ SS TT ', ' XX XX JJ SSSSSSS TTTTTTTTTT',
' XX XX JJ SS TT ', ' XX XX JJ SS TT ',
' XXXX JJ SSSSSSS TT ', ' XX XX JJ SS TT ',
' XX XX JJ SS TT ', ' XXXX JJ SSSSSSS TT ',
' XX XX JJ JJ SS TT ', ' XX XX JJ SS TT ',
' XX XX JJJJJJ SSSSSSS TT ', ' XX XX JJ JJ SS TT ',
'', ' XX XX JJJJJJ SSSSSSS TT ',
].join('\n').rainbow); '',
console.log(' // benchmarks //'); ].join('\n').rainbow);
console.log(' // benchmarks //');
}


function progress() { function progress() {
process.stdout.clearLine(0); process.stdout.clearLine(0);
Expand Down
6 changes: 6 additions & 0 deletions bin/benchmark
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ require('coa').Cmd()
.short('e').long('engine') .short('e').long('engine')
.def('fullgen') .def('fullgen')
.end() .end()
.opt()
.name('hide-logo').title('Hide XJTS logo')
.long('hide-logo')
.flag()
.def(false)
.end()
.opt() .opt()
.name('details').title('Print details for each suite') .name('details').title('Print details for each suite')
.short('d').long('details') .short('d').long('details')
Expand Down

0 comments on commit 44b87e0

Please sign in to comment.