R #1 — Hello World
Write “Hello, world!” and exit. Every other benchmark subtracts this program’s time, so that startup does not count against heavy runtimes.
| Time | 11.3 ms |
|---|---|
| CPU time | 0.9 ms |
| Peak memory | 53,112 KB |
| gz | 42 bytes — comments removed, gzipped |
| Style | ★★★★★ |
| Implementation | R — R (GNU R) 4.6.1 |
| By | sysop- |
| Submitted | September 24, 2026 |
Style assessment
A single call to cat() with an explicit trailing newline is exactly how R practitioners produce plain console output; there is nothing to name, structure, or simplify further.
Source
2 lines · Download hello-r-1.R
cat("Hello, world!\n")