hosh
hosh copied to clipboard
enumerate a benchmark
Problem
Enumerating a benchmark is not possible right now:
benchmark 5000 { rand | drop 10000 | take 10000 | count } | enumerate
1 10_000
without any further output.
Solution TBD
Benefit
Enumerating a benchmark is not very common but should be fixed anyway (most likely it is affecting other commands as well).
without a pipeline it works as expected:
hosh> benchmark 5 { echo a } | enumerate
1 a
2 a
3 a
4 a
5 a
6 5 PT0.000038943S PT0.000482544S PT0.000134565S