Skip to content

Commit

Permalink
Benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
kondziu committed May 27, 2021
1 parent 2576763 commit dfb5d0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ufovectors/benchmark/benchmark.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Here I'm comparing

## Creation

```{r seq-sum32mln, cache=T}
```{r seq-create, cache=T}
size = 32000000
result <- microbenchmark(
Expand All @@ -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
)
Expand Down

0 comments on commit dfb5d0c

Please sign in to comment.