Pure Interpreter Speed

Stefan Marr java at stefan-marr.de
Fri Oct 24 09:01:53 UTC 2014


Hi Bernhard:

> On 24 Oct 2014, at 10:40, Bernhard Urban <Bernhard.Urban at jku.at> wrote:
> 
> 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.

Sorry, no good news:

 ../graal/mxtool/mx --vm server-nograal vm -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: 753905us
DeltaBlue: iterations=1 runtime: 431390us
DeltaBlue: iterations=1 runtime: 489044us
DeltaBlue: iterations=1 runtime: 453485us
DeltaBlue: iterations=1 runtime: 425499us
…

And just to make sure nothing else changed, I directly ran the normal one again:

$ ../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: 1336776us
DeltaBlue: iterations=1 runtime: 1030942us
DeltaBlue: iterations=1 runtime: 958083us
DeltaBlue: iterations=1 runtime: 948710us
DeltaBlue: iterations=1 runtime: 948175us
DeltaBlue: iterations=1 runtime: 962985us


> 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.

Well, it is a factor of 2 for the DeltaBlue on TruffleSOM.
But, the other benchmarks I just retried look very similar.

Best regards
Stefan

-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list