-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bench on Cygwin - supported? #38
Comments
@Kaos-Industries: What exit code does the |
Just to save everyone some time here: We have been going through the exact same thing on the Hyperfine bug tracker: sharkdp/hyperfine#90 My guess would be that
@Kaos-Industries Why would you claim that? It doesn't work in hyperfine as well, and there is a detailed analysis in the ticket above. |
You're right of course, when writing that I was juggling so many different tests and tools that I was struggling to keep track of what was going on. The idea that the cause of these |
@Kaos-Industries: Yeah, |
I'm sorry if I'm raising too many issues in such a short space of time, but this one is by far the most important for me since I first started looking at
bench
, as it stops me in my tracks from running it.I'm trying to use
bench
to benchmark the speeds of different grep-like programs (GNU grep, GNU grep with-F
, and ripgrep), using some relatively complicated for loops. For reference, I'm planning to do something like this:for i in {1..15};
do
(bench 'rg -i "ajndoandajskaskaksnaodnasnakdnaosnaond" "5GB_file.txt"') 2>&1 |
tee -a "/cygdrive/b/users/user/Tests/ripgrep (bench 5.2GB Ramdisked with Cache Flush, position 1).txt";
(bench 'LC_ALL=C grep -i "ajndoandajskaskaksnaodnasnakdnaosnaond" "5GB_file.txt"') 2>&1 |
tee -a "/cygdrive/b/users/user/Tests/grep (bench 5.2GB Ramdisked with Cache Flush, position 1).txt";
(bench 'LC_ALL=C grep -Fi "ajndoandajskaskaksnaodnasnakdnaosnaond" "losers_5GB.txt"') 2>&1 |
tee -a "/cygdrive/b/users/hashim/desktop/Tests/grep -F (bench 5.2GB Ramdisked with Cache Flush, position 1).txt";
done;
Before I go about trying to get that to work, I was trying to test with the most minimal form that I can run in a single command, which is this:
"bench LC_ALL=C grep -i 'ajndoandajskaskaksnaodnasnakdnaosnaond' '5GB_file.txt'"
...but even that fails. When I try to run it, I get the following output:
benchmarking LC_ALL=C grep -i "ajndoandajskaskaksnaodnasnakdnaosnaond" "losers_sorted.txt" bench.exe: ShellFailed {shellCommandLine = "LC_ALL=C grep -i 'ajndoandajskaskaksnaodnasnakdnaosnaond' 'losers_sorted.txt'", shellExitCode = ExitFailure 1}
As far as I can tell, the syntax is correct as per the documentation, and works fine in similar applications like
hyperfine
. Any idea what's going on here? Is this possibly a problem with the shell thatbench
uses on a Windows system, or is something else at work here?Thanks for the help, I'd appreciate it a lot.
The text was updated successfully, but these errors were encountered: