[ENH][VM] Improved code generation (hopefully ;)
John M McIntosh
johnmci at mac.com
Wed Jul 9 04:16:03 UTC 2003
> From: Yoshiki.Ohshima at a...
> Date: Wed Jul 9, 2003 2:13 am
> Subject: Re: [ENH][VM] Improved code generation (hopefully ;)
>
> ...
> In the above benchmark, you can unroll the loop to measure the real
> difference:
>
> ^ Time millisecondsToRun: [1000000 timesRepeat: [
> 1 asFloat. 1 asFloat. 1 asFloat. 1 asFloat. 1 asFloat.
> 1 asFloat. 1 asFloat. 1 asFloat. 1 asFloat. 1 asFloat.
> ]].
>
> I bet the difference is actually more than 15%.
>
> # And, I advocated to have the no-fill version of non-pointer object
> # creation primitive almost 3 years ago^^;
>
Squeak time is not internet time, it moves slower...
However doing the unrolled loop with 25 asFloats shows about a 5%
speedup. The 15% talked
about earlier comes from hardware performance counters that measure
code usage.
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|