~/talk

Improving Rust Performance Through Profiling and Benchmarking

Talkat RustConf 2017 · on Saturday, 2017-08-19· [rust]

Compares concrete tooling and measurements: uses cargo bench, perf + flamegraphs, Instruments and VTune to profile a Rust TCP proxy and a stats lib called taco; shows a multi‑threaded macro benchmark that initially has IPC ≈0.5, L1 miss rate ≈5% and 9s runtime, pins threads to sockets and drops misses to ≈0.01% while cutting runtime to 9s → 3.8s and raising IPC ~10%, and flags common Rust pitfalls like excessive Clone, crypto hashes, and expensive argument evaluation.

AI-written summary · about

  1. 0:00Start
  2. 3:11MEMORY HIERARCHY LATENCY GUIDELINES
  3. 3:59CPU UTILIZATION
  4. 5:52DEFAULT HASHER IN THE STANDARD HASHIMAP
  5. 6:34EXPENSIVE ARGUMENTS TO expect()
  6. 8:06CARGO BENCH
  7. 9:31HOW TO CONSTRUCT A MACROBENCHMARK
  8. 11:37BASIC CPU ARCHITECTURE
  9. 13:04INTEL PERFORMANCE COUNTERS
  10. 13:42INSTRUCTIONS PER CYCLE
  11. 17:52PERF CACHE MISSES/HITS
  12. 23:51VTUNE TAKEAWAY
  13. 24:17LESSON LEARNED
  14. 25:43TAKEAWAYS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.