From 008d2ba0d35efcbd369e2dd35833bb41bb8bf585 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 26 Sep 2010 10:38:28 -0400 Subject: [PATCH] adding a cake:bench task --- Cakefile | 3 +++ 1 file changed, 3 insertions(+) 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']