Skip to content

Instantly share code, notes, and snippets.

@joliss
Created November 14, 2013 16:02
Show Gist options
  • Save joliss/7469324 to your computer and use it in GitHub Desktop.
Save joliss/7469324 to your computer and use it in GitHub Desktop.
node-glob benchmark output
node-glob $ bash benchmark.sh
Setting up...
Bash timing:
100000
real 0m0.696s
user 0m0.266s
sys 0m0.432s
Node statSync and readdirSync timing:
100000
real 0m0.977s
user 0m0.666s
sys 0m0.319s
Node glob.sync timing:
100000
real 0m9.676s
user 0m8.952s
sys 0m0.794s
Node glob async timing:
100000
real 0m22.130s
user 0m7.778s
sys 0m16.884s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment