space/speed tradeoff in configuring TT

Haghighat, Mohammad R mohammad.r.haghighat at intel.com
Mon Jun 30 17:24:36 PDT 2008


In TT configuration on Windows, by replacing the current optimization settings tuple (/Ox, /Os) which favors smaller code size over speed to (/O2, /Ot) which favors speed, one can achieve good speedups. The binary size is increased by ~13% (407552 -> 460288 : 12.9%) while the average speedup on Sunspider is 13.8%. I've not measured the impact on other platforms, but the results might be helpful in deciding where to put the cutoff line in the space/speed tradeoff. Do we have a guiding principle?

- moh

 https://bugzilla.mozilla.org/show_bug.cgi?id=428562

Core2-Duo

C:\tamarin-tracing\test\performance>runtests.py -i 50 sunspider/
Executing tests at 2008-06-30 16:24:10.343000
avm: C:\tamarin-tracing\platform\win32\obj_9\shell\Release\avm_orig.exe
avm2: C:\tamarin-tracing\platform\win32\obj_9\shell\Release\avm2_O2Ot.exe

test                                                   avm    avm2     %sp

sunspider/access-binary-trees.as                     219.0   187.0    14.6
sunspider/access-fannkuch.as                         422.0   360.0    14.7
sunspider/access-nbody.as                            484.0   375.0    22.5
sunspider/access-nsieve.as                           172.0   156.0     9.3
sunspider/bitops-3bit-bits-in-byte.as                 32.0    31.0     3.1
sunspider/bitops-bits-in-byte.as                     109.0    94.0    13.8
sunspider/bitops-bitwise-and.as                      578.0   500.0    13.5
sunspider/bitops-nsieve-bits.as                      172.0   140.0    18.6
sunspider/controlflow-recursive.as                    94.0    78.0    17.0
sunspider/crypto-aes.as                              469.0   406.0    13.4
sunspider/crypto-md5.as                              422.0   360.0    14.7
sunspider/crypto-sha1.as                             110.0    94.0    14.5
sunspider/math-cordic.as                             125.0   110.0    12.0
sunspider/math-partial-sums.as                       640.0   531.0    17.0
sunspider/math-spectral-norm.as                      109.0    94.0    13.8
sunspider/s3d-cube.as                                469.0   406.0    13.4
sunspider/s3d-morph.as                               265.0   250.0     5.7
sunspider/s3d-raytrace.as                            609.0   515.0    15.4
sunspider/string-fasta.as                            359.0   312.0    13.1
sunspider/string-validate-input.as                   812.0   687.0    15.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/tamarin-devel/attachments/20080630/a3997c61/attachment.html 


More information about the Tamarin-devel mailing list