10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I compared it with C++ and Python. Although slow it's not that bad. Only ~3.4 times slower than Python default interpreter.
time java -jar intp-0.1.2.jar test.intp real 0m20.845s user 0m21.236s sys 0m0.260s
i = 0 while (i < 10000) { j = 0 while (j < 10000) { j = j + 1 } i = i + 1 }
time python test.py real 0m6.061s user 0m6.028s sys 0m0.036s
i = 0 while (i < 10000): j = 0 while (j < 10000): j = j + 1 i = i + 1
clang++ test.cpp -o test -std=c++11 -O0 time ./test real 0m0.241s user 0m0.240s sys 0m0.000s
int main() { int i = 0; while (i < 10000) { int j = 0; while (j < 10000) { j = j + 1; } i = i + 1; } return 0; }
The text was updated successfully, but these errors were encountered:
Good blog post to read http://www.lihaoyi.com/post/MicrooptimizingyourScalacode.html
Sorry, something went wrong.
Another one https://gist.github.com/djspiewak/464c11307cabc80171c90397d4ec34ef
No branches or pull requests
I compared it with C++ and Python. Although slow it's not that bad. Only ~3.4 times slower than Python default interpreter.
Intp (0.1.2)
Python (2.7.6)
C++ (clang version 3.4)
The text was updated successfully, but these errors were encountered: