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
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.4k
GitHub Actions for R
jimhester
10
5.3k
vroom
jimhester
1
5.9k
it depends
jimhester
5
3.7k
Extending R Syntax: in package space
jimhester
1
950
Glue strings to data with glue
jimhester
0
220
You can make a package in 20 minutes
jimhester
1
92
Other Decks in Programming
See All in Programming
Cell-Based Architecture
larchanjo
0
160
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
210
.NET Conf 2025 の興味のあるセッ ションを復習した / dotnet conf 2025 quick recap for backend engineer
tomohisa
0
110
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
440
Vibe codingでおすすめの言語と開発手法
uyuki234
0
160
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
230
AIエージェントの設計で注意するべきポイント6選
har1101
6
2.9k
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
4
1.1k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
460
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
340
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
180
CSC307 Lecture 01
javiergs
PRO
0
650
Featured
See All Featured
Believing is Seeing
oripsolob
0
19
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
34
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
44
Between Models and Reality
mayunak
1
160
The Spectacular Lies of Maps
axbom
PRO
1
410
Claude Code のすすめ
schroneko
67
210k
Typedesign – Prime Four
hannesfritz
42
2.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Paper Plane
katiecoart
PRO
0
45k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
51k
Speed Design
sergeychernyshev
33
1.5k
How Software Deployment tools have changed in the past 20 years
geshan
0
31k
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]