Pure Interpreter Speed
Bernhard Urban
bernhard.urban at jku.at
Fri Oct 24 08:40:45 UTC 2014
Stefan,
can you please try mx --vm server-nograal [...]? as the name tells, this is
a server vm without graal modification, but built from the graal
sourcetree. It should be equal to what you see with -server from the Oracle
JDK (if not, then there is the problem).
It would be a shame if the GraalTruffleRuntime would impose such an
overhead. Overhead is expected, but I would say not in this order of
magnitude.
-Bernhard
On Oct 24, 2014 9:35 AM, "Stefan Marr" <java at stefan-marr.de> wrote:
> Hi Thomas:
>
> > On 24 Oct 2014, at 02:37, Thomas Wuerthinger <
> thomas.wuerthinger at oracle.com> wrote:
> >
> > Can you post the “-version” results for the two VMs you are comparing
> and the two command lines?
>
> I just reproduced it locally with the following VMs:
>
> $ java -server -version
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> Java HotSpot(™) 64-Bit Server VM (build 25.20-b23, mixed mode)
>
>
> $ ../graal/mxtool/mx --vm server vm -version
> java version "1.8.0_20"
> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
> OpenJDK 64-Bit Server VM (build
> 25.25-b02-internal-graal-unknown-venus-2014-10-19_13-05-36_CEST, mixed mode)
>
> The Graal code base is from October 18th.
>
>
> java -server -cp build/classes:libs/truffle.jar som.vm.Universe -cp
> Smalltalk:Examples/Benchmarks/DeltaBlue
> Examples/Benchmarks/BenchmarkHarness.som DeltaBlue 100 0 1000
>
> Starting DeltaBlue benchmark ...
> DeltaBlue: iterations=1 runtime: 830573us
> DeltaBlue: iterations=1 runtime: 493144us
> DeltaBlue: iterations=1 runtime: 564083us
> DeltaBlue: iterations=1 runtime: 520939us
> …
>
>
> ../graal/mxtool/mx --vm server vm
> -G:TruffleCompileOnly=__something_that_really_doesnt_exist__so_that_nothing_is_compiled__
> -G:-TraceTruffleInlining -G:-TraceTruffleCompilation
> -Xbootclasspath/a:build/classes:../graal/truffle.jar som.vm.Universe -cp
> Smalltalk:Examples/Benchmarks/DeltaBlue
> Examples/Benchmarks/BenchmarkHarness.som DeltaBlue 100 0 1000
>
> Starting DeltaBlue benchmark ...
> DeltaBlue: iterations=1 runtime: 1405182us
> DeltaBlue: iterations=1 runtime: 1094049us
> DeltaBlue: iterations=1 runtime: 1079595us
> DeltaBlue: iterations=1 runtime: 1065108us
> …
>
>
>
> And, that’s measured with the latest version of TruffleSOM:
>
> $ git clone --recursive https://github.com/SOM-st/TruffleSOM.git
> $ ant
>
> Best regards
> Stefan
>
>
> --
> Stefan Marr
> INRIA Lille - Nord Europe
> http://stefan-marr.de/research/
>
>
>
>
More information about the graal-dev
mailing list