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.9k
1
Share
bench
The bench package, a new take in benchmarking for R
Jim Hester
September 19, 2018
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.2k
it depends
jimhester
5
3.8k
Extending R Syntax: in package space
jimhester
1
1k
Glue strings to data with glue
jimhester
0
240
You can make a package in 20 minutes
jimhester
1
100
Other Decks in Programming
See All in Programming
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
3
340
GoogleCloudとterraform完全に理解した
terisuke
1
120
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
580
実用!Hono RPC2026
yodaka
2
250
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
140
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
290
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
790
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
180
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
970
tRPCの概要と少しだけパフォーマンス
misoton665
2
220
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
210
NakouPAY説明用
annouim0
0
250
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
200
Producing Creativity
orderedlist
PRO
348
40k
My Coaching Mixtape
mlcsv
0
110
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Designing for humans not robots
tammielis
254
26k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
140
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
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]