I managed to compile it for OS X 10.8.4 with XQuartz 2.7.4(I've attached the binary):
Code:
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion light texture zbuffer area=850
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:11:29 2013
visual: 0xec
850 pixel triangles, 39 triangles/strip, 1 strips
vertex data: n3s t2s v3f
flat shading, zbuffer on, light on, texture on
window size: 848 x 848
test time: 1.993 secs.
time per frame: 0.002 msecs.
geometry rate: 134858192 triangles/sec
fill rate: 114629.468 Mpixels/sec
Early 2008 Mac Pro, Dual 2.8GHz Quad Core Xeon, 32GB Ram, nVidia GTX 660Ti 3GB
I'm rather curious to see the scores a more modern machine could produce now
Edit: A few more scores:
Code:
----------------+---------------+------------|
args | tri/sec | Mpix/s |
----------------+---------------+------------|
no args | 326498208 | 16324.911 |
t l s | 312549408 | 15627.471 |
area=12 | 399484480 | 4793.814 |
area=100 | 310715264 | 31071.529 |
area=1000 | 126571336 | 126571.340 |
t l s area=12 | 406774080 | 4881.289 |
t l s area=100 | 316473504 | 31647.351 |
t l s area=1000 | 127460312 | 127460.311 |
----------------+---------------+------------|
and all the outputs:
Code:
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:25:23 2013
visual: 0xe8
50 pixel triangles, 90 triangles/strip, 1 strips
vertex data: v3f
flat shading, zbuffer off, light off, texture off
window size: 476 x 476
test time: 2.003 secs.
time per frame: 0.002 msecs.
geometry rate: 326498208 triangles/sec
fill rate: 16324.911 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin texture light smooth
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:27:47 2013
visual: 0xe8
50 pixel triangles, 90 triangles/strip, 1 strips
vertex data: n3s t2s v3f
smooth shading, zbuffer off, light on, texture on
window size: 476 x 476
test time: 1.993 secs.
time per frame: 0.002 msecs.
geometry rate: 312549408 triangles/sec
fill rate: 15627.471 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin area=12
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:31:45 2013
visual: 0xe8
12 pixel triangles, 90 triangles/strip, 2 strips
vertex data: v3f
flat shading, zbuffer off, light off, texture off
window size: 300 x 300
test time: 1.997 secs.
time per frame: 0.004 msecs.
geometry rate: 399484480 triangles/sec
fill rate: 4793.814 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin area=100
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:34:22 2013
visual: 0xe8
100 pixel triangles, 90 triangles/strip, 1 strips
vertex data: v3f
flat shading, zbuffer off, light off, texture off
window size: 666 x 666
test time: 1.991 secs.
time per frame: 0.002 msecs.
geometry rate: 310715264 triangles/sec
fill rate: 31071.529 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin area=1000
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:35:05 2013
visual: 0xe8
1000 pixel triangles, 36 triangles/strip, 1 strips
vertex data: v3f
flat shading, zbuffer off, light off, texture off
window size: 850 x 850
test time: 1.989 secs.
time per frame: 0.002 msecs.
geometry rate: 126571336 triangles/sec
fill rate: 126571.340 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin texture light smooth area=12
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:35:56 2013
visual: 0xe8
12 pixel triangles, 90 triangles/strip, 2 strips
vertex data: n3s t2s v3f
smooth shading, zbuffer off, light on, texture on
window size: 300 x 300
test time: 1.992 secs.
time per frame: 0.004 msecs.
geometry rate: 406774080 triangles/sec
fill rate: 4881.289 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin texture light smooth area=100
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:36:35 2013
visual: 0xe8
100 pixel triangles, 90 triangles/strip, 1 strips
vertex data: n3s t2s v3f
smooth shading, zbuffer off, light on, texture on
window size: 666 x 666
test time: 1.985 secs.
time per frame: 0.002 msecs.
geometry rate: 316473504 triangles/sec
fill rate: 31647.351 Mpixels/sec
Stoos-Mac-Pro:tenmillion Stoo$ ./tenmillion.bin texture light smooth area=1000
running on Stoos-Mac-Pro.local (NVIDIA GeForce GTX 660 Ti OpenGL Engine) Tue May 28 20:37:14 2013
visual: 0xe8
1000 pixel triangles, 36 triangles/strip, 1 strips
vertex data: n3s t2s v3f
smooth shading, zbuffer off, light on, texture on
window size: 850 x 850
test time: 2.030 secs.
time per frame: 0.002 msecs.
geometry rate: 127460312 triangles/sec
fill rate: 127460.311 Mpixels/sec