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

File paths with spaces cause early command splitting on Windows CMD #798

Open
jonnyawsom3 opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@jonnyawsom3
Copy link

'Solid' file path.

hyperfine -r 1 --show-output -i "djxl "C:\Users\jonat\Downloads\Test.jxl" --disable_output"
Benchmark 1: djxl C:\Users\jonat\Downloads\Test.jxl --disable_output
JPEG XL decoder v0.12.0 3d7cec2 [AVX2,SSE2]
Decoded to pixels.
4100 x 4000,  98.436 MP/s [98.44, 98.44], , 1 reps, 16 threads.
  Time (abs ≡):        210.1 ms               [User: 1951.6 ms, System: 275.0 ms]

With a single space.

hyperfine -r 1 --show-output -i "djxl "C:\Users\jonat\Downloads\Te st.jxl" --disable_output"
Benchmark 1: djxl C:\Users\jonat\Downloads\Te
JPEG XL decoder v0.12.0 3d7cec2 [AVX2,SSE2]
couldn't load C:\Users\jonat\Downloads\Te
  Time (abs ≡):         15.7 ms               [User: 0.0 ms, System: 9.1 ms]

  Warning: Ignoring non-zero exit code.

Benchmark 2: st.jxl --disable_output
'st.jxl' is not recognized as an internal or external command,
operable program or batch file.
  Time (abs ≡):         11.5 ms               [User: 0.0 ms, System: 0.0 ms]

  Warning: Ignoring non-zero exit code.

Summary
  st.jxl --disable_output ran
    1.37 times faster than djxl C:\Users\jonat\Downloads\Te

The file path is split into separate commands with every additional space, making it quite hard to benchmark files without first moving and renaming them.

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