diff --git a/data-raw/benchmark.R b/data-raw/benchmark.R index cc456ab7..047e6279 100644 --- a/data-raw/benchmark.R +++ b/data-raw/benchmark.R @@ -118,7 +118,8 @@ if (identical(Sys.getenv("CI"), "true") && identical(Sys.getenv("BACKEND"), "")) } # Construct the list of benchmarks - update_snapshot_benchmark <- microbenchmark::microbenchmark(scdb_updates(conn, data_on_conn), times = 25) |> + update_snapshot_benchmark <- bench::mark(scdb_updates(conn, data_on_conn), iterations = 25) |> + tidyr::unnest(c(time, gc)) |> dplyr::mutate( "benchmark_function" = "update_snapshot()", "database" = names(conns)[[1]], @@ -145,7 +146,8 @@ if (identical(Sys.getenv("CI"), "true") && identical(Sys.getenv("BACKEND"), "")) } # Construct the list of benchmarks - update_snapshot_benchmark <- microbenchmark::microbenchmark(scdb_updates(conn, data), times = 5) |> + update_snapshot_benchmark <- bench::mark(scdb_updates(conn, data), iterations = 5) |> + tidyr::unnest(c(time, gc)) |> dplyr::mutate( "benchmark_function" = "update_snapshot() - complexity", "database" = names(conns)[[1]],