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 37,444 938 3.30 2% 5% 98% 4%
spectral-norm
source secs mem gz cpu cpu load
Racket 5.33 29,216 627 20.55 97% 98% 96% 96%
Java 4.25 36,364 950 16.30 97% 96% 95% 97%
n-body
source secs mem gz cpu cpu load
Racket 53.10 28,276 1689 53.08 2% 7% 100% 4%
Java 22.56 35,208 1424 22.65 99% 1% 1% 1%
binary-trees
source secs mem gz cpu cpu load
Racket 26.96 501,036 473 26.92 1% 1% 1% 100%
Java 8.58 966,808 835 28.98 86% 84% 90% 81%
mandelbrot
source secs mem gz cpu cpu load
Racket 19.53 130,172 796 74.29 96% 96% 95% 95%
Java 6.08 77,056 796 23.61 97% 97% 99% 97%
reverse-complement
source secs mem gz cpu cpu load
Racket 4.24 184,284 1026 4.23 100% 1% 1% 0%
Java 1.13 199,672 2124 2.76 48% 74% 70% 54%
regex-redux
source secs mem gz cpu cpu load
Racket 50.50 1,013,084 536 50.50 1% 0% 50% 51%
Java 10.38 634,548 929 29.48 70% 64% 69% 82%
fannkuch-redux
source secs mem gz cpu cpu load
Racket 82.36 24,740 1096 324.28 99% 99% 100% 96%
Java 15.09 34,764 1282 59.26 99% 98% 98% 100%
fasta
source secs mem gz cpu cpu load
Racket 17.26 28,060 1276 17.25 0% 1% 100% 1%
Java 2.32 46,816 2457 6.37 61% 60% 96% 60%
k-nucleotide
source secs mem gz cpu cpu load
Racket 82.03 374,608 881 82.02 100% 1% 0% 0%
Java 8.38 375,988 1802 26.25 73% 97% 70% 74%
Racket

Welcome to Racket v6.10.

Java

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