Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 12, 2015
1 parent 117953a commit 900b2e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ var textr = require('../');
var program = require('commander');
var pkg = require('../package');

/**
* Simple benchmark which can be used as CLI in the future.
*
* @example
*
* $ echo 'hello "world"' > test
* $ cat test | bench.js -t typographic-single-spaces,typographic-quotes
*
* hello "world"
* 1654434 cycles per second%
*
*
*
*/
program
.version(pkg.version)
.option('-c, --cycles', 'create new tf on every cycle')
Expand Down

0 comments on commit 900b2e7

Please sign in to comment.