mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	 27382eb9fc
			
		
	
	
		27382eb9fc
		
			
		
	
	
	
	
		
			
			* Add a benchmark-driver runner for Ractor * Process.clock_gettime(Process:CLOCK_MONOTONIC) could be slow in Ruby 3.0 Ractor * Fetching Time could also be slow * Fix a comment * Assert overriding a private method
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| type: lib/benchmark_driver/runner/ractor
 | |
| prelude: |
 | |
|   FLOATS = [*0.0.step(1.0, 0.001)]
 | |
| benchmark:
 | |
|   ractor_float_to_s: |
 | |
|     FLOATS.each {|f| f.to_s}
 | |
| loop_count: 100
 | |
| ractor: 2
 |