A command-line benchmarking tool
You can probably use a wrapper like hyperfine to measure the running time accurately for both. Printing can be slow sometimes, so accuracy could suffer...
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.
A little story about the `yes` Unix command
1 project | reddit.com/r/programming | 21 Jul 2022
Hyperfine: A command-line benchmarking tool
1 project | news.ycombinator.com | 19 Jun 2022
why does so huge different time consuming when run fibonacci func in c, go, rust?
1 project | reddit.com/r/rust | 8 May 2022
Hyperfine - A command-line benchmarking tool
1 project | reddit.com/r/github_trends | 16 Apr 2022
Is there a way to know at times if sed, grep, awk, etc which would be more optimized/fast for the same task?
1 project | reddit.com/r/bash | 3 Feb 2022