Really, how awesome is a Core 2 Duo?
So I'm sitting here at work. I've finished all my assignments. I'm bored. I've got my laptop, and I've got my badass work PC. What should I do with this vast amount of computing power at my fingertips? I know, I'll measure this vast amount of computing power!
How will I measure it? Well, I need to find something to make the computer do that only requires CPU power. The obvious answer is, compiling. Taking source code and compiling it into a working binary application is pretty much dependent entirely on the CPU. I can time how long it takes each machine to compile the same exact program, and that will show how much faster the Core 2 Duo is. It helps that both my work machine and my laptop both run Feisty, so all software factors are equal. To compile, I needed a somewhat complicated application that I knew would work in Feisty. I chose to compile gaim 1.5 from source.
Let's not bother prancing around, here are the results.
My laptop has an Intel Core Solo U1400 CPU @ 1.2GHz.
It took 3 minutes and 21.651 seconds to compile gaim 1.5 on the laptop.
My desktop at work has an Intel Core 2 Duo 6300@1.86GHz.
Using just one of the cores, it took 2 minutes and 3.546 seconds to compile gaim.
And what you've all been waiting for.
Using both cores, it took 1 minute and 12.727 seconds to compile gaim.
So, just in case you were wondering. Core 2 Duos are fucking fast. Holy shit. This is only the 6300, and it's a Dell. Imagine how fast it would be if it were the 6600 on a real motherboard. You could probably build a Gentoo system in one day with one of these things. That's insane.
Comments
That's how I tested compiling with just one of the two cores. I did make -j2. My CPU usage graph was 50% full the entire time. When I did make -j3, the CPU usage graph was almost 100% full the entire time. The Linux kernel process scheduler and the SMP code therein is some of the best on earth. Even if you don't have a multi-threaded application, it properly schedules separate processes to separate cores to make the most out of what your CPU has to offer.