I was wondering which has a more powerful CPU?.. A Desktop computer or a Laptop
i recently made a C++ program that counts up to 100,000 and then outputs a timestamp.. so i ran a test between my brand new laptop that runs windows 7 and claimed to be faster than my desktop computer running windows xp. Also i compared my dad's laptop which runs windows vista. the results were stunning. My Desktop beat my new laptop by 6 secs and my parents laptop by 8 secs. Oh ya all of them are Compaq/hp product. So in my case my desktop somehow has better processing speed than my laptops when running just simple windows such as notepad and internet. the laptops were not running anything.
here are the configurations for both:
Desktop:(windows xp)
Processor: AMD sempron Processor
Speed: 1.99 GHZ
RAM : 1.18GB
System type: 32 bit operating system
Laptop:(windows 7)
Processor: AMD Phenom II N620 Dual core Processor
Speed: 2.80 GHZ
RAM : 4.00 (3.74GB)
System type: 64 bit operating system
Laptop #2: (windows vista)
Processor: Intel Core duo
speed: 1.83 GHz
Ram: 3.00GB
System type: 32 Bit operating system
What are the factors that could affect a processor's speed?
heres the code i compiled and ran on the laptops and my desktop.
#include <iostream>
using namespace std;
int main()
{
int number;
int start;
number = 0;
cout << "speed checker";
cin >> start;
if(start == 1)
{
while (number != 100001)
{
cout << number;
cout << endl;
number++;
}
}
struct tm *local;
time_t t;
t = time(NULL);
local = localtime(&t);
printf("Local time and date: %s\n", asctime(local));
if (number == 100000)
{
cout << endl;
cout << "count complete";
system("pause");
exit(1);
}
system("pause");
return 0;
}

New Topic/Question
This topic is locked



MultiQuote



|