今度は最適化した場合を見てみよう。結果は以下のようになった。
result: 489261678 Flat profile of 10.61 secs (679 total ticks): main Interpreted + native Method 0.1% 1 + 0 java.util.jar.Attributes$Name.isValid 0.1% 1 + 0 Total interpreted Compiled + native Method 99.7% 677 + 0 Test.expand 99.7% 677 + 0 Total compiled Thread-local ticks: 0.1% 1 Class loader
約11秒である。