Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created May 23, 2022 06:42
Show Gist options
  • Save darioappsilon/872038f2a7285fbb53aec9397df2b240 to your computer and use it in GitHub Desktop.
Save darioappsilon/872038f2a7285fbb53aec9397df2b240 to your computer and use it in GitHub Desktop.
library(dplyr)
benchmark({
key_to_lookup <- select_random_key()
time(data %>% filter(col1 == key_to_lookup))
})
## min max mean
## 0.0960 0.2440 0.1124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment