Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
bench
Jim Hester
September 19, 2018
Programming
1
860
bench
The bench package, a new take in benchmarking for R
Jim Hester
September 19, 2018
Tweet
Share
More Decks by Jim Hester
See All by Jim Hester
cpp11 - welding R and C++
jimhester
0
1.1k
GitHub Actions for R
jimhester
10
4.1k
vroom
jimhester
1
3.5k
it depends
jimhester
5
2.7k
Extending R Syntax: in package space
jimhester
1
280
Glue strings to data with glue
jimhester
0
87
You can make a package in 20 minutes
jimhester
1
42
Other Decks in Programming
See All in Programming
Custom Design Systems in Compose UI
rharter
5
520
Make the most of Django - PyCon Italia 2022
pauloxnet
0
110
NEWT.net: Frontend Technology Selection
xpromx
0
170
設計ナイト2022 トランザクションスクリプト
shinpeim
11
2k
Cross Deviceチームにおけるスマートテレビアプリ開発ってどんな感じ?
cokaholic
0
120
Beyond Micro Frontends: Frontend Moduliths for the Enterprise @wad2022
manfredsteyer
PRO
0
130
Modern Android Developer ~ 안내서
pluu
1
590
BASE BANKチームの技術選定と歴史 / how to decide technology selection for startup
budougumi0617
0
130
Seleniumでイキってたらサーバを絞め落としかけてた話
kenfujita
0
360
Power Automateドリブンのチームマネジメント
hanaseleb
0
180
シェーダー氷山発掘記
logilabo
0
140
即、New Relic / New Relic NOW!
uzulla
0
270
Featured
See All Featured
The Cult of Friendly URLs
andyhume
68
4.8k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
The Web Native Designer (August 2011)
paulrobertlloyd
74
1.9k
Designing with Data
zakiwarfel
91
3.9k
Bootstrapping a Software Product
garrettdimon
296
110k
BBQ
matthewcrist
74
7.9k
Agile that works and the tools we love
rasmusluckow
319
19k
jQuery: Nuts, Bolts and Bling
dougneiner
56
6.4k
The Language of Interfaces
destraynor
148
20k
Automating Front-end Workflow
addyosmani
1351
200k
Bash Introduction
62gerente
597
210k
How GitHub (no longer) Works
holman
296
140k
Transcript
CC by RStudio bench ! September 19th 2018 " bench.r-lib.org
Jim Hester CC-BY-4.0 A new take on benchmarking
Why benchmark?
"premature optimization is the root of all evil." - Donald
Knuth
"A good programmer… will be wise to look carefully at
the critical code; but only a!er that code has been identified." - Donald Knuth
"All (tools) should be designed to provide (us) with feedback
indicating what parts of (our) programs are costing the most" - Donald Knuth
bench::mark()
CC by RStudio bench::mark() 1. High precision timers (ns) 2.
Memory allocations 3. Number and type of R garbage collections 4. Result equality 5. Adaptive stopping 6. Statistics filter GC effects
CC by RStudio bench::mark() 1. Human readable times 2. Human
readable memory sizes 3. Full results / timings / GCs in list- cols
bench::press()
CC by RStudio bench::press()
bench::plot()
ggplot2::autoplot(results) CC by RStudio
CC by RStudio
bench.r-lib.org install.packages("bench") jimhester_ jimhester jim.hester@rstudio.com