Skip to content

Commit f7b9e2d

Browse files
committed
Add alt text to benchmark vignette
1 parent 100aae3 commit f7b9e2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vignettes/benchmarks.Rmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ The following operations are performed.
217217
#| message: false
218218
#| fig-height: 8
219219
#| fig-width: 10
220+
#| fig-alt: "Horizontal bar chart comparing time and memory usage across different R packages (vroom, data.table, readr) for analyzing taxi trip data. The chart shows operation breakdowns including read, print, head, tail, sample, filter, and aggregate operations. Consult the associated table for detailed timing and memory usage statistics."
220221
taxi <- read_benchmark(path_package("vroom", "bench", "taxi.tsv"), desc)
221222
222223
plot_benchmark(taxi, "Time to analyze taxi trip data")
@@ -250,6 +251,7 @@ code: [bench/all_numeric-long](https://github.com/tidyverse/vroom/tree/main/inst
250251
#| echo: false
251252
#| fig-height: 8
252253
#| fig-width: 10
254+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing long all-numeric data across different R packages. Shows performance breakdown by operation type, with data.table performing slightly faster than vroom for this numeric-heavy workload."
253255
all_num <- read_benchmark(path_package("vroom", "bench", "all_numeric-long.tsv"), desc)
254256
255257
plot_benchmark(all_num, "Time to analyze long all numeric data")
@@ -267,6 +269,7 @@ code: [bench/all_numeric-wide](https://github.com/tidyverse/vroom/tree/main/inst
267269
#| echo: false
268270
#| fig-height: 8
269271
#| fig-width: 10
272+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing wide all-numeric data across different R packages. Shows performance breakdown by operation type, with data.table performing slightly faster than vroom for this wide numeric dataset."
270273
all_num_wide <- read_benchmark(path_package("bench", "all_numeric-wide.tsv", package = "vroom"), desc)
271274
272275
plot_benchmark(all_num_wide, "Time to analyze wide all numeric data")
@@ -288,6 +291,7 @@ All character data is a best case scenario for vroom when using Altrep, as it ta
288291
#| echo: false
289292
#| fig-height: 8
290293
#| fig-width: 10
294+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing long all-character data across different R packages. Shows vroom with Altrep significantly outperforming other packages due to lazy character vector evaluation."
291295
all_chr <- read_benchmark(path_package("vroom", "bench", "all_character-long.tsv"), desc)
292296
293297
plot_benchmark(all_chr, "Time to analyze long all character data")
@@ -305,6 +309,7 @@ code: [bench/all_character-wide](https://github.com/tidyverse/vroom/tree/main/in
305309
#| echo: false
306310
#| fig-height: 8
307311
#| fig-width: 10
312+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing wide all-character data across different R packages. Shows vroom with Altrep significantly outperforming other packages due to lazy character vector evaluation."
308313
all_chr_wide <- read_benchmark(path_package("vroom", "bench", "all_character-wide.tsv"), desc)
309314
310315
plot_benchmark(all_chr_wide, "Time to analyze wide all character data")
@@ -332,6 +337,7 @@ and `r mult$cols[[1]]` columns for a total file size of `r format(fs_bytes(mult$
332337
#| echo: false
333338
#| fig-height: 8
334339
#| fig-width: 10
340+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing data from multiple taxi trip files across different R packages. Shows vroom's performance advantage when reading multiple files simultaneously."
335341
plot_benchmark(mult, "Time to analyze multiple file data")
336342
337343
make_table(mult)
@@ -363,6 +369,7 @@ code: [bench/fwf](https://github.com/tidyverse/vroom/tree/main/inst/bench/fwf)
363369
#| echo: false
364370
#| fig-height: 8
365371
#| fig-width: 10
372+
#| fig-alt: "Horizontal bar chart comparing time and memory usage for reading and analyzing fixed-width format data (US Census data) across different R packages. Shows vroom's performance with fixed-width files."
366373
plot_benchmark(fwf, "Time to analyze fixed width data")
367374
368375
make_table(fwf)
@@ -385,6 +392,7 @@ The benchmarks write out the taxi trip dataset in a few different ways.
385392
#| echo: false
386393
#| fig-height: 8
387394
#| fig-width: 10
395+
#| fig-alt: "Grouped horizontal bar chart comparing file writing performance across R packages (base, readr, data.table, vroom) with different compression methods (uncompressed, gzip, multithreaded gzip, and Zstandard). Shows vroom's competitive writing performance, especially with compression."
388396
taxi_writing <- read_benchmark(path_package("vroom", "bench", "taxi_writing.tsv"), c("setup", "writing")) |>
389397
rename(
390398
package = reading_package,

0 commit comments

Comments
 (0)