-
Hi, I'm writing a speed test for my program and I use |
Beta Was this translation helpful? Give feedback.
Answered by
faho
Jan 24, 2024
Replies: 1 comment 1 reply
-
You can't redirect the output of fish's time keyword, no. If you want to profile a script, you can use fish's fish --profile /tmp/my.prof /path/to/your/script This will then give you a full list of what took how long. Alternatively, if you want to benchmark it, you can use https://github.com/sharkdp/hyperfine/. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Catizard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't redirect the output of fish's time keyword, no.
If you want to profile a script, you can use fish's
--profile
commandline option, likefish --profile /tmp/my.prof /path/to/your/script
This will then give you a full list of what took how long.
Alternatively, if you want to benchmark it, you can use https://github.com/sharkdp/hyperfine/.