Created
October 27, 2015 16:29
-
-
Save SergXIIIth/ee705b2e0798d2ca0950 to your computer and use it in GitHub Desktop.
Crystal perfomance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ crystal build src/hello.cr --release | |
$ time ./hello | |
Hello world | |
real 0m0.003s | |
user 0m0.000s | |
sys 0m0.004s | |
$ time ruby hello.rb | |
Hello world | |
real 0m0.116s | |
user 0m0.080s | |
sys 0m0.039s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But note that the whole difference is probably Ruby's start up. You should probably do something like:
There I don't think there will be any difference.