Repository navigation
Relative speed test that catches significant slowdowns - #63
Merged
Merged
Conversation
This reverts commit 251aff0.
AlbanSagouis
marked this pull request as ready for review
November 19, 2026 10:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a relative speed test for
parse_lat(),parse_lon()andparse_llstr(): the median time on 10k strings divided by the median time ofgsub("[^0-9A-Za-z.]", "'", x)on the same strings, in the same run. It runs only inside R CMD check (testthat::is_checking(), an installed optimised build) and is skipped on CRAN.The limits (6, 6 and 8) are 1.5 times the ratios measured on the 5 CI platforms in this PR. Windows is the worst (3.86, 3.85, 5.03), macOS the best (1.59, 2.06, 3.03). The tests catch a slowdown of about 1.6x on Windows and 3.4x or more on macOS. The
std::regexversion (aacd37b) gives 20 to 34.