mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Add benchmark for hash small literals
Co-Authored-By: Krzysztof Rybka <krzysztof.rybka@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									ea921abdec
								
							
						
					
					
						commit
						bf41340ebb
					
				
					 3 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								benchmark/hash_literal_small2.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								benchmark/hash_literal_small2.rb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
1_000_000.times.map { { "foo" => "bar", "bar" => "baz" }  }
 | 
			
		||||
							
								
								
									
										3
									
								
								benchmark/hash_literal_small4.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								benchmark/hash_literal_small4.rb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
1_000_000.times.map { { "foo" => "bar", "bar" => "baz", "baz" => "lol", "lol" => "lgtm" } }
 | 
			
		||||
							
								
								
									
										3
									
								
								benchmark/hash_literal_small8.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								benchmark/hash_literal_small8.rb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
1_000_000.times.map { { "foo" => "bar", "bar" => "baz", "baz" => "lol", "lol" => "lgtm", "lgtm" => "nope", "nope" => "ok", "ok" => "again", "again" => "wait" } }
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue