Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
bench
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jim Hester
September 19, 2018
Programming
1
1.8k
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
2.5k
GitHub Actions for R
jimhester
10
5.3k
vroom
jimhester
1
6.1k
it depends
jimhester
5
3.8k
Extending R Syntax: in package space
jimhester
1
990
Glue strings to data with glue
jimhester
0
230
You can make a package in 20 minutes
jimhester
1
100
Other Decks in Programming
See All in Programming
Ruby x Terminal
a_matsuda
7
600
SourceGeneratorのマーカー属性問題について
htkym
0
200
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
520
安いハードウェアでVulkan
fadis
0
180
AHC061解説
shun_pi
0
380
Ruby and LLM Ecosystem 2nd
koic
1
910
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8.1k
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
230
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
610
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.4k
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
280
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
210
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
640
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
WENDY [Excerpt]
tessaabrams
9
36k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
From π to Pie charts
rasagy
0
150
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
150
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
We Have a Design System, Now What?
morganepeng
55
8k
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
[email protected]