4 ms·
Well I've tried an even older machine - a 2009 MacBook Pro with a 2.4GHz Core2Duo. g++ PrimeChecker.c -o PrimeChecker: Time taken = 26.2687 g++ PrimeChecker.
by gambiting 11y ago
Well I've tried an even older machine - a 2009 MacBook Pro with a 2.4GHz Core2Duo.
g++ PrimeChecker.c -o PrimeChecker:
Time taken = 26.2687
g++ PrimeChecker.c -O2 -o PrimeChecker:
Time taken = 21.6129
So I would say that this his test doesn't really prove anything, not with an operation as simple as finding primes.
- B1FF_PSUVM 11y agoWell, that kind of numbers is why I'm tossing 200 bucks worth of RAM and SSD at my 2009 machine, instead of getting the new shiny. (Although the new shiny is indeed pretty - I'll confess to almost drooling at http://www.macrumors.com/roundup/retina-macbook-air/ http://www.macrumors.com/roundup/retina-macbook-air/ ;-)