RFR: JDK-8150496,(zipfs) Fix performance issues in zip-fs

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed May 4 19:18:14 UTC 2016


On 05/04/2016 10:14 PM, Xueming Shen wrote:
> http://cr.openjdk.java.net/~sherman/8150496/webrev

Okay, good.

> yes, the performance gains still hold.
> 
> Benchmark                              Mode  Cnt     Score     Error  Units
> -------------------------------new-------------------------------------------
> 
> MyBenchmark.ZFS_Exists                 avgt   50     4.140 ±   0.374  ms/op
> MyBenchmark.ZFS_GetPath                avgt   50    12.521 ±   2.003  ms/op
> MyBenchmark.ZFS_GetPathExists          avgt   50    20.931 ±   1.986  ms/op
> MyBenchmark.ZFS_GetPathIsDirectory     avgt   50    25.531 ±   1.322  ms/op
> MyBenchmark.ZFS_GetPathIsRegularFile   avgt   50    26.971 ±   2.957  ms/op
> MyBenchmark.ZFS_GetPathNewInputStream  avgt   50    31.064 ±   1.542  ms/op
> MyBenchmark.ZFS_GetPathToRealPath      avgt   50    20.506 ±   0.512  ms/op
> MyBenchmark.ZFS_IsDirectory            avgt   50     8.935 ±   0.367  ms/op
> MyBenchmark.ZFS_IsRegularFile          avgt   50     8.831 ±   0.505  ms/op
> MyBenchmark.ZFS_Itr                    avgt   50    18.981 ±   0.367  ms/op
> MyBenchmark.ZFS_Open                   avgt   50  1340.401 ± 204.590  ms/op
> MyBenchmark.ZFS_ToRealPath             avgt   50     4.803 ±   0.450  ms/op
> MyBenchmark.ZFS_newInputStream         avgt   50    14.687 ±   0.515  ms/op
> -------------------------------old-------------------------------------------
> 
> MyBenchmark.ZFS_Exists                 avgt   50    10.475 ±  0.438  ms/op
> MyBenchmark.ZFS_GetPath                avgt   50    12.199 ±  0.522  ms/op
> MyBenchmark.ZFS_GetPathExists          avgt   50    27.345 ±  1.886  ms/op
> MyBenchmark.ZFS_GetPathIsDirectory     avgt   50    29.667 ±  3.120  ms/op
> MyBenchmark.ZFS_GetPathIsRegularFile   avgt   50    28.810 ±  2.455  ms/op
> MyBenchmark.ZFS_GetPathNewInputStream  avgt   50   152.794 ±  3.628  ms/op
> MyBenchmark.ZFS_GetPathToRealPath      avgt   50    36.499 ±  1.331  ms/op
> MyBenchmark.ZFS_IsDirectory            avgt   50    10.887 ±  0.454  ms/op
> MyBenchmark.ZFS_IsRegularFile          avgt   50    11.276 ±  0.410  ms/op
> MyBenchmark.ZFS_Itr                    avgt   50    21.126 ±  0.729  ms/op
> MyBenchmark.ZFS_Open                   avgt   50  1587.028 ± 90.858  ms/op
> MyBenchmark.ZFS_ToRealPath             avgt   50    19.399 ±  0.613  ms/op

Ok, good.

> btw, it appears the jmh no longer "install" with the latest jdk9
> repo. After I updated the jdk9 repo, now "mvn clean install" throws
> exception showed below. But it runs the benchmark fine. Maybe my jmh
> version is old?

Yes, known failure. JMH 1.12 should be compatible with recent JDK 9.


Thanks,
-Aleksey




More information about the core-libs-dev mailing list