雨谷の日和

過去20年で2,700を超えるアニメの第1話だけは見続けた僕のお勧めアニメがハズレなはずがない

行列式計算改良(先頭アドレスのみコピー)インデックス版Java(最適化無)

Javaで書いたものについて、まずは最適化無しでの実行profileを見てみよう。

result: 489261678

Flat profile of 51.35 secs (3277 total ticks): main

  Interpreted + native   Method
 98.6%  2798  +   432    Test.expand
 98.6%  2798  +   432    Total interpreted

  Thread-local ticks:
  0.1%     2             Blocked (of total)
  0.1%     2             Class loader
  0.6%    20             Interpreter
  0.6%    21             Unknown: running frame
  0.1%     2             Unknown: thread_state


Global summary of 51.35 seconds:
100.0%  3287             Received ticks
  0.2%     7             Received GC ticks
  0.1%     3             Other VM operations
  0.1%     2             Class loader
  0.6%    20             Interpreter
  0.7%    23             Unknown code

約51秒という結果となった。かなり速度の向上が見られる。
次は、最適化有りの場合も見てみよう。