File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,10 @@ async function recalc_scores (runs_dir) {
97
97
const { area_keys } = get_focus_areas ( )
98
98
for ( const [ i , r ] of all_runs . entries ( ) ) {
99
99
const [ date ] = r . split ( '.' )
100
+ const start = Date . now ( )
100
101
console . log ( `Reading run ${ runs_dir } /${ r } (${ i } /${ run_count } )` )
101
102
const run = await read_compressed ( `./${ runs_dir } /${ r } ` )
103
+ const start_score = Date . now ( )
102
104
console . log ( `Calculating score for run ${ runs_dir } /${ r } (${ i } /${ run_count } )` )
103
105
const score = score_run ( run , new_run , test_to_areas , ( ) => false )
104
106
const row = [
@@ -111,6 +113,13 @@ async function recalc_scores (runs_dir) {
111
113
row . push ( score [ area ] )
112
114
}
113
115
scores . push ( row )
116
+
117
+ const end = Date . now ( )
118
+ const read_time = start_score - start
119
+ const score_time = end - start_score
120
+ const total_time = end - start
121
+
122
+ console . log ( `Done in ${ total_time } ms (read in ${ read_time } ms; scored in ${ score_time } ms).` )
114
123
}
115
124
116
125
return scores
You can’t perform that action at this time.
0 commit comments