Re: Does anyone run test win vs. linux and can share how muchfaster is linux than windows, please?

  • From: Jared Still <jkstill@xxxxxxxxx>
  • To: VerreyB@xxxxxxxxxxxx
  • Date: Tue, 9 Aug 2005 18:03:56 -0700

On 8/4/05, Billy Verreynne (JW) <VerreyB@xxxxxxxxxxxx> wrote:
> 
> 
> o/s choice decisions that are made based on the notion of actual o/s
> performance is flawed.



On 8/4/05, Billy Verreynne (JW) <VerreyB@xxxxxxxxxxxx> wrote: 
> 
> o/s choice decisions that are made based on the notion of actual o/s
> performance is flawed.
> 


4 CPU Dell 6650 - 2.0 GHZ
3 GIG RAM
Not much happening on the box:

C:\temp> t.pl
Time: 8 wallclock secs ( 7.78 usr + 0.00 sys = 6.00 CPU)

2 CPU Dell 2250 ( I think that is the correct model) - 1.0 GHZ
2 GIG RAM
Not a lot happening on this box either.

17:57-rsysdevdb:dv03:jkstill-14 > perl t.pl
Time: 6 wallclock secs ( 5.76 usr + 0.24 sys = 6.00 CPU)
[ /home/jkstill/tmp ]

System calls happen *much* faster on linux.

When tested on like hardware, Linux is ~ 100% faster.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist


--- t.pl
use Benchmark qw(:all);

my ($t1, $t2, $td);
my $iterations = 10**6;

my @x=();

$t1 = new Benchmark;

for (my $i=0;$i<=$iterations;$i++) {
@x=localtime();
}

$t2 = new Benchmark;

$td = timediff($t2,$t1);

print "Time: ", timestr($td), "\n";

Other related posts: