Skip to content

Instantly share code, notes, and snippets.

@SineSwiper
Created October 14, 2012 17:59
Show Gist options
  • Save SineSwiper/3889337 to your computer and use it in GitHub Desktop.
Save SineSwiper/3889337 to your computer and use it in GitHub Desktop.
ERROR_* compare
### Old ERROR_* code ###
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.105833 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.155526 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.028492 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.067088 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.983403 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 10.429001 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.118223 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.140937 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.028106 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.070699 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.994242 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 9.990667 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.115431 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.167356 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.04708 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.070354 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.944547 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 9.75302 seconds
1..6
### New ERROR_* code ###
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
# ./xt/grammars/pegex.pgx is out of date. Copying from ../pegex-pgx/pegex.pgx
ok 1 - ./xt/grammars/pegex.pgx parses in 0.053267 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.061314 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.011763 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.027805 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.430287 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.282654 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.060382 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.075246 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.011963 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.029218 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.422304 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.366664 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.051072 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.062567 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.014349 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.028016 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.457813 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.395849 seconds
1..6
### No ERROR_* code ###
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
# ./xt/grammars/pegex.pgx is out of date. Copying from ../pegex-pgx/pegex.pgx
ok 1 - ./xt/grammars/pegex.pgx parses in 0.023379 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.07081 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.011727 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.028354 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.435511 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.365777 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.023178 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.058207 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.010848 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.026204 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.48723 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.395606 seconds
1..6
Z:\code\_others\Pegex>perl -Ilib xt\speed.t
ok 1 - ./xt/grammars/pegex.pgx parses in 0.025164 seconds
ok 2 - ./xt/grammars/testml.pgx parses in 0.065562 seconds
ok 3 - ./xt/grammars/json.pgx parses in 0.013264 seconds
ok 4 - ./xt/grammars/yaml.pgx parses in 0.028875 seconds
ok 5 - ./xt/grammars/pg-lexer.pgx parses in 0.47595 seconds
ok 6 - ./xt/grammars/Pg.pgx parses in 4.397753 seconds
1..6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment