Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 1.29 KB

tidyodsexample.md

File metadata and controls

55 lines (45 loc) · 1.29 KB

Benchmarks used in the README of tidyods

date()
[1] "Sun May 26 08:53:05 2024"
devtools::load_all()
ℹ Loading readODS
file <- here::here("benchmark/basic_example.ods")
## it was 50.4ms
bench::mark("readODS" = read_ods(file, sheet = 2), check = FALSE, filter_gc = FALSE, iterations = 20) |>
    dplyr::transmute(expression, min, median, mean = total_time/n_itr, n_itr)
# A tibble: 1 × 4
  expression      min   median     mean
  <bch:expr> <bch:tm> <bch:tm> <bch:tm>
1 readODS       5.2ms   5.36ms   7.67ms
postcodes_file <- here::here("benchmark/civil-service-postcodes-2021.ods")
## it was 13.7s
bench::mark("readODS" = readODS::read_ods(postcodes_file, 2), check = FALSE, filter_gc = FALSE, iterations = 5) |>
    dplyr::transmute(expression, min, median, mean = total_time/n_itr, n_itr)
New names:
New names:
New names:
New names:
New names:
New names:
• `` -> `...2`
• `` -> `...3`
• `` -> `...4`
• `` -> `...5`
• `` -> `...6`
• `` -> `...7`
• `` -> `...8`
• `` -> `...9`
• `` -> `...10`
• `` -> `...11`

# A tibble: 1 × 4
  expression      min   median     mean
  <bch:expr> <bch:tm> <bch:tm> <bch:tm>
1 readODS       420ms    428ms    430ms