The Computer Language
Benchmarks Game

Racket programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Racket 2.19 23,252 1122 2.18 100% 0% 0% 1%
Java 3.06 31,088 938 3.16 0% 3% 9% 92%
n-body
source secs mem gz cpu cpu load
Racket 53.26 21,476 1689 53.26 100% 1% 1% 1%
Java 21.50 27,240 1489 21.52 1% 1% 100% 0%
mandelbrot
source secs mem gz cpu cpu load
Racket 19.41 124,816 796 73.95 95% 96% 95% 96%
Java 5.89 89,504 796 23.08 98% 98% 98% 99%
reverse-complement
source secs mem gz cpu cpu load
Racket 4.23 179,400 1026 4.22 2% 0% 100% 1%
Java 1.11 345,308 1661 2.44 33% 58% 54% 80%
regex-redux
source secs mem gz cpu cpu load
Racket 50.77 1,000,916 536 50.76 100% 1% 1% 1%
Java 12.16 927,212 929 37.28 73% 81% 75% 78%
fannkuch-redux
source secs mem gz cpu cpu load
Racket 77.55 18,464 1096 305.87 97% 100% 98% 100%
Java 17.74 30,048 1282 69.90 98% 98% 100% 99%
spectral-norm
source secs mem gz cpu cpu load
Racket 27.29 30,716 627 54.99 58% 49% 41% 55%
Java 4.29 31,428 950 16.56 97% 96% 98% 97%
fasta
source secs mem gz cpu cpu load
Racket 18.40 21,780 1276 18.39 100% 0% 1% 1%
Java 2.14 36,192 2457 5.68 71% 58% 62% 77%
k-nucleotide
source secs mem gz cpu cpu load
Racket 89.60 366,908 881 89.58 1% 0% 100% 1%
Java 8.02 467,004 1802 25.57 76% 98% 73% 74%
binary-trees
source secs mem gz cpu cpu load
Racket   Bad Output
Java 0.19 ? 835 0.24 0% 28% 56% 53%
Racket

Welcome to Racket v6.6.

Java

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)