R in the browser, measured

R check

A chart in bio.viz computes no test itself: it asks R. This page asks R for two test results three ways, compares what R in this browser answers with what desktop R answers, and reports what starting R in a browser costs.

With no R attached

The call still answers. A chart would draw, and print this in place of a statistic:

Loading…

From results shipped with the page

Desktop R (R 4.3.3, survival 3.5.8) worked these out ahead of time, and they are read from a file. No R is loaded to show them.

From R in this browser

The button starts R itself in this page (webR 0.6.0, fetched from its public CDN), installs the survival package, and runs the same two tests on the same two tables. Nothing is fetched until it is pressed, and each time below is counted from the call that needed it.

R has not been started.

Two numbers count as the same when they differ by no more than 1 part in 108 of the larger: eight digits must agree, five more than a chart prints. Desktop R and R in the browser are different versions built by different compilers, so the last digits of a number may differ; both numbers are shown in full, with their difference, so nothing the tolerance lets through is hidden. Text, counts and the shape of each answer must match exactly.

What it costs, as measured

State MB Requests From network Seconds
Coldfirst visit, nothing cached26.2212123.568
Reloadpage loaded again, files in the browser cache, R starts again0.001212.143
WarmR already running in the page, a second call0.00000.004

The data and the R