Skip to content

vs. RRO #9

Description

@zheng-da

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()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions