summaryrefslogtreecommitdiff
path: root/tests/long-pattern-perf
Commit message (Collapse)AuthorAgeFilesLines
* maint: spelling fixesPaul Eggert2023-01-161-1/+1
|
* maint: update copyright datesJim Meyering2023-01-011-1/+1
|
* tests: long-pattern-perf: avoid FP failure on unusual systemsJim Meyering2022-07-091-0/+10
| | | | | | | | * tests/long-pattern-perf: Skip this test whenever the base case takes more than 800ms. See comment for details. Reported by Bruno Haible in https://lists.gnu.org/r/grep-devel/2022-07/msg00004.html https://lists.gnu.org/r/grep-devel/2022-07/msg00006.html
* tests: long-pattern-perf: better handle exhausted virtual memoryJim Meyering2022-07-031-2/+6
| | | | | | | | | * tests/long-pattern-perf: Don't fail due to a syntax error when one of the subtests exhausts virtual memory. The larger test (with a 2MiB regexp) needs about 870MiB of virtual memory. Require that each timing run exit with status 0, else fail with a framework_failure_. Reported by Bruno Haible in https://lists.gnu.org/r/grep-devel/2022-07/msg00006.html
* tests: port to platforms lacking PerlPaul Eggert2022-05-211-0/+1
| | | | | | | * tests/init.cfg (require_perl_): New function. * tests/big-hole, tests/hash-collision-perf, tests/long-pattern-perf: * tests/many-regex-performance, tests/mb-non-UTF8-performance: Use it.
* maint: make update-copyrightJim Meyering2022-01-011-1/+1
|
* tests: provide an awk-based seq replacementJim Meyering2021-08-091-2/+1
| | | | | | | | ...so we can continue to use seq, but the wrapper when needed. * tests/init.cfg (seq): Some systems lask seq. Provide a replacement. * tests/hash-collision-perf: Use seq once again. * tests/long-pattern-perf: Likewise. And remove a comment about seq.
* tests: use awk, not seqPaul Eggert2021-08-091-3/+2
| | | | | | | Portability problem reported by Dagobert Michelsen in: https://lists.gnu.org/r/grep-devel/2021-08/msg00004.html * tests/hash-collision-perf, tests/long-pattern-perf: Don’t assume seq is installed; use awk instead.
* maint: run "make update-copyright"Paul Eggert2021-01-011-1/+1
|
* maint: update all copyright year number rangesJim Meyering2020-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * doc/grep.in.1: Use "-" in copyright year ranges, not \en.
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-011-1/+1
| | | | * gnulib: Also update submodule for its copyright updates.
* maint: update URLsPaul Eggert2018-04-211-1/+1
| | | | | Mostly this is just changing http: to https:. In one or two places it removes no-longer-useful URLs.
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* tests/long-pattern-perf: avoid false-failure due to cache speedJim Meyering2016-09-271-2/+3
| | | | | | | | | | | | * tests/long-pattern-perf: This test would fail semi-consistently on some systems, probably because the smaller regexp fit well within cache, yet the larger one did not. In that case, there was a relative speed difference greater than 20x and the test would fail. Quadruple the sizes, to make that less likely. Also, construct the 10x larger regexp directly from the smaller, rather than relying on seq with endpoints to induce that approximate size ratio. Reported by Bruce Dubbs in https://lists.gnu.org/archive/html/grep-devel/2016-09/msg00013.html
* tests: convert "cmd && fail=1" to "returns_ 1 cmd || fail=1"Jim Meyering2016-02-201-1/+1
| | | | | | | | | The latter is robust, while the former can silently ignore failure due to signals. * cfg.mk (sc_prohibit_and_fail_1): New rule, copied from coreutils. * tests/long-pattern-perf: Perform the above substitution. * tests/mb-non-UTF8-performance: Likewise. * tests/help-version: Merge from coreutils.
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* tests: mark performance-related tests as expensiveJim Meyering2015-11-041-0/+5
| | | | | | | | | | | | These performance-related tests are slightly failure prone due to varying system load during the two runs. Marking these tests as "expensive" makes it so they are no longer run via "make check". You can still run them via make "check-expensive". This makes them less likely to be run by regular users. * tests/long-pattern-perf: Use expensive_. * tests/mb-non-UTF8-performance: Likewise. Reported by Jaroslav Skarvada in http://debbugs.gnu.org/21826 and by Andreas Schwab in http://debbugs.gnu.org/21812.
* tests: long-pattern-perf: measure user time, not elapsedJim Meyering2015-08-011-18/+6
| | | | | | | | | | Measuring user time makes this test less prone to false positive failure, and also lets us use a tighter bound. * tests/long-pattern-perf: Measure elapsed user time rather than wall-clock time, to permit a tighter bound on the ratio of N-to-10N timings. Suggested by Giuseppe Ottaviano. Also, use regexps built from mostly 5-digit numbers, so that the 10:1 ratio applies to lines of "seq" output as well as to total bytes.
* tests: add a test for the performance fixJim Meyering2015-07-181-0/+50
* tests/long-pattern-perf: New file. * tests/Makefile.am (TESTS): Add it.