mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	benchmark/range_last.yml: add benchmark cases
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fc7f990666
								
							
						
					
					
						commit
						bf6584b5d0
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,4 +1,6 @@
 | 
				
			||||||
prelude: |
 | 
					prelude: |
 | 
				
			||||||
  range = 1..1_000_000
 | 
					  range = (1..1_000_000)
 | 
				
			||||||
benchmark:
 | 
					benchmark:
 | 
				
			||||||
  range_last: range.last(1000)
 | 
					  - (1..1_000_000).last(100)
 | 
				
			||||||
 | 
					  - (1..1_000_000).last(1000)
 | 
				
			||||||
 | 
					  - (1..1_000_000).last(10000)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue