[squeak-dev] Float oddities
Nicolas Cellier
nicolas.cellier.aka.nice at gmail.com
Fri Sep 27 19:57:46 UTC 2013
Again, this is a resolved problem, see
https://code.google.com/p/cog/issues/detail?id=41&can=1&q=float
On my home brewed COG, I have
Home brewed 4.10.10 interpreter VM -> 1219 1215
Home brewed COG VM -> 156 157
2013/9/27 Eliot Miranda <eliot.miranda at gmail.com>
> Hi Bob,
>
> thanks for the heads up! I'll take a look at this ASAP, but
> ephemerons in the Spur scavenger come first.
>
>
> On Fri, Sep 27, 2013 at 11:12 AM, Bob Arning <arning315 at comcast.net>wrote:
>
>> Following up Herbert's question, I wrote:
>>
>> compareTiming: a to: b
>> "
>> ---interpreter vm (5.7.4.1) ---------
>> Float compareTiming: 1 to: 1.0 ==> 719
>> Float compareTiming: 1.0 to: 1.0 ==> 991
>> Float compareTiming: 1 to: 1 ==> 312
>> Float compareTiming: 1.0 to: 1 ==> 686
>> ---cog vm (2749)---------
>> *Float compareTiming: 1 to: 1.0 ==> 28162*
>> Float compareTiming: 1.0 to: 1.0 ==> 148
>> Float compareTiming: 1 to: 1 ==> 97
>> Float compareTiming: 1.0 to: 1 ==> 179
>> "
>>
>> ^[1000000 timesRepeat: [
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> a < b.
>> ]] timeToRun
>>
>> So, some obvious questions:
>> - in the interpreter vm, why is comparing two floats slower that an
>> integer and a float?
>> - what's up with Cog? Three tests are faster by the expected ratio and
>> one took a real dive.
>>
>> Also, the profiler Herbert used could use some attention to the NewFloat
>> printing:
>>
>> 99.9 (898,069) Multiline1 doOneStep:
>> *77.30000000000001* (694,902) Multiline1 [HkTestLine] doTests:
>> 73.8 (663,438) HkRunin [HkTestStation] canStartNextTest:
>>
>> Cheers,
>> Bob
>>
>>
>>
>>
>>
>
>
> --
> best,
> Eliot
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130927/b0cce4a5/attachment.htm
More information about the Squeak-dev
mailing list
|