Created
          August 28, 2018 05:22 
        
      - 
      
- 
        Save hsbt/483d4bf32399357edc4495fa61867bee to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | ~/D/g/ruby > hyperfine --min-runs 5 'ruby -e "p String"' 'ruby --disable-gems -e "p String"' | |
| Benchmark #1: ruby -e "p String" | |
| Time (mean ± σ): 310.4 ms ± 24.5 ms [User: 138.2 ms, System: 76.2 ms] | |
| Range (min … max): 288.8 ms … 367.0 ms | |
| Benchmark #2: ruby --disable-gems -e "p String" | |
| Time (mean ± σ): 142.7 ms ± 6.3 ms [User: 53.8 ms, System: 57.8 ms] | |
| Range (min … max): 131.9 ms … 152.9 ms | |
| Summary | |
| 'ruby --disable-gems -e "p String"' ran | |
| 2.17x faster than 'ruby -e "p String"' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment