[Vm-dev] Some Performance Numbers: Java vs. CogVM vs. SOM

Levente Uzonyi leves at elte.hu
Tue Apr 7 20:57:06 UTC 2015


Answering some of my own questions:

Yes, Pharo has a #% method.

Yes, it's possible to reproduce the Jenkins hash based PRNG with Nativeboost[1].
It's about 10x faster than the one with ThirtyTwoBitRegister. So the 
overall speedup is ~60x compared to the pure Smalltalk one.

No, the code doesn't work out of the box in Pharo. I had to change 
SomAll's superclass from Object to SomBenchmarkHarness.

No, SomPageRank doesn't run on Pharo either. It gets into an infinite 
loop, because #generateRandomPagesN:outLinks:divisor: is evaluated with n 
= 1, and that makes the following loop infinite:

 	k := SomJenkinsRandom random abs % n.
         [i = k] whileTrue: [
           k := SomJenkinsRandom random abs % n.
         ].

Levente

[1] http://leves.web.elte.hu/squeak/NBJenkinsRandom.st


More information about the Vm-dev mailing list