The Computer Language
Benchmarks Game

Racket programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Racket 2.17 27,660 1122 2.17 100% 0% 1% 0%
Java 3.12 36,788 938 3.31 6% 3% 4% 96%
spectral-norm
source secs mem gz cpu cpu load
Racket 5.33 29,216 627 20.55 97% 98% 96% 96%
Java 4.23 34,472 950 16.27 96% 97% 97% 96%
n-body
source secs mem gz cpu cpu load
Racket 53.10 28,276 1689 53.08 2% 7% 100% 4%
Java 22.10 33,136 1429 22.20 31% 1% 1% 70%
binary-trees
source secs mem gz cpu cpu load
Racket 26.96 501,036 473 26.92 1% 1% 1% 100%
Java 8.34 893,008 835 28.20 87% 79% 96% 81%
mandelbrot
source secs mem gz cpu cpu load
Racket 19.53 130,172 796 74.29 96% 96% 95% 95%
Java 6.04 76,528 796 23.34 98% 97% 97% 97%
reverse-complement
source secs mem gz cpu cpu load
Racket 4.24 184,284 1026 4.23 100% 1% 1% 0%
Java 1.03 191,064 2183 2.31 52% 57% 43% 74%
fannkuch-redux
source secs mem gz cpu cpu load
Racket 82.36 24,740 1096 324.28 99% 99% 100% 96%
Java 17.26 32,116 1282 67.75 98% 99% 97% 99%
regex-redux
source secs mem gz cpu cpu load
Racket 50.50 1,013,084 536 50.50 1% 0% 50% 51%
Java 10.34 627,224 929 29.88 74% 72% 65% 79%
fasta
source secs mem gz cpu cpu load
Racket 17.26 28,060 1276 17.25 0% 1% 100% 1%
Java 2.33 43,924 2473 6.07 53% 71% 63% 74%
k-nucleotide
source secs mem gz cpu cpu load
Racket 82.03 374,608 881 82.02 100% 1% 0% 0%
Java 8.70 375,568 1812 27.17 80% 72% 74% 88%
Racket

Welcome to Racket v6.10.

Java

java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)