Measuring performance improvement in Shiny apps
summary
shiny.benchmark runs end-to-end tests across multiple git refs and records per-task durations so developers can quantify speedups. It uses shinytest2 or Cypress, supports repetitions (example runs 5 times) and handles renv package changes automatically, creating a temp checkout for each version. The demo compares three branches showing average timings moving from ~4s/2s/1s to ~2s/1s/0.5s then ~1s/0.25s, and outputs per-replication CSVs, summary stats and simple plots for visual comparison.
AI-written summary · about
