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

Explain why there are two runs for JavaScript #12

Open
hakanai opened this issue Jan 15, 2023 · 0 comments
Open

Explain why there are two runs for JavaScript #12

hakanai opened this issue Jan 15, 2023 · 0 comments

Comments

@hakanai
Copy link

hakanai commented Jan 15, 2023

JavaScript example given is:

$ time node src/main/javascript/java_faster_than_javascript.js 
node count: 13537
checksum: 470936697371

real    1m6,196s
user    1m13,707s
sys     0m2,256s
$ time node src/main/javascript/java_faster_than_node.js 
node count: 13537
checksum: 470936697371

real    0m26,172s
user    0m30,301s
sys     0m0,628s

What's the difference? Both are running on nodejs.

If it's just one is slower and one is faster, isn't keeping the faster one a better demonstration?

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

1 participant