CPU Speed Benchmark: BogusMips in Perl

By Xah Lee. Date: . Last updated: .

This is a down and dirty test to see in general how fast is your computer in comparison to others.

Download the perl speed-testing script: bench2004.pl. Or copy below:

# This is a ad-hoc benchmark perl script.
# It prints the time it take to run the script, in seconds.
# this file's name is bench2004.pl

# 2004
# Xah
# xah@xahlee.org
# http://xahlee.org/

use strict;
# convert to/from binary
sub dec2bin {
my $str = unpack ("B32", pack("N", shift ));
$str =~ s@^0+(?=\d)@@; # otherwise you'll get leading zeros
return $str;
}
my $start = time();
for (my $i=0; $i < 4469134; $i++) {dec2bin(3);}
my $end = time();
my $diff = $end - $start;
print "$diff\n";
__END__

To run it, type perl bench2004.pl in terminal.

For best results, do a reboot before test and stop all other programs or applications: cpu gauge, chat programs, browsers etc.

Results

 6 seconds. AMD Athlon II X4 645 Processor, 3.10GHz. 6 GB RAM.
   Perl 5.14.2 Strawberry Perl
   Windows 7 home.
   from Xah Lee. 2012. 2011 Desktop PC.
--
10 seconds. 2003 Fujitsu Lifebook N3010. Pentium 4, 2.66GHz. 512 RAM.
   Perl 5.8.0 built for cygwin-multi-64int.
   Windows XP home.
   from Xah Lee. 2003.
--
11 seconds. PowerMac G5 dual dual-core CPU at 2.5Ghz (2005)
   Mac OS X 10.4.
   Perl 5.8.6
   from J. 2005-11.
--
13 seconds, Athlon xp 2400+ thoroughbred core
   perl-5.8.3
   linux-2.4.26
   from Diego Viola from orkut.com. 2004-05.
--
13 seconds. AMD Athlon XP 2000+ CPU
   Linux Gigabyte GA-7VRXP MoBo, Slackware current
   Perl 5.8.0
   Linux 2.6.5
   from Marten Klencke from orkut.com. 2004-05.
--
14 seconds. Atlhon XP 2000+
   Slackware Linux Kernel: 2.4.25, perl: 5.8.0
   from: Everson -NoBIOS-  Araujo of Orkut.Com. 2004-05
--
14 seconds., Intel Pentium M. 1.6 G.
   Perl 5.12.4, Linux 3.0.0-24 (2011)
--
15 seconds., Mobile AMD Semprone Processor 3300+, 800 MHz.
   Perl 5.14.2
   Linux 3.2.0-31
   from Xah Lee. 2012-10-08.
--
15 seconds., Athlon XP 1600+
   Linux Slackware 9.1, kernel 2.4.22
--
15 seconds., PowerMac G5, Dual 2.3 Ghz
   Mac OS X Server 1.4, perl 5.8.6
   from Xah Lee. 2005-08.
--
16 seconds. AMD Phenom 9650 quad-core, 2.3 GHz
   perl, v5.10.0 built for cygwin-thread-multi-64int
   Windows Vista Home Premium, 64 bits.
   from Xah Lee. 2009-06-09
--
16 seconds. on a mobile AMD Athlon 4 (XP) 2400+
   Linux Debian (unstable), Kernel: 2.6.5-rc2,  perl: 5.8.4
   from Espen Brill of orkut.com. 2004-05
--
? 17 seconds. Athlon XP 2600+ (Barton), 1900MHz  (running lots of other apps)
   Linux Red Hat 8; 2.4.20-28.8 kernel, perl 5.8.0
   from Pablo from orkut.com. 2004-05
--
17 seconds. PowerMac G5, dual 2 GHz
   OS X 10.3.3
   from Mark Wilkins from orkut.com. 2004-05.
--
? 18 seconds. Intel Pentium 4 CPU 1.80GHz
   Debian Linux version 2.4.22, gcc version 2.95.4
   from Enrique  Chaparro from orkut.com. 2004-05.
--
? 18 seconds. P4 2.4 GHz (lots of apps running.)
Linux 2.4.22
from Sayantam Dey from orkut.com. 2004-05.
--
18 seconds. Dual Athlon MP (1526MHz)
   Linux Debian/sid and 2.6.5.
   from Dave Gilbert from orkut.com. 2004-05
--
19 Quad XEON P4 2.4GHz w/ 512k cache
   Linux 2.4.18-5smp kernel.
   Perl v5.6.1. 1.5 GB ram
   from Loc Phu from orkut.com. 2004-05
--
20 seconds. 2005 October Apple iMac, 1.9 GHz PowerPC G5
   Mac OS X 10.4.3, perl version 5.8.6
   from Xah Lee. 2005-11
--
20 seconds. Pentium 4, 2.26 ghz
   Linux Gentoo 1.4, kernel 2.6.4, perl version 5.8.2
   from Cheston from orkut.com. 2004-05
--
20 seconds on my Athlon XP 2100+ in Windows XP
Professional running native (not Cygwin) vanilla (not ActiveState) Perl 5.8.0 built for MSWin32-x86-multi-thread
   from Peter Cooper from Orkut.com. 2004-05
--
22 seconds. P-4 2.3 GHz
   Windows 2000 Pro. (ActivePerl)
   from Krishna G from orkut.com. 2004-05
--
? 23 Seconds
   Athlon 2500+ (512k 1L)
   Linux, Gentoo 2004.0, Perl 5.8
   from Masaud Alinaqian from orkut.com. 2004-05.
--
24 seconds. Athlon XP 1800+ (@ 1533MHz)
   Linux. kernel 2.6.4-rc1-love3, 1490 bogomips, perl 5.8.3 (Debian sid)
   from Humberto Massa of orkut.com. 2004-05
--
? 26 seconds. Athlon XP 1800+ (with lots other running)
   OS: Linux, Gentoo 2004.1.
   from Julio Biason or orkut.com. 2004-05
--
? 26 seconds. Athlon XP 1700+ (Throughbread), 1467MHz. (lots of other apps running)
   Linux. 2.4.20-28.8 kernel. perl 5.8.0
   from Pablo from orkut.com. 2004-05
--
24 seconds. Packard Bell P4, 1.4 Ghz.
   OS: Linux, Red Hat 7.3.
   from Agnus Fox. 2002-05
--
29 seconds., PowerMac G4, Dual 1.25 Ghz
   Mac OS X Server 1.2.8, perl 5.6
   from Xah Lee. 2005-08
--
30 seconds. AMD Duron, 866Mhz
   Red Hat Linux 7.1 (Kernel 2.4.9) using "normal" Perl.
   Production DB server
   from j. f. .2002-05
--
34 seconds. Apple iBook G4 1GHz
   Mac OS 10.3.3 with 256MB of DDR RAM.
   Perl v5.8.1-RC3.
   from Peter Cooper from Orkut.com. 2004-05
--
36 seconds. Apple eMac G4 1 GHz
   OSX 10.3.3.
   Perl 5.8.1?
   from Chris Zumbrunn.
--
36 seconds. Pentium-3, 866Mhz.
   Windows 2000 using ActivePerl
   from j. f. 2002-05
--
37 seconds. 2003 PowerBook G4, 1 GHz CPU.
    Mac OS X 10.3.3 with Perl 5.8.1 RC3
    from Bahi Para. 2005-05.
--
40 seconds. Apple ibook, 800Mhz G3
   Mac OS X 10.2
   from Xah Lee. 2002-05
--
? 42 seconds. Athlon 1.1 Ghz (lots of other apps running)
   Conectiva Linux 10 RC1 ,kernel 2.6.5, Perl 5.8.3
   from Rodrigo from orkut.com. 2002-05
--
42 seconds. PowerMac dual G4 800Mhz. "Quicksilver". Cpu: (PPC 7450 x 2)
   Mac OS X.
   (82 seconds with Red Hat 7.2 on Virtual PC 5.0.2 on Mac OS X 10.1.4)
   from Eric levenez http://perso.wanadoo.fr/levenez/ 2002-05
--
44 seconds. 2001. PowerMac dual G4 800Mhz. "Quicksilver"
   from: r.p. 2002-05
--
45 seconds. Apple ibook, 800Mhz G4.
   Mac OS X 10.3.3.
   Perl v5.8.1-RC3
   from Xah Lee. 2004-05
--
47 secondds. CPU: AMD Duron(tm) processor (1200.05-MHz 686-class CPU)
   FreeBSD 5.2-RELEASE i386. perl v5.8.2
   Jared Earle. 2004-05
--
48 seconds. Apple (QuickSilver) PowerMac G4, 867 Mhz.
   867 MHz PowerPC 7450.
   from Chris Murphy. 2002-05
--
56 seconds. HP 9000 series, model A500 (about year 2000 machine)
   cpu: 1 PA-8600 chip, 440 Mhz.
   OS: HP-UX B.11.00 U 9000/800
   Model: 9000/800/A500-44
   perl, v5.6.0 built for 9000/777-hpux

   over $20k new in 2000; $2k on ebay in 2002.
   from Xah Lee. 2002-05
--
75 seconds. 500Mhz PII laptop (as user nobody with plenty of other processes running).
   OS: Debian testing, Perl: 5.8.3 (as packaged by Debian), Kernel: 2.4.21jd1
   from Jim Dennis of orkut.com, 2004-05
--
76 seconds. PowerBook G4 500 Mhz.
   from btn. 2002-05
--
78 seconds. Sun Enterprise 220R at 450 MHz. (~2000 machine)
   cpu: UltraSPARC-II

   over $20k in 2000; $5k new in 2002.
   http://www.sun.com/servers/entry/220r/
   From: Xah Lee. 2002-05.
--
82 seconds. PowerMac G4 400MHz (PCI graphics)
   Mac OS X 10.1.4.
   perl, v5.6.0 built for darwin
   from: Xah Lee. 2002-05.
--
84 seconds. 2001 PowerBook G4 500 Mhz.
   OS: Mac OS X 10.1.x
   cpu: PowerPC 7410 (G4)
   from Adam Bridge. 2002-05
--
86 seconds. 2000 PC, with Pentium III 500MHz
   OS: Windows NT.
   perl, 5.6.0 built for MSWin32-x86-multi-thread
   from: Xah Lee. 2002-05
--
104 seconds. 2001 Sun Ultra 5 at 400 MHz.
   cpu: Ultra SparcIIi 400Mhz
   OS: SunOS, 5.8
   perl, v5.6.0 built for sun4-solaris

   ~$2k new in 2001. ~$650 ebay in 2002.
   from Xah Lee. 2002-05
--
106 seconds. 2001 Sun Blade 100 at 502 MHz.
   cpu: UltraSPARC IIe
   OS: SunOS 5.8.
   perl, version 5.005_03 built for sun4-solaris

   $1k new in 2002.
   http://www.sun.com/desktop/sunblade100/
   from Xah Lee. 2002-05.
--
110 seconds. Pentium III, 500 MHz
   perl v5.004_04.
   NeXTSTEP 3.3
   from Eric levenez http://perso.wanadoo.fr/levenez/ 2002-05.
--
120 seconds. Powerbook G3 266MHZ
   cpu: 266 MHz PowerPC 750 (G3)
   From Jeff, JHSJ. 2002-05.
--
128 seconds. Powerbook G3 250 Mhz.
   cpu: PowerPC 750 (G3)
   OS: Mac OS X
   from Chris Murphy
--
142 seconds. Pentium III 450 server.
   from Marten Klencke from orkut.com. 2004-05.
--
190 seconds. Win2K Pentium III 450 Mhz..
   from gpan. 2002-05
--
204 seconds. Intel P-II 266MHz
 OS: Debian (testing), Kernel: 2.4.20, perl: 5.8.3
 from Espen  Brill of orkut.com. 2004-05
--
210 seconds. 1997 PC, Pentium 233MHz MMX (Gateway E-1000),
   OS: Debian Linux 2.2.18.
   perl -v: 5.005_03 built for i386-linux
   from Xah Lee. 2002-05
--
224 seconds. Blue and White PowerMac G3 400mhz.
   cpu: PowerPC 750 (G3)
   OS: OSX 10.1.4
   from Agnus Fox. 2002-05
--
249 seconds. Dual Pentium Pro 200
   384MB Ram, Debian unstable, 2.4.20-1-686-smp
   from Charles Baker of orkut.com. 2004-05

Some Rough Conclusion

Other speed tests ballpark figure sites

BogoMips is a rough estimate of your CPU speed. On linux, you can see its value by cat /proc/cpuinfo

There are also several cpu load testing programs. Do a apt-cache search stress.

If you have a question, put $5 at patreon and message me.