7 November 2024
This is a simple benchmark, which measures the time it takes to calculate and display
the first n prime numbers, using the method of trial division.
The point is to have some fixed quantum of work that is simple enough to be expressed
in a limited BASIC language, as might have been implemented in ROM in an '80s home micro.
That there are more efficient ways to calculate prime numbers is irrelevant. Some results
in the table are marked null , indicating printing was suppressed. No other attempt
was made to account for differences in I/O performance; a fast machine with a slow console
will deliver a slow result (see especially the Forth OpenFirmware results).
Times are in seconds, rounded down (to the nearest tenth, if less than 3).
Applesoft BASIC provides the reference implementation, for no other reason
than that's the one I wrote first. Source code for all variants is linked at left.
All compiler options at default settings unless otherwise noted.
Use the selection lists below to filter the results.
Manufacturer
Acorn
Apollo
Apple
AT&T
Atari
Be
Coleco
Commodore
Computer System Architects
Convergent Technologies
Data General
DEC
Fujitsu
Gould
HP
IBM
IBM PC & clones
Inmos
Intergraph
Kaypro
MicroAce
mips
Motorola
NeXT
NorthStar
Ohio Scientific
Peripheral Technology
SeeedStudio
SGI
Sony
Spectravideo
Strobe Data
Sun
Symbolics
Tandy
Tektronix
Texas Instruments
Tomy
Unisys
V-tech
Xerox
PDA or other handheld (any)
clear
Machine
1040STf
1186
1200XL
130XE
2/50
2/120
2600
3/50
3/60
386/UCE
386i/250
3B2/300
3B2/400
4/110
400
4860 PCjr
5100 Model C4
5150 PC
5160 XT
5170 AT
5364 S/36 PC
6130
6085 PCE
6150 RT PC
6152 Academic System
7300 UNIX PC
800
800XL
99/4
99/4A
9540
Adam
Advantage
AlphaServer DS20e
Amiga 500
Amiga 2000
Amiga 2500
Amiga 3000
Amiga 3000UX
Apple ][
Apple //c
Apple IIc Plus
Apple //e Enhanced
Apple IIe Card
Apple IIgs
Archimedes A310
Archimedes A440/1
Archimedes A5000
AS/400 9401-P02
AS/400 9402-F02
AS/400 9406-500
AS/400 9406-510
AViiON 310CD
AViiON 450H
B128-80
B426
BBC Master 128
BBC Master 512
BBC Master Scientific
BeagleBone Green Wireless
BeBox
BusinessVEISA
C=16
C=64
C=64c
C=128
Challenge L IP25
Challenger 1P
D2
D3
DECmate II
DECpc αXP 150
DECstation 3100
DECstation 5000/200
DECstation 5000/240
Deskpro 386/25
Deskpro XL 590
DN300
DN3000
DN3500
DN4000
DN5500
DOMAIN PC Coprocessor
Evolution IV/e
Evolution V
Force 386sx
Hawk
HP3000 917LX
HP3000 928LX
HP9000/310
HP9000/330
HP9000/345
HP9000/360
HP9000/380
HP9000/425t
HP9000 715/50
HP9000 715/75
HP9000 715/80
HP9000 715/100
HP9000 735/99
HP9000 735/125
HP9000 778/B160L
HP9000 777/C110
HP9000 780/C180
HP9000 782/C240
HP9000 785/C360
HP9000 785/J6700
Indigo IP12
Indigo IP20
Indigo² IP22
Indigo² IP26
Indigo² IP28
Indy
Integral PC
InterPro 2020
InterPro 2730
InterPro 2830
InterPro 6450
Intellistation Z Pro
iPhone 5
iPhone 12 mini
IRIS 3130
Kaypro 10
Laser 50
Laser 128
Lisa 2/10
Mac Mini
Mac Mini Server
Mac Pro
MacBook Pro
Macintosh
Macintosh Color Classic
Macintosh II
Macintosh IIci
Macintosh IIfx
Macintosh LC III
Macintosh Plus
Macintosh SE
Macintosh SE/30
Magnum 4000SC
Mega 4
MicroAce
Model 102
Model 200
Multiprise 3000 7060-H30
Multiprise 3000 7060-H70
MV/5600 DC
MVME187-035B
MVME188QP-2
MVME197DP
NeXTcube
NeXTstation
NeXTstation Color
NGEN
NGEN Series 286
NGEN Series 386+
NWS-3710
NWS-3860
Octane
Octane2
Onyx IP25
PC Server 315
PC Server 320
PC Server 325
Personal Workstation 500au
plus/4
Portable Plus
Portable II
PowerMac 8600
PowerMac 8600/MP
PowerMac G3 (Beige)
PowerMac G3 (B&W)
PowerMac G4
PowerPersonal 7248
PowerStack E
PowerStack EX
Proliant DL380 G7
PS/2 8530-021 Model 30
PS/2 8530-E21 Model 30 286
PS/2 8550-021 Model 50
PS/2 8550-061 Model 50Z
PS/2 8550-031 Model 50Z 486
PS/2 8570-A16 Model 70
PS/2 8580-161 Model 80
PS/2 8580-311 Model 80
PS/2 8590-0H9 Model 90 XP
PS/2 9595-0MT Model 95 XP
PT68K4
Quadra 650
Quadra 700
Quadra 900
R260
RS2030
RC3230
RS4230
RiscPC
RS/6000 7011-250
RS/6000 7012-320
RS/6000 7012-320E
RS/6000 7012-350
RS/6000 7012-360
RS/6000 7012-370
RS/6000 7012-390
RS/6000 7012-397
RS/6000 7013-591
RS/6000 7013-J40
RS/6000 7025-F50
RS/6000 7043-150
RS/6000 7044-270
SE7525GP2
SPARClite Evaluation Board
SPARCclassic
SPARCstation 2
SPARCstation 5
SPARCstation 20
SPARCstation LX
Step 286
Step 486e
SuperGen SG2500
SunBlade 1000
SV-328
SystemPro
T1100 Plus
ThinkPad Power Series 800
ThinkPad Power Series 850
Transputer Education Kit
TRS-80 Color Computer
TRS-80 Color Computer 2
TRS-80 Color Computer 3
TRS-80 (Model I)
TRS-80 Model III
TRS-80 Model 4P
TRS-80 Model MC-10
TT030
Turbo XT
Tutor
Ultimate Workstation 533au2
Ultra 1
Ultra 2
Ultra 60
VAXstation II
VAXstation 2000
VAXstation 3100m38
VAXstation 3100m76
VAXstation 3500
VAXstation 3800
VAXstation 4000/90
Vectra XU 6/200
VIC20
Zaurus SL-5600
zx2000
clear
CPU Family
Alpha
ARM
Clipper
Eclipse
Hobbit
i8080 (incl. z80, etc.)
i8086
IMPI
Itanium
mips
MC6800
MC68000
MC88000
Mesa (Alto, Star, etc.)
MOS 6502
NS32000
PA-RISC
PALM
PDP-8
POWER
PowerPC
ROMP
S/36
S/370 (incl. S/390, etc.)
SPARC
Symbolics LISP
TI Explorer
TMS9900
Transputer
VAX
WE32000
Custom (ASIC, FPGA, etc.)
clear
Language Family
Ada
ALGOL
APL
BCPL
BASIC
C
COBOL
Forth
FORTRAN
Java
LISP
LOGO
Modula-2
Oberon
Pascal
perl
PL/I
REXX
ruby
Scheme
Smalltalk
Tcl
clear
Operating System
AIX
AmigaDOS
Amiga SVR4
AOS (IBM 4BSD)
AOS/VS
A/UX
BeOS
CLIX
Coherent
CP/M
CTOS (BTOS)
DG/UX
DOMAIN/OS
Helios
HP-UX
IRIX
Language ROM (BASIC, Forth, etc.)
Linux
Lisp Machine (any)
Mac OS
Mac OS X
Minix
MS-DOS
MPE
NEWS-OS
NEXTSTEP
Oberon (Native)
OpenFirmware
OS/2
OS/8
OS-9
OS/400
Panos
PICK
Plan9
pSystem
QNX
RISC OS (Acorn)
RISC/os (mips)
Sprite
SSP
SunOS
TOS
TRS-DOS
Ultrix (OSF/1, Digital UNIX, Tru64)
Unix (other)
VM/CMS
VMS
Windows (win16)
Windows NT (win32)
Xenix
clear