@@ -43,7 +43,7 @@ if [ -d "$RESULTS_DIR/networkx" ]; then
4343 [ -f " $csv " ] || continue
4444 # NetworkX outputs to CSV with columns: test_name, graph_name, nodes, edges, min, max, mean, std, median
4545 # We want: tool=networkx, matrix=graph_name, threads=1, time_ms=mean
46- while IFS=' ,' read -r test graph nodes edges min max mean std median ; do
46+ while IFS=' ,' read -r test graph _nodes _edges _min _max mean _std _median ; do
4747 if [[ " $test " == * " bfs" * ]] && [[ " $graph " != " graph_name" ]]; then
4848 echo " networkx,$graph ,1,$mean " >> " $RESULTS_DIR /bfs_results.csv"
4949 fi
@@ -85,11 +85,11 @@ if [ -d "$RESULTS_DIR/qtreefsharp" ]; then
8585 for csv in " $RESULTS_DIR /qtreefsharp" /* BFS* .csv; do
8686 [ -f " $csv " ] || continue
8787 # BenchmarkDotNet format: Method,Mean,Median,StdDev,Min,Max,Iterations
88- while IFS=' ,' read -r method mean median stddev min max iters ; do
88+ while IFS=' ,' read -r method mean _median _stddev _min _max _iters ; do
8989 if [[ " $method " != " Method" ]]; then
9090 # Extract threads from method name or filename
9191 threads=" 1" # Need to extract from run
92- matrix=$( echo " $ method" | sed ' s/\..*// ' )
92+ matrix=" ${ method%% . * } "
9393 echo " qtreefsharp,$matrix ,$threads ,$mean " >> " $RESULTS_DIR /bfs_results.csv"
9494 fi
9595 done < " $csv "
@@ -103,7 +103,7 @@ echo "tool,matrix,threads,time_ms" > "$RESULTS_DIR/sssp_results.csv"
103103if [ -d " $RESULTS_DIR /networkx" ]; then
104104 for csv in " $RESULTS_DIR /networkx" /* .csv; do
105105 [ -f " $csv " ] || continue
106- while IFS=' ,' read -r test graph nodes edges min max mean std median ; do
106+ while IFS=' ,' read -r test graph _nodes _edges _min _max mean _std _median ; do
107107 if [[ " $test " == * " sssp" * ]] && [[ " $graph " != " graph_name" ]]; then
108108 echo " networkx,$graph ,1,$mean " >> " $RESULTS_DIR /sssp_results.csv"
109109 fi
143143if [ -d " $RESULTS_DIR /qtreefsharp" ]; then
144144 for csv in " $RESULTS_DIR /qtreefsharp" /* SSSP* .csv; do
145145 [ -f " $csv " ] || continue
146- while IFS=' ,' read -r method mean median stddev min max iters ; do
146+ while IFS=' ,' read -r method mean _median _stddev _min _max _iters ; do
147147 if [[ " $method " != " Method" ]]; then
148148 threads=" 1"
149- matrix=$( echo " $ method" | sed ' s/\..*// ' )
149+ matrix=" ${ method%% . * } "
150150 echo " qtreefsharp,$matrix ,$threads ,$mean " >> " $RESULTS_DIR /sssp_results.csv"
151151 fi
152152 done < " $csv "
@@ -160,7 +160,7 @@ echo "tool,matrix,threads,time_ms" > "$RESULTS_DIR/triangles_results.csv"
160160if [ -d " $RESULTS_DIR /networkx" ]; then
161161 for csv in " $RESULTS_DIR /networkx" /* .csv; do
162162 [ -f " $csv " ] || continue
163- while IFS=' ,' read -r test graph nodes edges min max mean std median ; do
163+ while IFS=' ,' read -r test graph _nodes _edges _min _max mean _std _median ; do
164164 if [[ " $test " == * " triangles" * ]] && [[ " $graph " != " graph_name" ]]; then
165165 echo " networkx,$graph ,1,$mean " >> " $RESULTS_DIR /triangles_results.csv"
166166 fi
200200if [ -d " $RESULTS_DIR /qtreefsharp" ]; then
201201 for csv in " $RESULTS_DIR /qtreefsharp" /* Triangles* .csv; do
202202 [ -f " $csv " ] || continue
203- while IFS=' ,' read -r method mean median stddev min max iters ; do
203+ while IFS=' ,' read -r method mean _median _stddev _min _max _iters ; do
204204 if [[ " $method " != " Method" ]]; then
205205 threads=" 1"
206- matrix=$( echo " $ method" | sed ' s/\..*// ' )
206+ matrix=" ${ method%% . * } "
207207 echo " qtreefsharp,$matrix ,$threads ,$mean " >> " $RESULTS_DIR /triangles_results.csv"
208208 fi
209209 done < " $csv "
0 commit comments