Loading…
useR! 2024
Attending this event?
In Person & Virtual
8 - 11 July, 2024
Learn more and Register to Attend

The Sched app allows you to build your schedule but is not a substitute for your event registration. You must be registered for useR! 2024 to participate in the sessions. If you have not registered but would like to join us, please go to the event registration page to purchase a registration.

Please note: This schedule is automatically displayed in Central European Time (UTC+1)To see the schedule in your preferred timezone, please select from the drop-down menu to the right, above "Filter by Date." The schedule is subject to change.
Thursday, July 11 • 10:30 - 10:35
Benchmarking (R)Cpp Code with rcpptimer - Jonathan Berrisch, University of Duisburg-Essen

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

This talk presents 'rcpptimer' [1]. 'rcpptimer' is a novel R package that provides Rcpp bindings for 'cpptimer' [2], a simple tic-toc timer class for benchmarking C++ code. This sleek tic-toc timer supports overlapping timers and OpenMP parallelism. It boasts a microsecond-level time resolution. We did not find any overhead of the timer itself at this resolution. Results (with summary statistics) are automatically passed back to R as a data frame.

I will demonstrate the versatile application of 'rcpptimer' in diverse Rcpp projects. Furthermore, we'll delve into the intricacies of its implementation, shedding light on its evolution from 'rcppclock' [3]. I will highlight key features such as OpenMP parallelism and automatically returning results to R. Additionally, I will discuss the rationale behind the decision to separate the core components of 'rcpptimer' into the standalone project 'cpptimer'.

This talk addresses 'Rcpp' beginners. Basic knowledge of C++ classes is needed to follow every implementation aspect.

[1] https://cran.r-project.org/web/packages/rcpptimer/index.html
[2] https://github.com/BerriJ/cpptimer
[3] https://github.com/zdebruine/RcppClock


Thursday July 11, 2024 10:30 - 10:35 CEST
Attersee
Feedback form isn't open yet.