- Description: Directly call real ruby.exe to get version info
- Time:
25~29ms
Ruby-on-Windows\3.2.1-1\bin\ruby.exe -v- Description: Directly call fake ruby.exe to get version info
- Time:
60~63ms
ruby.exe -v- Description: Get ruby version in normal way. This invokes fake
ruby.exe -vand then call realruby.exe -v - Time:
90~94ms
ruby -v
# or
ruby --version- Description: This invokes 'ruby.exe -v'
- Time:
72~76ms
rbenv versionConclusion: normally, we will always use ruby -v to get version, it delays about 65ms.
# 270~281ms
ruby -e ""
# 270~287ms
ruby -e "puts 'Hello World'"
# 204~220ms
Ruby-on-Windows\3.2.1-1\bin\ruby.exe -e "puts 'Hello World'"Conclusion: normally, we will always use ruby -e to execute, it delays about 65ms.
# 447~480ms
cr -h
# 382~390ms
C:\Ruby-on-Windows\3.2.0-1\bin\cr.bat -hConclusion: normally, we will always use gem name to execute, it delays about 57~100ms.