pkgload::load_all()
qloadm("tools/tpch/100.qs")
test_dplyr_q <- head(n = -1, list(
tpch_01 = tpch_01,
tpch_02 = tpch_02,
tpch_03 = tpch_03,
tpch_04 = tpch_04,
tpch_05 = tpch_05,
tpch_06 = tpch_06,
tpch_07 = tpch_07,
tpch_08 = tpch_08,
tpch_09 = tpch_09,
tpch_10 = tpch_10,
tpch_11 = tpch_11,
tpch_12 = tpch_12,
tpch_13 = tpch_13,
tpch_14 = tpch_14,
tpch_15 = tpch_15,
tpch_16 = tpch_16,
tpch_17 = tpch_17,
tpch_18 = tpch_18,
tpch_19 = tpch_19,
tpch_20 = tpch_20,
tpch_21 = tpch_21, # prohibitive
tpch_22 = tpch_22,
NULL
))
res <- list()
pkg <- "dplyr"
for (q in names(test_dplyr_q)) {
gc()
f <- test_dplyr_q[[q]]
cold <- nrow(f())
time <- system.time(nrow(f()))[[3]]
print(q)
print(time)
res[[q]] <- data.frame(pkg = pkg, q = q, time = time)
}
df <- do.call(rbind, res)
write.csv(df, paste0("res-", pkg, ".csv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.