Skip to content

Instantly share code, notes, and snippets.

@szilard
Created June 24, 2016 03:15
Show Gist options
  • Save szilard/f0bb72ca8ab88a1c3e69f9bf4b8946c0 to your computer and use it in GitHub Desktop.
Save szilard/f0bb72ca8ab88a1c3e69f9bf4b8946c0 to your computer and use it in GitHub Desktop.
R on EC2 x1 2TB RAM 128 cores
> system.time(x <- 1:1e11)
user system elapsed
221.491 210.466 432.030
> object.size(x)/1e9
800.00000004 bytes
> system.time(sum(x))
user system elapsed
145.913 78.183 230.063
> system.time(y <- x+1)
user system elapsed
176.000 327.997 504.087
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 215635 11.6 4.60000e+05 24.6 350000 18.7
Vcells 200000399063 1525882.0 2.88001e+11 2197273.1 200000399258 1525882.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment