space/speed tradeoff in configuring TT

Edwin Smith edwsmith at adobe.com
Mon Jun 30 17:32:11 PDT 2008


awesome!

 

We're making use of the x-platform build scripts, which enable flexibly
generating makefiles for different configurations.  There is no "prefer
size or speed" configuration option; lacking such a thing, the default
should be a good blend.  Given the current climate of the project i'd go
out on a limb and say 13% size increase is worth a 13% speedup,
especially knowing that we can get back a lot of that size increase by
doing the work of picking which subset of source files to optimize for
speed.

 

The windows x-platform build scripts for TT were broken for a while, but
I just saw a patch that should fix them.

 

Ed

 

From: tamarin-devel-bounces at mozilla.org
[mailto:tamarin-devel-bounces at mozilla.org] On Behalf Of Haghighat,
Mohammad R
Sent: Monday, June 30, 2008 8:25 PM
To: 'tamarin-devel at mozilla.org'
Subject: space/speed tradeoff in configuring TT

 

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/87d01952/attachment-0001.html 


More information about the Tamarin-devel mailing list