研究日誌。

大規模なグラフ処理に対してメモリ階層構造を考慮した高性能なソフトウェアを開発。

Gnuplot(1) - ファイルからのプロット。

2009-02-04 01:02:43 | Weblog
USA-road-d.NY.gr における枝長 len を新たな枝長を len' = len x 2^n として実験を行った結果が次のようであるとする。

# n 2-heap Buckets   MLB
-10   5.78    2.78  4.59
 -9   5.89    3.15  4.51
 -8   6.13    3.21  4.68
 -7   6.20    3.10  4.75
 -6   6.12    3.14  5.14
 -5   6.22    3.24  5.25
 -4   6.21    3.39  5.48
 -3   6.21    3.56  5.92
 -2   6.24    3.76  6.18
 -1   6.21    3.89  6.23
  0   6.23    4.08  6.28
  1   6.18    4.18  6.28
  2   6.25    4.74  6.28
  3   6.20    5.83  6.28
  4   6.24    8.17  6.28
  5   6.22   13.28  6.30
  6   6.22   22.18  6.32
  7   6.24   37.63  6.30
  8   6.22   67.75  6.28
  9   6.25  127.44  6.29
 10   6.23  246.17  6.28


これに対し、図のようなグラフをプロットするためには、次のようにすればよい。

plot "len-scaling.txt" using 1:2 with linespoints title "2-heap", 
"" using 1:3 with linespoints title "buckets", 
"" using 1:4 with linespoints title "MLB"

set logscale y 2;
set xtics -10,1; 
set xlabel 't' ;
set ylabel '[sec]';
replot


最新の画像もっと見る

コメントを投稿