Skip to content

Instantly share code, notes, and snippets.

@satyr
Created September 23, 2010 05:31
Show Gist options
  • Save satyr/593175 to your computer and use it in GitHub Desktop.
Save satyr/593175 to your computer and use it in GitHub Desktop.
var CS = require('./lib/coffee-script');
var code = require('fs').readFileSync('examples/underscore.coffee').toString();
var start = Date.now();
var tokens = CS.tokens(code);
require('sys').puts(Date.now() - start +'ms ('+ tokens.length +' tokens)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment