The Computer Language
Benchmarks Game

Racket programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Racket 2.18 27,560 1122 2.18 1% 100% 1% 0%
Java 3.06 31,760 938 3.16 6% 3% 97% 1%
spectral-norm
source secs mem gz cpu cpu load
Racket 5.34 28,644 627 20.56 97% 96% 97% 97%
Java 4.29 29,884 950 16.56 96% 97% 99% 95%
binary-trees
source secs mem gz cpu cpu load
Racket 26.58 493,088 473 26.53 1% 0% 100% 1%
Java 11.26 593,156 835 39.02 85% 88% 90% 88%
n-body
source secs mem gz cpu cpu load
Racket 53.50 27,160 1689 53.48 100% 1% 1% 0%
Java 21.54 27,092 1489 21.56 1% 1% 100% 1%
reverse-complement
source secs mem gz cpu cpu load
Racket 4.26 192,884 1026 4.25 1% 0% 2% 100%
Java 1.10 345,352 1661 2.40 33% 82% 53% 54%
regex-redux
source secs mem gz cpu cpu load
Racket 52.80 1,005,744 536 52.78 0% 100% 1% 0%
Java 12.31 902,528 929 38.75 73% 76% 86% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Racket 80.59 24,612 1096 317.90 97% 99% 99% 100%
Java 13.74 30,368 1282 54.12 100% 98% 98% 99%
fasta
source secs mem gz cpu cpu load
Racket 17.32 27,304 1276 17.31 1% 0% 100% 1%
Java 2.13 36,036 2457 5.66 94% 58% 59% 60%
mandelbrot
source secs mem gz cpu cpu load
Racket 74.46 27,392 797 74.44 100% 0% 1% 0%
Java 7.10 90,588 796 27.92 99% 99% 98% 98%
k-nucleotide
source secs mem gz cpu cpu load
Racket 84.39 371,384 881 84.38 1% 1% 100% 0%
Java 7.93 465,372 1802 25.11 75% 75% 75% 93%
Racket

Welcome to Racket v6.8.

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)