Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark against fdir #80

Open
vjpr opened this issue Oct 21, 2021 · 2 comments
Open

Benchmark against fdir #80

vjpr opened this issue Oct 21, 2021 · 2 comments

Comments

@vjpr
Copy link

vjpr commented Oct 21, 2021

No description provided.

@IanVS
Copy link

IanVS commented Sep 29, 2022

I'd be really curious to see this as well.

@IanVS
Copy link

IanVS commented Sep 29, 2022

I ran the fdir benchmarks from their repo on my 2019 intel mbp and got this:

$ node benchmarks/glob-benchmark.js
Running "Asynchronous (1487 files, 230 folders)" suite...
Progress: 100%

  fdir 5.2.0 async:
    231 ops/s, ±0.18%   | fastest

  glob async:
    15 ops/s, ±1.13%    | slowest, 93.51% slower

  fast-glob async:
    154 ops/s, ±0.95%   | 33.33% slower

  tiny-glob async:
    35 ops/s, ±0.41%    | 84.85% slower

Finished 4 cases!
  Fastest: fdir 5.2.0 async
  Slowest: glob async
Running "Synchronous (1487 files, 230 folders)" suite...
Progress: 100%

  fdir 5.2.0 sync:
    90 ops/s, ±0.33%   | fastest

  glob sync:
    16 ops/s, ±0.62%   | slowest, 82.22% slower

  fast-glob sync:
    71 ops/s, ±0.67%   | 21.11% slower

  tiny-glob sync:
    45 ops/s, ±0.20%   | 50% slower

Finished 4 cases!
  Fastest: fdir 5.2.0 sync
  Slowest: glob sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants