Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

oopack

Abstraction Penalty
LibraryMrC 3.0CW11
mathlib 1.0 12.44
powermathlib 1.0 12.44
libmoto 1.0 12.44

System:

Power Macintosh 8500/180 = PowerPC 604e 180MHz, 256K L2

Compilers:

CW11 = Metrowerks CodeWarrior 11 -opt all -inline all -w off -opt schedule601 -d MAC -dialect cplus
MrC = Apple MrC 3.0.1f1c8 -opt speed -inline all

Libraries:

mathlib = Apple MathLib 2.0.3
powermathlib = Apple PowerMathLib 3.0d1
libmoto = Motorola libmoto provided with MotoTools 3.0

Detailed results

# CT.CompilersAchive:Kevin:oopack-cw-libmoto:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34770    2.4   2.6   14.3  13.1    1.1
Matrix            291    1.0   1.1   74.0  65.1    1.1
Complex         12832    0.8   4.5  120.8  22.9    5.3
Iterator        56996    1.0   5.8  117.9  19.7    6.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34949    2.5   2.6   14.3  13.2    1.1
Matrix            295    1.0   1.1   73.8  64.1    1.1
Complex         12819    0.8   4.5  120.6  22.9    5.3
Iterator        57274    1.0   5.8  118.5  19.7    6.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34943    2.5   2.6   14.3  13.2    1.1
Matrix            294    1.0   1.1   73.5  63.9    1.1
Complex         12871    0.8   4.5  121.1  22.9    5.3
Iterator        57164    1.0   5.8  118.3  19.7    6.0

# CT.CompilersAchive:Kevin:oopack-cw-mathlib:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34732    2.4   2.5   14.3  14.2    1.0
Matrix            291    1.0   1.1   74.0  64.2    1.2
Complex         12783    0.8   4.5  120.3  22.9    5.3
Iterator        57095    1.0   5.8  118.1  19.7    6.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34760    2.4   2.5   14.3  14.2    1.0
Matrix            292    1.0   1.1   74.2  64.4    1.2
Complex         12883    0.8   4.5  121.3  22.9    5.3
Iterator        57722    1.0   5.9  119.4  19.7    6.1

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34753    2.4   2.5   14.3  14.2    1.0
Matrix            291    1.0   1.1   74.0  64.2    1.2
Complex         12754    0.8   4.5  122.4  22.9    5.3
Iterator        57426    1.0   5.8  118.8  19.7    6.0

# CT.CompilersAchive:Kevin:oopack-cw-pmlib:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34541    2.4   2.4   14.3  14.2    1.0
Matrix            294    1.0   1.1   73.5  63.9    1.1
Complex         12905    0.8   4.5  121.5  22.9    5.3
Iterator        57044    1.0   5.8  118.0  19.7    6.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34604    2.4   2.4   14.3  14.2    1.0
Matrix            293    1.0   1.1   73.2  64.6    1.1
Complex         12810    0.8   4.5  120.6  22.9    5.3
Iterator        57555    1.0   5.8  119.1  19.7    6.1

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             34948    2.5   2.5   14.3  14.3    1.0
Matrix            294    1.0   1.1   73.5  64.9    1.1
Complex         12896    0.8   4.5  121.4  22.9    5.3
Iterator        57309    1.0   5.8  118.6  19.7    6.0

# CT.CompilersAchive:Kevin:oopack-mcc-libmoto:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             53231    2.1   2.0   24.8  26.0    1.0
Matrix            405    1.0   1.6  101.2  63.9    1.6
Complex         13583    0.8   2.4  130.4  46.2    2.8
Iterator        53863    0.9   4.6  119.7  23.6    5.1

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             53571    2.1   2.1   24.9  25.9    1.0
Matrix            402    1.0   1.6  102.2  64.1    1.6
Complex         13593    0.8   2.1  130.5  52.6    2.5
Iterator        56761    0.9   4.8  119.5  23.6    5.1

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             53339    2.1   2.0   24.8  26.0    1.0
Matrix            401    1.0   1.6  101.9  63.3    1.6
Complex         13718    0.8   2.1  131.7  52.3    2.5
Iterator        57380    1.0   4.8  118.7  23.7    5.0

# CT.CompilersAchive:Kevin:oopack-mrc-libmoto:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51549    2.7   2.5   19.0  20.5    0.9
Matrix            425    1.0   1.0  108.1 106.2    1.0
Complex         13047    0.8   0.8  125.3 127.8    1.0
Iterator        56802    0.9   1.0  119.6 117.5    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51763    2.7   2.5   19.1  20.4    0.9
Matrix            428    1.0   1.0  108.8 107.0    1.0
Complex         13069    0.8   0.8  125.5 128.0    1.0
Iterator        56813    1.0   1.0  117.5 117.5    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51430    2.7   2.5   18.8  20.6    0.9
Matrix            425    1.0   1.0  108.1 106.2    1.0
Complex         13012    0.8   0.8  124.9 127.5    1.0
Iterator        57226    1.0   1.0  118.4 118.4    1.0

# CT.CompilersAchive:Kevin:oopack-mrc-mathlib:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51495    2.7   2.5   19.0  20.5    0.9
Matrix            430    1.0   1.0  107.5 107.5    1.0
Complex         12992    0.8   0.8  124.7 127.3    1.0
Iterator        57203    1.0   1.0  118.4 118.4    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51367    2.7   2.5   19.0  20.5    0.9
Matrix            426    1.0   1.0  108.3 108.3    1.0
Complex         12913    0.8   0.8  126.5 129.1    1.0
Iterator        56977    1.0   1.0  117.9 117.9    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51947    2.8   2.5   18.8  20.5    0.9
Matrix            423    1.0   1.0  107.5 107.5    1.0
Complex         12863    0.8   0.8  126.0 128.6    1.0
Iterator        56949    1.0   1.0  117.8 117.8    1.0

# CT.CompilersAchive:Kevin:oopack-mrc-pmlib:
Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51632    2.7   2.5   18.9  20.5    0.9
Matrix            428    1.0   1.0  108.8 108.8    1.0
Complex         12880    0.8   0.8  126.2 126.2    1.0
Iterator        57201    1.0   1.0  118.3 118.3    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             52008    2.7   2.5   19.3  20.5    0.9
Matrix            425    1.0   1.0  108.1 106.2    1.0
Complex         13056    0.8   0.8  125.3 125.3    1.0
Iterator        57638    1.0   1.0  119.3 117.2    1.0

Version 1.0               Seconds       Mflops         
Test       Iterations     C    OOP     C    OOP  Ratio
----       ----------  -----------  -----------  -----
Max             51605    2.8   2.5   18.8  20.2    0.9
Matrix            424    1.0   1.0  107.8 107.8    1.0
Complex         12911    0.8   0.8  123.9 129.1    1.0
Iterator        56825    0.9   1.0  119.6 117.6    1.0


Back to MPW Home Page
Back to MPW Home Page