Skip to content

Measuring shiny performance in the browser (modified)

Notifications You must be signed in to change notification settings

dalyanalytics/shiny.tictoc

 
 

Repository files navigation

shiny.tictoc - modified

{shiny.tictoc} allows you to measure:

  1. How much time your Shiny app is spending doing server side calculations
  2. How long does it take to recalculate outputs in your app

and export results in form of a CSV file. All that without the need of installing additional software and setting up testing scenarios - everything happens in the browser.

Getting Started

To start using shiny.tictoc in your app, just add the following line somewhere in your UI definition (see example here):

tags$script(
    src = "https://cdn.jsdelivr.net/gh/dalyanalytics/shiny.tictoc/shiny-tic-toc.min.js"
)

Next, open your app and interact with it.

To access the benchmarks open the browser devtools (Windows: F12, macOS + + I) and in the console run:

// Print out all measurements
showAllMeasurements()
// To download all measurements as a CSV file
exportMeasurements()
// To print out summarised measurements (slowest rendering output, slowest server computation)
showSummarisedMeasurements()
// To export an html file that visualizes measurements on a timeline
await exportHtmlReport()

About

Measuring shiny performance in the browser (modified)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.8%
  • R 9.2%