diff --git a/Cakefile b/Cakefile index 5e5a7073..da53da08 100644 --- a/Cakefile +++ b/Cakefile @@ -87,6 +87,9 @@ task 'doc:underscore', 'rebuild the Underscore.coffee documentation page', -> exec 'docco examples/underscore.coffee && cp -rf docs documentation && rm -r docs', (err) -> throw err if err +task 'bench', 'quick benchmark of compilation time (of everything in src)', -> + exec 'time bin/coffee -p src/ > /dev/null', (err, stdout, stderr) -> + print stderr task 'loc', 'count the lines of source code in the CoffeeScript compiler', -> sources = ['src/coffee-script.coffee', 'src/grammar.coffee', 'src/helpers.coffee', 'src/lexer.coffee', 'src/nodes.coffee', 'src/rewriter.coffee', 'src/scope.coffee']