search for: time_strcaptur

Displaying 1 result from an estimated 1 matches for "time_strcaptur".

Did you mean: time_strcapture
2024 Jan 29
1
strcapture performance when perl = TRUE
...> <NA> (strcapture2(regex, notables, proto, perl = TRUE)) X.. X...1 1 Ben Franklin 2 Millard Fillmore 3 <NA> <NA> 4 <NA> <NA> Now to compare timings over multiple reps: lengths <- sort(outer(c(1, 2, 5), 10^(1:4))) reps <- 20 time_strcapture <- function(text, length, regex, proto, reps) { text <- rep_len(text, length) str <- system.time(for (i in seq_len(reps)) strcapture(regex, text, proto, perl = TRUE)) str2 <- system.time(for (i in seq_len(reps)) strcapture2(regex, text, proto, perl = TRUE)) c(strcapture...