-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
I was doing some benchmarking and got some strange results.
I think I got it minimal enough now. It appears that any function when being defined adds calling time to any previous functions.
library(cpp11)
cpp_function("void void_a() {}")
cpp_function("void void_b() {}")
bm <- bench::mark(
void_a(),
void_b()
)
plot(bm)
#> Loading required namespace: tidyrcpp_function("void void_b() {}")
cpp_function("void void_a() {}")
bm <- bench::mark(
void_a(),
void_b()
)
plot(bm)Created on 2020-06-17 by the reprex package (v0.3.0)
library(cpp11)
cpp_function("void void_a() {}")
cpp_function("void void_b() {}")
cpp_function("void void_c() {}")
cpp_function("void void_d() {}")
cpp_function("void void_e() {}")
bm <- bench::mark(
void_a(),
void_b(),
void_c(),
void_d(),
void_e()
)
plot(bm)
#> Loading required namespace: tidyrCreated on 2020-06-17 by the reprex package (v0.3.0)
shrektan
Metadata
Metadata
Assignees
Labels
No labels


