Relative speeds from compiler optimizations
As an experiment for A111, I compared various compiler optimizations using the simple technique shown in this line:
r3 --do "print [size? system/options/boot speed?]"
Here are the results for different optimizations:
opt | exe-size | interp | native | memory | disk |
none | 519512 | 5855 | 2459 | 93 | 137 |
-Os | 363404 | 5544 | 4132 | 116 | 164 |
-O1 | 416784 | 7150 | 4098 | 104 | 169 |
-O2 | 457744 | 8348 | 4112 | 114 | 171 |
-O3 | 560144 | 8215 | 4208 | 117 | 168 |
You can see that the default -O2 used for releases produces a good blend of results.
Measurements taken on a mid-priced CPU: Intel i5-2500 CPU @ 3.30GHz (quad core.)
13 Comments
|