It works pretty well on Windows and Linux, but also works very well on PDAs and cellphones. I've been using it mostly because it provides all I need without the plugins, which is great since I have the same setup wherever I go.
C Code void main (void) {
long end,start = GetTickCount();
double t = 0, lp, ilp;
for (lp = 0; lp < 1000000000; lp ++)
for (ilp = 5; ilp >= 0; ilp --)
t ++;
end = GetTickCount();
printf("Execution time %f", (end-start)/1000.0f); }
Java Code public static void main (String args[]) {
long end,start = System.currentTimeMillis();
double t = 0, lp, ilp;
for (lp = 0; lp < 1000000000; lp ++)
for (ilp = 5; ilp >= 0; ilp --)
t ++;
end = System.currentTimeMillis();
System.out.printf("Execution time %f", (end-start)/1000.0f); }
Sun Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing) >java Speed Execution time 102,223999
Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode) >java -server Speed Execution time 23,075001
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 >Speed.exe Execution time 66.781000
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 >SpeedOpt.exe Execution time 17.609001
I'm running it in a Celeron 2.4Ghz 512MB Ram. Only in server enviroments Java gets close to C.
I never had to tell Google+ that Opera is another browser in order to make it work! What problems did you have with it?
You realy should take a look at Opera.
It works pretty well on Windows and Linux, but also works very well on PDAs and cellphones.
I've been using it mostly because it provides all I need without the plugins, which is great since I have the same setup wherever I go.
C Code
void main (void)
{
long end,start = GetTickCount();
double t = 0, lp, ilp;
for (lp = 0; lp < 1000000000; lp ++)
for (ilp = 5; ilp >= 0; ilp --)
t ++;
end = GetTickCount();
printf("Execution time %f", (end-start)/1000.0f);
}
Java Code
public static void main (String args[])
{
long end,start = System.currentTimeMillis();
double t = 0, lp, ilp;
for (lp = 0; lp < 1000000000; lp ++)
for (ilp = 5; ilp >= 0; ilp --)
t ++;
end = System.currentTimeMillis();
System.out.printf("Execution time %f", (end-start)/1000.0f);
}
Sun Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
>java Speed
Execution time 102,223999
Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)
>java -server Speed
Execution time 23,075001
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
>Speed.exe
Execution time 66.781000
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
>SpeedOpt.exe
Execution time 17.609001
I'm running it in a Celeron 2.4Ghz 512MB Ram.
Only in server enviroments Java gets close to C.
It runs just fine in my Dual PII 350 with 512MB Ram 16Mb Video.
I can?t blame it on her, because I would do the same! Ooohhh nice boobies....