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.5k
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.1k
GitHub Actions for R
jimhester
10
5.1k
vroom
jimhester
1
5.4k
it depends
jimhester
5
3.6k
Extending R Syntax: in package space
jimhester
1
770
Glue strings to data with glue
jimhester
0
190
You can make a package in 20 minutes
jimhester
1
74
Other Decks in Programming
See All in Programming
Vibe Coding の話をしよう
schroneko
14
3.8k
VibeCoding時代のエンジニアリング
daisuketakeda
0
200
大LLM時代にこの先生きのこるには-ITエンジニア編
fumiyakume
8
3.4k
Cloudflare Workersで進めるリモートMCP活用
syumai
5
580
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
160
Cursorを活用したAIプログラミングについて 入門
rect
0
200
Cursor/Devin全社導入の理想と現実
saitoryc
29
22k
“技術カンファレンスで何か変わる?” ──RubyKaigi後の自分とチームを振り返る
ssagara00
0
110
データベースの技術選定を突き詰める ~複数事例から考える最適なデータベースの選び方~
nnaka2992
2
1.6k
Optimizing JRuby 10
headius
0
600
マイコンでもRustのtestがしたい/KernelVM Kansai 11
tnishinaga
1
890
Lambda(Python)の リファクタリングが好きなんです
komakichi
5
270
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Raft: Consensus for Rubyists
vanstee
137
6.9k
Site-Speed That Sticks
csswizardry
6
540
Done Done
chrislema
184
16k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Side Projects
sachag
453
42k
How to train your dragon (web standard)
notwaldorf
91
6k
Optimizing for Happiness
mojombo
378
70k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Why Our Code Smells
bkeepers
PRO
336
57k
GraphQLとの向き合い方2022年版
quramy
46
14k
Code Review Best Practice
trishagee
68
18k
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]