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

Unable to run benchmark on Windows #44

Open
seanblonien opened this issue Feb 5, 2022 · 0 comments
Open

Unable to run benchmark on Windows #44

seanblonien opened this issue Feb 5, 2022 · 0 comments

Comments

@seanblonien
Copy link

seanblonien commented Feb 5, 2022

Node sure how out-of-date your benchmarking package is, but it doesn't seem to want to run, something about the file globbing just not working

C:\Git\set-value\benchmark>node .
Error: ENOENT: no such file or directory, open 'C:\Git\set-value\benchmark\fixtures\*.js'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Benchmarked.toFile (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:66:22)
    at Benchmarked.toFile (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:118:18)
    at Benchmarked.addFile (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:173:17)
    at Benchmarked.addFiles (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:199:14)
    at Benchmarked.addFixtures (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:266:8)
    at Benchmarked.defaults (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:84:10)
    at new Benchmarked (C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:48:8)
    at C:\Git\set-value\benchmark\node_modules\benchmarked\index.js:439:19 {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'C:\\Git\\set-value\\benchmark\\fixtures\\*.js'
}

Would love to be able to run the benchmarks myself and potentially add some others to see how this library stacks up

Node 16.13.1
NPM 8.1.2
Tried in both Command Prompt/Git Bash shells
Windows 10

EDIT:
so it works on WSL, just not Windows. is there a reason why a node script (which I assume should be cross-platform) doesn't work on Windows?

@seanblonien seanblonien changed the title Unable to run benchmark Unable to run benchmark on Windows Feb 5, 2022
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

1 participant