Skip to content

Instantly share code, notes, and snippets.

@satyr
Created July 6, 2012 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyr/3058681 to your computer and use it in GitHub Desktop.
Save satyr/3058681 to your computer and use it in GitHub Desktop.
N = 99
code = ''
# massive implicit call chain
code += 'f f ' * N + \\n
# massive soak access chain
code += 'o?.' * N + 'o\n'
# deep-nested blocks
code += "if #i\n" + ' ' * i for i from 1 to N
code += i + \\n
# deep-nested destructuring
code += \[ * N + \x + \] * N + ' = a\n'
for name of <[coco coffee-script livescript]>
let co = require name
<-! process.nextTick
say "#name #{co.VERSION}"
now = Date.now!
co.compile code
say Date.now! - now + \ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment