hosh icon indicating copy to clipboard operation
hosh copied to clipboard

enumerate a benchmark

Open dfa1 opened this issue 6 years ago • 1 comments

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).

dfa1 avatar Apr 30 '19 06:04 dfa1

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

dfa1 avatar Apr 30 '19 06:04 dfa1