Skip to content

Instantly share code, notes, and snippets.

@leafo
Created April 25, 2013 17:21
Show Gist options
  • Save leafo/5461482 to your computer and use it in GitHub Desktop.
Save leafo/5461482 to your computer and use it in GitHub Desktop.
lpeg 0.10
Timings:
* assign p: 1.814ms c: 0.816ms
* bubbling p: 1.772ms c: 3.925ms
* class p: 2.610ms c: 18.459ms
* comprehension p: 2.478ms c: 3.077ms
* cond p: 2.801ms c: 2.379ms
* destructure p: 2.561ms c: 2.183ms
* do p: 1.644ms c: 0.588ms
* export p: 1.667ms c: 1.104ms
* funcs p: 1.830ms c: 1.300ms
* import p: 1.458ms c: 0.670ms
* lists p: 2.503ms c: 4.426ms
* literals p: 1.791ms c: 0.185ms
* local p: 1.406ms c: 0.934ms
* loops p: 2.250ms c: 3.601ms
* string p: 2.012ms c: 0.616ms
* stub p: 1.120ms c: 0.734ms
* switch p: 1.647ms c: 1.452ms
* syntax p: 3.376ms c: 3.125ms
* tables p: 2.207ms c: 0.800ms
* using p: 1.579ms c: 0.218ms
* whitespace p: 1.701ms c: 0.636ms
* with p: 1.747ms c: 1.250ms
Total:
parse: 43.974ms
compile: 52.478ms
lpeg 0.12
Timings:
* assign p: 3.575ms c: 0.897ms
* bubbling p: 3.651ms c: 3.706ms
* class p: 4.395ms c: 17.048ms
* comprehension p: 3.962ms c: 2.778ms
* cond p: 4.445ms c: 2.433ms
* destructure p: 4.743ms c: 2.800ms
* do p: 3.259ms c: 0.960ms
* export p: 3.559ms c: 1.054ms
* funcs p: 3.607ms c: 1.307ms
* import p: 3.076ms c: 1.686ms
* lists p: 5.265ms c: 4.300ms
* literals p: 3.547ms c: 0.451ms
* local p: 3.509ms c: 0.934ms
* loops p: 4.200ms c: 3.328ms
* string p: 3.791ms c: 0.635ms
* stub p: 3.365ms c: 0.713ms
* switch p: 3.659ms c: 1.223ms
* syntax p: 5.270ms c: 3.095ms
* tables p: 4.208ms c: 0.838ms
* using p: 3.222ms c: 0.446ms
* whitespace p: 4.009ms c: 0.667ms
* with p: 4.146ms c: 1.311ms
Total:
parse: 86.463ms
compile: 52.610ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment