CPU Speed Benchmark, BogusMips in Perl
This is a silly test to see how fast is your computer in comparison to others.
Copy the code below, save it as
bench2004.pl .
To run it, type perl bench2004.pl
in terminal.
# This is a lousy speed-testing perl script. # It prints the time it take to run the script, in seconds. # this file's name is bench2004.pl # 2004, 2020-05-11 # Xah Lee # CPU Speed Benchmark: BogusMips in Perl # http://xahlee.info/UnixResource_dir/sultra_skami.html 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__
For best results, do a reboot before test and stop all other programs or applications: cpu gauge, chat programs, browsers etc.
Results
The following results, many using amazon cloud, is from Scott Preston, 2021-09-11.
machine | Timing | cpu |
---|---|---|
Opti 9020 | 4 | i7-4790 |
i7-7700hq | 6 | i7-7700hq |
i7-2720 | 6 | i7-2720 |
AWS t2.nano () | 4 | Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz |
AWS t3.nano (2 vCPU) | 6 | Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz |
AWS t3.nano (2 vCPU) 2021 | 3 | Xeon 8259CL 2.5GHz |
AWS t3a.nano (2 vCPU) | 6 | AMD EPYC 7000 series, 7571 |
AWS t4g.nano (2 vCPU) | 6 | AWS Gravitron 2 ARM processor |
Google F1-micro (0.2 Vcpu) | 4 | Intel(R) Xeon(R) CPU @ 2.30GHz |
Samsung S21+ Qualcomm 888 | 10 | Qualcomm 888 ARM Cortex X1 |
Pi 3 B | 42 | BCM2709 ARMv7 Processor rev 4 (v7l) |
Pi 3 B+ | 36 | BCM2835 ARMv7 Processor rev 4 (v7l) |
Pi Zero W | 214 | ARMv6-compatible processor rev 7 (v6l) |
i5-6500T | 5 | i5-6500T |
i7-8665U | 4 | i7-8665U |
4600H | 4 | Ryzen 5 4600H |
CPU | Timing | Machine |
---|---|---|
UltraSPARC-IIIi 1.28GHz | 25 | V250 |
Ultra SparcIIi 400Mhz | 104 | Ultra 5 |
other results:
- Timing: 1
- CPU: Intel® Core™ i5-13600K, 20 threads, P-core frequency (base/boost): 3.50/5.3GHz, E-core frequency (base/boost): 2.60/3.90GHz
- OS: Linux 6.1.55
- Perl: Perl v5.38.0
- From: Oliver Winspear
- date: 2023-11-10
- Timing: 3
- CPU: AMD threadripper 3990x (64 cores), 2.9Ghz, 128 Gb RAM
- OS: FreeBSD 12.1 p3
- Perl: 5.30.2
- From: Emily ☱☷
- date: 2020-05
- Timing: 4
- CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
- OS: linux
- Perl:
- From: DionBridger
- date: 2021-09-11
- Timing: 3
- CPU: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports) 2,3 GHz Quad-Core Intel Core i7, 32 GB 3733 MHz LPDDR4X
- OS: macOS 11.5.2
- Perl: 5.30.2
- From: ctietze
- date: 2021-09-11
- Timing: 4
- CPU: AMD Ryzen 5 3600 Processor 6C/12T 3.6-4.2 GHz 32MB Cache, 16GB RAM
- OS: Windows 10 Home
- Perl: 5.32.1 built for MSWin32-x64-multi-thread. Strawberry Perl
- From: Xah Lee
- date: 2021
- Timing: 4
- CPU: MacMini (late 2014) Duel-Core Intel Core i5, 2.6GHz. 8 GB RAM
- OS: macOS 10.15.4
- Perl: 5.18.4
- From: Xah Lee
- date: 2017
- Timing: 6
- CPU: AMD Athlon II X4 645 Processor, 3.10GHz. 6 GB RAM
- Perl: 5.14.2 Strawberry Perl
- OS: Windows 7 home
- From: Xah Lee. 2011 Desktop PC
- date: 2012
- Timing: 10
- CPU: Pentium 4, 2.66GHz. 512 RAM. Fujitsu Lifebook N3010
- Perl: 5.8.0 built for cygwin-multi-64int
- OS: Windows XP home
- From: Xah Lee
- date: 2003
- Timing: 11
- CPU: PowerMac G5 dual dual-core CPU at 2.5Ghz (year 2005)
- OS: Mac OS X 10.4
- Perl: 5.8.6
- From: J
- date: 2005-11
- Timing: 13
- CPU: Athlon xp 2400+ thoroughbred core
- Perl: 5.8.3
- OS: linux-2.4.26
- From: Diego Viola on orkut.com
- date: 2004-05
- Timing: 13
- CPU: AMD Athlon XP 2000+ CPU
- OS: Linux 2.6.5. Linux Gigabyte GA-7VRXP MoBo, Slackware current
- Perl: 5.8.0
- From: Marten Klencke on orkut.com
- date: 2004-05
- Timing: 14
- CPU: Atlhon XP 2000+
- OS: Slackware Linux Kernel: 2.4.25
- Perl: 5.8.0
- From: Everson -NoBIOS- Araujo on orkut.com
- date: 2004-05
- Timing: 14
- CPU: Intel Pentium M. 1.6 G
- OS: Linux 3.0.0-24
- Perl: 5.12.4
- date: 2011
- Timing: 15
- CPU: Mobile AMD Semprone Processor 3300+, 800 MHz
- OS: Linux 3.2.0-31
- Perl: 5.14.2
- From: Xah Lee
- date: 2012-10-08
- Timing: 15
- CPU: Athlon XP 1600+
- OS: Linux Slackware 9.1, kernel 2.4.22
- Timing: 15
- CPU: PowerMac G5, Dual 2.3 Ghz
- OS: Mac OS X Server 1.4
- Perl: 5.8.6
- From: Xah Lee
- date: 2005-08
- Timing: 16
- CPU: AMD Phenom 9650 quad-core, 2.3 GHz
- Perl: 5.10.0 built for cygwin-thread-multi-64int
- OS: Windows Vista Home Premium, 64 bits
- From: Xah Lee
- date: 2009-06-09
- Timing: 16
- CPU: mobile AMD Athlon 4 (XP) 2400+
- OS: Linux Debian (unstable), Kernel: 2.6.5-rc2
- Perl: 5.8.4
- From: Espen Brill on orkut.com
- date: 2004-05
- Timing: 17
- CPU: Athlon XP 2600+ (Barton), 1900MHz (running lots of other apps)
- OS: Linux Red Hat 8; 2.4.20-28.8 kernel
- Perl: 5.8.0
- From: Pablo on orkut.com
- date: 2004-05
- Timing: 17
- CPU: PowerMac G5, dual 2 GHz
- OS: OS X 10.3.3
- From: Mark Wilkins on orkut.com
- date: 2004-05
- Timing: ?18
- CPU: Intel Pentium 4 CPU 1.80GHz
- OS: Debian Linux version 2.4.22, gcc version 2.95.4
- From: Enrique Chaparro on orkut.com
- date: 2004-05
- Timing: ?18
- CPU: P4 2.4 GHz (lots of apps running.)
- OS: Linux 2.4.22
- From: Sayantam Dey on orkut.com
- date: 2004-05
- Timing: 18
- CPU: Dual Athlon MP (1526MHz)
- OS: Linux Debian/sid and 2.6.5
- From: Dave Gilbert on orkut.com
- date: 2004-05
- Timing: 19
- CPU: Quad XEON P4 2.4GHz w/ 512k cache, 1.5 GB ram
- OS: Linux 2.4.18-5smp kernel
- Perl: v5.6.1
- From: Loc Phu on orkut.com
- date: 2004-05
- Timing: 20
- CPU: year 2005 October Apple iMac, 1.9 GHz PowerPC G5
- OS: Mac OS X 10.4.3
- Perl: 5.8.6
- From: Xah Lee
- date: 2005-11
- Timing: 20
- CPU: Pentium 4, 2.26 ghz
- OS: Linux Gentoo 1.4, kernel 2.6.4
- Perl: 5.8.2
- From: Cheston on orkut.com
- date: 2004-05
- Timing: 20
- CPU: Athlon XP 2100+
- OS: Windows XP
- Perl: 5.8.0 built for MSWin32-x86-multi-thread Professional running native (not Cygwin) vanilla (not ActiveState)
- From: Peter Cooper on orkut.com
- date: 2004-05
- Timing: 22
- CPU: P-4 2.3 GHz
- OS: Windows 2000 Pro. (ActivePerl)
- From: Krishna G on orkut.com
- date: 2004-05
- Timing: ?23
- CPU: Athlon 2500+ (512k 1L)
- OS: Linux, Gentoo 2004.0
- Perl: 5.8
- From: Masaud Alinaqian on orkut.com
- date: 2004-05
- Timing: 24
- CPU: Athlon XP 1800+ (@ 1533MHz)
- OS: Linux. kernel 2.6.4-rc1-love3, 1490 bogomips
- Perl: 5.8.3 (Debian sid)
- From: Humberto Massa on orkut.com
- date: 2004-05
- Timing: ?26
- CPU: Athlon XP 1800+ (with lots other running)
- OS: Linux, Gentoo 2004.1
- From: Julio Biason on orkut.com
- date: 2004-05
- Timing: ?26
- CPU: Athlon XP 1700+ (Throughbread), 1467MHz. (lots of other apps running)
- OS: Linux. 2.4.20-28.8 kernel
- Perl: 5.8.0
- From: Pablo on orkut.com
- date: 2004-05
- Timing: 24
- CPU: Packard Bell P4, 1.4 Ghz
- OS: Linux, Red Hat 7.3
- From: Agnus Fox
- date: 2002-05
- Timing: 29
- CPU: PowerMac G4, Dual 1.25 Ghz
- OS: Mac OS X Server 1.2.8
- Perl: 5.6
- From: Xah Lee
- date: 2005-08
- Timing: 30
- CPU: AMD Duron, 866Mhz, Production DB server
- OS: Red Hat Linux 7.1 (Kernel 2.4.9)
- Perl: using "normal" Perl
- From: j. f
- date: 2002-05
- Timing: 34
- CPU: Apple iBook G4 1GHz
- OS: Mac OS 10.3.3 with 256MB of DDR RAM
- Perl: v5.8.1-RC3
- From: Peter Cooper on orkut.com
- date: 2004-05
- Timing: 36
- CPU: Apple eMac G4 1 GHz
- OS: OSX 10.3.3
- Perl: 5.8.1?
- From: Chris Zumbrunn
- Timing: 36
- CPU: Pentium-3, 866Mhz
- OS: Windows 2000
- Perl: ActivePerl
- From: j. f
- date: 2002-05
- Timing: 37
- CPU: 2003 PowerBook G4, 1 GHz CPU
- OS: Mac OS X 10.3.3
- Perl: 5.8.1 RC3
- From: Bahi Para
- date: 2005-05
- Timing: 40
- CPU: Apple ibook, 800Mhz G3
- OS: Mac OS X 10.2
- From: Xah Lee
- date: 2002-05
- Timing: ?42
- CPU: Athlon 1.1 Ghz (lots of other apps running)
- OS: Conectiva Linux 10 RC1, kernel 2.6.5
- Perl: 5.8.3
- From: Rodrigo on orkut.com
- date: 2002-05
- Timing: 42
- CPU: PowerMac dual G4 800Mhz. “Quicksilver”. Cpu: (PPC 7450 x 2)
- OS: 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
- Timing: 44
- CPU: 2001. PowerMac dual G4 800Mhz. “Quicksilver”
- From: r.p
- date: 2002-05
- Timing: 45
- CPU: Apple ibook, 800Mhz G4
- OS: Mac OS X 10.3.3
- Perl: v5.8.1-RC3
- From: Xah Lee
- date: 2004-05
- Timing: 47
- CPU: AMD Duron(tm) processor (1200.05-MHz 686-class CPU)
- OS: FreeBSD 5.2-RELEASE i386
- Perl: v5.8.2
- From: Jared Earle
- date: 2004-05
- Timing: 48
- CPU: Apple (QuickSilver) PowerMac G4, 867 Mhz. 867 MHz PowerPC 7450
- From: Chris Murphy
- date: 2002-05
- Timing: 56
- CPU: HP 9000 series, model A500 (year 2000 machine) 1 PA-8600 chip, 440 Mhz. Over $20k new in 2000; $2k on ebay in 2002
- OS: HP-UX B.11.00 U 9000/800. Model: 9000/800/A500-44
- Perl: 5.6.0 built for 9000/777-hpux
- From: Xah Lee
- date: 2002-05
- Timing: 75
- CPU: 500Mhz PII laptop (as user nobody with plenty of other processes running)
- OS: Debian testing , Kernel: 2.4.21jd1
- Perl: 5.8.3 (as packaged by Debian)
- From: Jim Dennis on orkut.com
- date: 2004-05
- Timing: 76
- CPU: PowerBook G4 500 Mhz
- From: btn
- date: 2002-05
- Timing: 78
- CPU: UltraSPARC-II. Sun Enterprise 220R at 450 MHz. (~2000 machine). Over $20k in 2000; $5k new in 2002. ❮http://www.sun.com/servers/entry/220r/❯
- From: Xah Lee
- date: 2002-05
- Timing: 82
- CPU: PowerMac G4 400MHz (PCI graphics)
- OS: Mac OS X 10.1.4
- Perl: 5.6.0 built for darwin
- From: Xah Lee
- date: 2002-05
- Timing: 84
- CPU: PowerPC 7410 (G4). 2001 PowerBook G4 500 Mhz
- OS: Mac OS X 10.1.x
- From: Adam Bridge
- date: 2002-05
- Timing: 86
- CPU: 2000 PC, with Pentium III 500MHz
- OS: Windows NT
- Perl: 5.6.0 built for MSWin32-x86-multi-thread
- From: Xah Lee
- date: 2002-05
- Timing: 104
- CPU: 2001 Sun Ultra 5 at 400 MHz. ~$2k new in 2001. ~$650 ebay in 2002
- CPU: cpu: Ultra SparcIIi 400Mhz
- OS: SunOS, 5.8
- Perl: 5.6.0 built for sun4-solaris
- From: Xah Lee
- date: 2002-05
- Timing: 106
- CPU: UltraSPARC IIe. 2001 Sun Blade 100 at 502 MHz. $1k new in 2002. http://www.sun.com/desktop/sunblade100/
- OS: SunOS 5.8
- Perl: 5.005_03 built for sun4-solaris
- From: Xah Lee
- date: 2002-05
- Timing: 110
- CPU: Pentium III, 500 MHz
- Perl: 5.004_04
- NeXTSTEP 3.3
- From: Eric levenez http://perso.wanadoo.fr/levenez/
- date: 2002-05
- Timing: 120
- CPU: Powerbook G3 266MHZ
- CPU: cpu: 266 MHz PowerPC 750 (G3)
- From: Jeff, JHSJ
- date: 2002-05
- Timing: 128
- CPU: Powerbook G3 250 Mhz. CPU: PowerPC 750 (G3)
- OS: Mac OS X
- From: Chris Murphy
- Timing: 142
- CPU: Pentium III 450 server
- From: Marten Klencke on orkut.com
- date: 2004-05
- Timing: 190
- CPU: Win2K Pentium III 450 Mhz.
- From: gpan
- date: 2002-05
- Timing: 204
- CPU: Intel P-II 266MHz
- OS: Debian (testing), Kernel: 2.4.20
- Perl: 5.8.3
- From: Espen Brill on orkut.com
- date: 2004-05
- Timing: 210
- CPU: 1997 PC, Pentium 233MHz MMX (Gateway E-1000)
- OS: Debian Linux 2.2.18
- Perl: 5.005_03
- From: Xah Lee
- date: 2002-05
- Timing: 224
- CPU: Blue and White PowerMac G3 400mhz. PowerPC 750 (G3)
- OS: OSX 10.1.4
- From: Agnus Fox
- date: 2002-05
- Timing: 249
- CPU: Dual Pentium Pro 200. 384MB Ram
- OS: Debian unstable, 2.4.20-1-686-smp
- From: Charles Baker on orkut.com
- date: 2004-05
Conclusion
rough conclusion.
- for general purpose computing, dual processors don't mean shit if you mostly do one thing at a time.
- for general purpose computing, Apple's “altivec” don't mean shit.
- for general purpose computing, Apple's G series chips ain't no faster than Intel's Pentium of the same speed.
- Those exorbitant expensive specialized servers and slabs made by Sun Microsystems or HP don't mean shit.
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
.
See also: Why I'm Switching from Mac to Windows