File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 3737          MIN_BENCH_TIME : ' 0' 
3838        continue-on-error : ${{ matrix.continue-on-error || false }} 
3939
40+       - name : Test run_benchmarks.rb - Ractors 
41+         run : ./run_benchmarks.rb --category=ractor 
42+         env :
43+           WARMUP_ITRS : ' 1' 
44+           MIN_BENCH_ITRS : ' 1' 
45+           MIN_BENCH_TIME : ' 0' 
46+         continue-on-error : ${{ matrix.continue-on-error || false }} 
47+ 
48+       - name : Test run_benchmarks.rb - Ractor Only 
49+         run : ./run_benchmarks.rb --category=ractor-only 
50+         env :
51+           WARMUP_ITRS : ' 1' 
52+           MIN_BENCH_ITRS : ' 1' 
53+           MIN_BENCH_TIME : ' 0' 
54+         continue-on-error : ${{ matrix.continue-on-error || false }} 
55+ 
4056      - name : Test run_benchmarks.rb --graph 
4157        run : | 
4258          sudo apt-get update 
Original file line number Diff line number Diff line change 22require  'yaml' 
33
44describe  'benchmarks.yml'  do 
5-   it  'has the same entries as / benchmarks'  do 
5+   it  'lists all available  benchmarks'  do 
66    yjit_bench  =  File . expand_path ( '..' ,  __dir__ ) 
77    benchmarks_yml  =  YAML . load_file ( "#{ yjit_bench }  /benchmarks.yml" ) 
8-     benchmarks  =  Dir . glob ( "#{ yjit_bench }  /benchmarks/*" ) . map  do  |entry |
8+ 
9+     benchmarks  =  Dir . glob ( "#{ yjit_bench }  /benchmarks*/*" ) . map  do  |entry |
910      File . basename ( entry ) . delete_suffix ( '.rb' ) 
10-     end 
11-     assert_equal  benchmarks . sort ,  benchmarks_yml . keys . sort 
11+     end . compact 
12+ 
13+     assert_equal  benchmarks . sort ,  benchmarks_yml . keys . map {  |k | k . sub ( 'ractor/' ,  '' )  } . sort 
1214  end 
1315end 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments