Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> fast-glob@3.0.2 bench-async /home/mrmlnc/fast-glob
> npm run bench-async-flatten && npm run bench-async-deep
> fast-glob@3.0.2 bench-async-flatten /home/mrmlnc/fast-glob
> node ./out/benchmark --type async --pattern "*"
===> Benchmark pattern (*) with 100 launches (async)
fast-glob-current.js
(TIME) 27.165ms ±0.875% | (MEMORY) 3.119MB ±0.005% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 27.387ms ±0.460% | (MEMORY) 3.164MB ±0.006% | Entries: 6 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 16.723ms ±0.416% | (MEMORY) 2.541MB ±0.064% | Entries: 6 | Errors: 0 | Retries: 1
tiny-glob.js
(TIME) 573.741ms ±7.545% | (MEMORY) 7.028MB ±0.984% | Entries: 14 | Errors: 0 | Retries: 2
> fast-glob@3.0.2 bench-async-deep /home/mrmlnc/fast-glob
> node ./out/benchmark --type async --pattern "**"
===> Benchmark pattern (**) with 100 launches (async)
fast-glob-current.js
(TIME) 232.815ms ±4.455% | (MEMORY) 4.141MB ±0.043% | Entries: 4552 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 240.594ms ±4.262% | (MEMORY) 4.408MB ±0.048% | Entries: 4552 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 1662.927ms ±18.403% | (MEMORY) 14.470MB ±0.779% | Entries: 4552 | Errors: 0 | Retries: 2
tiny-glob.js
(TIME) 640.738ms ±7.554% | (MEMORY) 7.633MB ±0.137% | Entries: 5310 | Errors: 0 | Retries: 2
> fast-glob@3.0.2 bench-stream /home/mrmlnc/fast-glob
> npm run bench-stream-flatten && npm run bench-stream-deep
> fast-glob@3.0.2 bench-stream-flatten /home/mrmlnc/fast-glob
> node ./out/benchmark --type stream --pattern "*"
===> Benchmark pattern (*) with 100 launches (stream)
fast-glob-current.js
(TIME) 35.190ms ±0.452% | (MEMORY) 3.190MB ±0.005% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 35.527ms ±0.550% | (MEMORY) 3.236MB ±0.006% | Entries: 6 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-stream-deep /home/mrmlnc/fast-glob
> node ./out/benchmark --type stream --pattern "**"
===> Benchmark pattern (**) with 100 launches (stream)
fast-glob-current.js
(TIME) 338.774ms ±6.101% | (MEMORY) 5.605MB ±0.082% | Entries: 4552 | Errors: 0 | Retries: 2
fast-glob-previous.js
(TIME) 348.065ms ±6.994% | (MEMORY) 5.249MB ±0.073% | Entries: 4552 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-sync /home/mrmlnc/fast-glob
> npm run bench-sync-flatten && npm run bench-sync-deep
> fast-glob@3.0.2 bench-sync-flatten /home/mrmlnc/fast-glob
> node ./out/benchmark --type sync --pattern "*"
===> Benchmark pattern (*) with 100 launches (sync)
fast-glob-current.js
(TIME) 13.950ms ±0.083% | (MEMORY) 3.018MB ±0.006% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 14.286ms ±0.165% | (MEMORY) 3.063MB ±0.006% | Entries: 6 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 12.071ms ±0.094% | (MEMORY) 2.501MB ±0.064% | Entries: 6 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-sync-deep /home/mrmlnc/fast-glob
> node ./out/benchmark --type sync --pattern "**"
===> Benchmark pattern (**) with 100 launches (sync)
fast-glob-current.js
(TIME) 148.864ms ±2.780% | (MEMORY) 4.700MB ±0.022% | Entries: 4552 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 154.628ms ±2.024% | (MEMORY) 5.008MB ±0.024% | Entries: 4552 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 1161.592ms ±6.915% | (MEMORY) 14.962MB ±0.143% | Entries: 4552 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-async /root/fast-glob
> npm run bench-async-flatten && npm run bench-async-deep
> fast-glob@3.0.2 bench-async-flatten /root/fast-glob
> node ./out/benchmark --type async --pattern "*"
===> Benchmark pattern (*) with 100 launches (async)
fast-glob-current.js
(TIME) 5.680ms ±0.066% | (MEMORY) 3.089MB ±0.010% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 5.271ms ±0.069% | (MEMORY) 3.129MB ±0.001% | Entries: 6 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 3.179ms ±0.083% | (MEMORY) 2.513MB ±0.049% | Entries: 6 | Errors: 0 | Retries: 1
tiny-glob.js
(TIME) 72.215ms ±4.234% | (MEMORY) 8.108MB ±0.103% | Entries: 13 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-async-deep /root/fast-glob
> node ./out/benchmark --type async --pattern "**"
===> Benchmark pattern (**) with 100 launches (async)
fast-glob-current.js
(TIME) 43.641ms ±1.835% | (MEMORY) 4.088MB ±0.084% | Entries: 4552 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 44.151ms ±1.746% | (MEMORY) 4.352MB ±0.068% | Entries: 4552 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 230.260ms ±6.428% | (MEMORY) 12.667MB ±0.184% | Entries: 4552 | Errors: 0 | Retries: 2
tiny-glob.js
(TIME) 84.471ms ±4.489% | (MEMORY) 7.530MB ±0.051% | Entries: 5210 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-stream /root/fast-glob
> npm run bench-stream-flatten && npm run bench-stream-deep
> fast-glob@3.0.2 bench-stream-flatten /root/fast-glob
> node ./out/benchmark --type stream --pattern "*"
===> Benchmark pattern (*) with 100 launches (stream)
fast-glob-current.js
(TIME) 7.222ms ±0.082% | (MEMORY) 3.159MB ±0.011% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 6.867ms ±0.307% | (MEMORY) 3.205MB ±0.010% | Entries: 6 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-stream-deep /root/fast-glob
> node ./out/benchmark --type stream --pattern "**"
===> Benchmark pattern (**) with 100 launches (stream)
fast-glob-current.js
(TIME) 63.944ms ±3.051% | (MEMORY) 5.607MB ±0.085% | Entries: 4552 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 63.913ms ±2.809% | (MEMORY) 5.249MB ±0.102% | Entries: 4552 | Errors: 0 | Retries: 2
> fast-glob@3.0.2 bench-sync /root/fast-glob
> npm run bench-sync-flatten && npm run bench-sync-deep
> fast-glob@3.0.2 bench-sync-flatten /root/fast-glob
> node ./out/benchmark --type sync --pattern "*"
===> Benchmark pattern (*) with 100 launches (sync)
fast-glob-current.js
(TIME) 3.126ms ±0.036% | (MEMORY) 2.976MB ±0.015% | Entries: 6 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 2.711ms ±0.066% | (MEMORY) 3.035MB ±0.010% | Entries: 6 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 2.248ms ±0.185% | (MEMORY) 2.476MB ±0.055% | Entries: 6 | Errors: 0 | Retries: 1
> fast-glob@3.0.2 bench-sync-deep /root/fast-glob
> node ./out/benchmark --type sync --pattern "**"
===> Benchmark pattern (**) with 100 launches (sync)
fast-glob-current.js
(TIME) 25.043ms ±0.728% | (MEMORY) 4.665MB ±0.015% | Entries: 4552 | Errors: 0 | Retries: 1
fast-glob-previous.js
(TIME) 25.007ms ±0.767% | (MEMORY) 4.990MB ±0.018% | Entries: 4552 | Errors: 0 | Retries: 1
node-glob.js
(TIME) 158.138ms ±4.147% | (MEMORY) 12.365MB ±0.413% | Entries: 4552 | Errors: 0 | Retries: 1
@KSoto

This comment has been minimized.

Copy link

commented Mar 20, 2019

Is there a comparison to node-glob aka glob? I see comparisons to bash-glob, glob-stream, globby, and tiny-glob.js but not glob.

@tcarrio

This comment has been minimized.

Copy link

commented May 28, 2019

@KSoto Seems you could include it within the benchmark suites here: https://github.com/mrmlnc/fast-glob/tree/master/src/benchmark/suites/async. Might not take too long. Also curious, though I don't have the time to make the change myself

@KSoto

This comment has been minimized.

Copy link

commented Jun 20, 2019

Ok, thank you @tcarrio for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.