From dfb5d0cea121215c65ff65fc5d4f3900f0189d5f Mon Sep 17 00:00:00 2001 From: Konrad Siek Date: Thu, 27 May 2021 19:37:53 +0200 Subject: [PATCH] Benchmark. --- ufovectors/benchmark/benchmark.Rmd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ufovectors/benchmark/benchmark.Rmd b/ufovectors/benchmark/benchmark.Rmd index ef0ea57..7a04f46 100644 --- a/ufovectors/benchmark/benchmark.Rmd +++ b/ufovectors/benchmark/benchmark.Rmd @@ -170,7 +170,7 @@ Here I'm comparing ## Creation -```{r seq-sum32mln, cache=T} +```{r seq-create, cache=T} size = 32000000 result <- microbenchmark( @@ -180,9 +180,6 @@ result <- microbenchmark( "standard vector" = { as.integer(c(1:size)) }, #"compact vector" = { 1:size }, "seq.int" = { seq.int(1, size, 1) }, - check = function(values) { - all(sapply(values, function(result) result == sum(1:size))) - }, times = 50L )