Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created May 23, 2022 06:44
Show Gist options
  • Save darioappsilon/0b8440d8e00b37f734f7b053f54229cb to your computer and use it in GitHub Desktop.
Save darioappsilon/0b8440d8e00b37f734f7b053f54229cb to your computer and use it in GitHub Desktop.
benchmark({
key_to_lookup <- select_random_key()
time(data[which(data$col1 == key_to_lookup),])
})
## min max mean
## 0.09200 0.15800 0.10471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment