diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-07-12 03:43:05 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-07-12 04:59:34 +0000 |
commit | a84b18ac865257c50d8812e39d244b57809fc8c8 (patch) | |
tree | f2d005696c73e210bd1d84c073927033bc3f5362 | |
parent | fc803874d3a509ddd99a897da1c6a62dc4ce631e (diff) | |
download | go-a84b18ac865257c50d8812e39d244b57809fc8c8.tar.gz go-a84b18ac865257c50d8812e39d244b57809fc8c8.zip |
Revert "regexp: add the Fanout benchmark
This is a copy of the "FANOUT" benchmark recently added to RE2 with the
following comment:
// This has quite a high degree of fanout.
// NFA execution will be particularly slow.
Most of the benchmarks on the regexp package have very little fanout and
are designed for comparing the regexp package's NFA with backtracking
engines found in other regular expression libraries. This benchmark
exercises the performance of the NFA on expressions with high fanout.Reviewed-on: https://go-review.googlesource.com/24846
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
"
This reverts commit fc803874d3a509ddd99a897da1c6a62dc4ce631e.
Reason for revert: Breaks the -race build because the benchmark takes too long to run.
Change-Id: I6ed4b466f74a4108d8bcd5b019b9abe971eb483e
Reviewed-on: https://go-review.googlesource.com/24861
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
-rw-r--r-- | src/regexp/exec_test.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/regexp/exec_test.go b/src/regexp/exec_test.go index 576862860a..69f187e38a 100644 --- a/src/regexp/exec_test.go +++ b/src/regexp/exec_test.go @@ -682,7 +682,6 @@ var benchData = []struct{ name, re string }{ {"Medium", "[XYZ]ABCDEFGHIJKLMNOPQRSTUVWXYZ$"}, {"Hard", "[ -~]*ABCDEFGHIJKLMNOPQRSTUVWXYZ$"}, {"Hard1", "ABCD|CDEF|EFGH|GHIJ|IJKL|KLMN|MNOP|OPQR|QRST|STUV|UVWX|WXYZ"}, - {"Fanout", "(?:[\\x{80}-\\x{10FFFF}]?){100}[\\x{80}-\\x{10FFFF}]"}, } var benchSizes = []struct { |