[squeak-dev] Re: 2 raisedTo: 100000000` crashes VM

timfelgentreff timfelgentreff at gmail.com
Fri Jun 3 12:25:43 UTC 2016


I'm fairly sure that the RSqueak JIT realizes that with both 2 and 100000000
being constants in the doIt method, basic size is always going to return the
same thing. In that case we're measuring the first ~1000 iterations, then
the JIT time, and then only the cost of returning a constant.


Fabio Niephaus-3 wrote
> On my machine:
> 
> SqueakJS:  2832ms
> RSqueak: 2523ms (*)
> 
> (*) using fallback Smalltalk code for large integer;
> https://www.hpi.uni-potsdam.de/hirschfeld/artefacts/rsqueak/bundle/RSqueak.zip
> 
> 
> Maybe the JITs realize that the result of "2 raisedTo: ...." is not being
> used and omit the calculation?
> 
> -- 
> 
> On Thu, Jun 2, 2016 at 12:24 PM Bert Freudenberg <

> bert@

> >
> wrote:
> 
>> On 02.06.2016, at 03:19, Eliot Miranda <

> eliot.miranda@

> > wrote:
>> > OK, tis fixed in VMMaker.oscog-eem.1879.
>> >
>> > Reporting - 774 tallies, 6,836 msec.
>>
>> Nice!
>>
>> Is this finally a benchmark where SqueakJS can beat other VMs?
>>
>> [10 timesRepeat: [(2 raisedTo: 100000000) basicSize]] timeToRun
>>
>> Interp: 18042 ms
>> Cog: 7965 ms
>> Spur: ?
>> SqueakJS: 2821 ms (*)
>>
>> :D
>>
>> - Bert -
>>
>> (*)
>> http://bertfreudenberg.github.io/SqueakJS/run/#url=http://freudenbergs.de/bert/squeakjs&files=[Squeak4.5-13680.image,Squeak4.5-13680.changes,SqueakV41.sources]
>>
>>
>>





--
View this message in context: http://forum.world.st/2-raisedTo-100000000-crashes-VM-tp4898583p4899014.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list