Skip to content
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

enumerate a benchmark #113

Open
dfa1 opened this issue Apr 30, 2019 · 1 comment
Open

enumerate a benchmark #113

dfa1 opened this issue Apr 30, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@dfa1
Copy link
Collaborator

dfa1 commented Apr 30, 2019

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 dfa1 added the bug Something isn't working label Apr 30, 2019
@dfa1
Copy link
Collaborator Author

dfa1 commented Apr 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant