-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
FlashR
For awesomer
library(FlashR)
mat <- fm.runif.matrix(1000000, 1000)
for (i in 1:5) {
start <- Sys.time(); res <- crossprod(mat); end <- Sys.time()
print(end - start)
}
for (i in 1:5) {
start <- Sys.time(); res <- svd(mat); end <- Sys.time()
print(end - start)
}
for (i in 1:5) {
start <- Sys.time(); res <- prcomp(mat); end <- Sys.time()
print(end - start)
}
source("/home/zhengda/FlashR-learn/R/lda.R")
for (i in 1:5) {
start <- Sys.time(); res <- lda.default(mat, as.integer(fm.runif(nrow(mat), min=0, max=3))); end <- Sys.time()
print(end - start)
}For home desktop,
library(FlashR)
mat <- fm.runif.matrix(100000, 1000)
for (i in 1:5) {
start <- Sys.time(); res <- crossprod(mat); end <- Sys.time()
print(end - start)
res <- NULL
gc()
}
for (i in 1:5) {
start <- Sys.time(); res <- svd(mat); end <- Sys.time()
print(end - start)
res <- NULL
gc()
}
for (i in 1:5) {
start <- Sys.time(); res <- prcomp(mat); end <- Sys.time()
print(end - start)
res <- NULL
gc()
}
source("/home/zhengda/research/FlashR-learn/R/lda.R")
for (i in 1:5) {
start <- Sys.time(); res <- lda.default(mat, as.integer(fm.runif(nrow(mat), min=0, max=3))); end <- Sys.time()
print(end - start)
res <- NULL
gc()
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels