Last active
April 26, 2023 16:02
-
-
Save headius/917f4036cd5e03f27dec915d1dfe3fa7 to your computer and use it in GitHub Desktop.
JRuby using Checkpoint and Restore In Userspace to start up fast
This file contains hidden or 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
root@e7fc053b9e41:/instantOnDemo/jruby# time jruby -e 'puts "hello!"' | |
hello! | |
real 0m5.546s | |
user 0m9.524s | |
sys 0m0.796s | |
root@e7fc053b9e41:/instantOnDemo/jruby# jruby --checkpoint -e 'puts "hello!"' | |
Warming up JRuby... done! Saving checkpoint. | |
Killed | |
root@e7fc053b9e41:/instantOnDemo/jruby# time jruby --restore | |
hello! | |
real 0m0.904s | |
user 0m1.047s | |
sys 0m0.403s | |
root@e7fc053b9e41:/instantOnDemo/jruby# time jruby --restore | |
hello! | |
real 0m0.890s | |
user 0m1.039s | |
sys 0m0.369s | |
root@e7fc053b9e41:/instantOnDemo/jruby# time jruby --restore | |
hello! | |
real 0m0.696s | |
user 0m0.673s | |
sys 0m0.370s | |
root@e7fc053b9e41:/instantOnDemo/jruby# time jruby --restore | |
hello! | |
real 0m0.704s | |
user 0m0.674s | |
sys 0m0.375s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment