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

Bench outputs only first line (on Windows?) #41

Open
Biserkov opened this issue Jun 19, 2016 · 2 comments
Open

Bench outputs only first line (on Windows?) #41

Biserkov opened this issue Jun 19, 2016 · 2 comments

Comments

@Biserkov
Copy link

I'm not sure whether this is an issue with criterium, Java or Windows. I'm running an uberjar (standalone) from the command line.

When (bench ...) is the last thing to output to the console I'm only getting the first line of output: Evaluation count : 64329 in 60 samples of 1072 calls.

A workaround is to print something after bench.

@xonev
Copy link

xonev commented Jul 13, 2020

I have the same exact issue on macOS. Everything works fine when I run my code from the REPL, but when I create an uberjar and run from the uberjar, then I only get the one line of output.

@xonev
Copy link

xonev commented Jul 13, 2020

It appears that the issue is related to the output not being flushed. If I add a call to (flush) after my benchmark code, then the output is as I'd expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants