Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Analyzing networks of characters in 'Love Actually'. Parent comment
Running grepl() via:
benchmark(df %>% sample_frac() %>% filter(grepl("ARREST", Resolution)))
Running str_detect() via:
benchmark(df %>% sample_frac() %>% filter(str_detect(Resolution, "ARREST")))
Overall, str_detect() is faster by 3%. The stringr packages has more surprises than I thought!
There are no comments on this comment yet.
Running grepl() via:
completed in 257.58 seconds.Running str_detect() via:
completed in 248.917 seconds.Overall, str_detect() is faster by 3%. The stringr packages has more surprises than I thought!