Skip to content

Instantly share code, notes, and snippets.

@oakmac
Created February 3, 2016 01:39
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 oakmac/ede280269cfd9660f051 to your computer and use it in GitHub Desktop.
Save oakmac/ede280269cfd9660f051 to your computer and use it in GitHub Desktop.
parinfer.js performance using null
performance for parinfer.js using null
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 9.467ms
paren: 8.073ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 22.413ms
paren: 30.437ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 39.511ms
paren: 39.525ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 39.507ms
paren: 39.164ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 9.620ms
paren: 8.397ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 23.001ms
paren: 30.914ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 27.975ms
paren: 39.974ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 38.838ms
paren: 41.819ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.235ms
paren: 8.288ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 22.775ms
paren: 30.945ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 28.448ms
paren: 39.398ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 41.568ms
paren: 43.131ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 9.291ms
paren: 6.828ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 22.581ms
paren: 31.959ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 39.335ms
paren: 41.056ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 40.572ms
paren: 38.862ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.219ms
paren: 8.396ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 23.006ms
paren: 31.137ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 31.446ms
paren: 40.227ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 39.748ms
paren: 42.589ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.381ms
paren: 8.676ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 22.689ms
paren: 31.300ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 29.986ms
paren: 40.323ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 40.976ms
paren: 41.852ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.086ms
paren: 8.163ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 25.215ms
paren: 33.103ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 29.765ms
paren: 42.209ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 43.358ms
paren: 44.237ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.720ms
paren: 10.061ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 26.374ms
paren: 34.337ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 44.705ms
paren: 42.446ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 41.633ms
paren: 41.991ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 12.457ms
paren: 8.115ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 28.294ms
paren: 34.398ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 33.534ms
paren: 41.555ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 40.260ms
paren: 42.946ms
oakmac@oakmac-desktop:~/parinfer/lib$ node test/perf.js
Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.482ms
paren: 9.176ms
Processing really_long_file : 2865 lines, 112431 chars
indent: 25.408ms
paren: 32.538ms
Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 29.451ms
paren: 40.905ms
Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 42.547ms
paren: 40.785ms
oakmac@oakmac-desktop:~/parinfer/lib$
@oakmac
Copy link
Author

oakmac commented Feb 3, 2016

Here are the average values:

Processing long_map_with_strings : 303 lines, 4380 chars
indent: 10.2958ms
paren: 8.4173ms

Processing really_long_file : 2865 lines, 112431 chars
indent: 24.1756ms
paren: 32.1068ms

Processing really_long_file_with_unclosed_paren : 2865 lines, 112432 chars
indent: 33.4156ms
paren: 40.7618ms

Processing really_long_file_with_unclosed_quote : 2865 lines, 112433 chars
indent: 40.9007ms
paren: 41.7376ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment