mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			192 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			192 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
prelude: |
 | 
						|
  class C < Array
 | 
						|
    def set_ivars
 | 
						|
      @a = nil
 | 
						|
      @b = nil
 | 
						|
      @c = nil
 | 
						|
    end
 | 
						|
  end
 | 
						|
 | 
						|
  c = C.new
 | 
						|
benchmark:
 | 
						|
  vm_ivar_generic_set: |
 | 
						|
    c.set_ivars
 | 
						|
loop_count: 30000000
 |