Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode and DNA regexes + more benchmarker improvements #515

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rctcwyvrn
Copy link
Contributor

  • Benchmarks for unicode regexes and matching around unicode data
  • Fix the names
  • Add suite filtering by patterns instead of names
  • Exclude firstMatch benchmarks by default because they were running too quickly and not providing information the matches benchmarks weren't
  • Add flag for excluding the NSRegex comparison benchmarks

@rctcwyvrn rctcwyvrn requested a review from milseman June 24, 2022 21:34
@rctcwyvrn
Copy link
Contributor Author

@swift-ci test

Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking great!

Can you make sure there are no licensing issues with any input data?

@@ -6,7 +6,7 @@ extension BenchmarkRunner {
let r = #"--([a-zA-Z0-9_-]+)\s*:\s*(.*?);"#

let css = CrossBenchmark(
baseName: "css", regex: r, input: Inputs.swiftOrgCSS)
baseName: "Css", regex: r, input: Inputs.swiftOrgCSS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I believe Swift's naming convention would prefer to keep them all capitalized or all lower case. Not a big deal to me.


3. Neither the name "The Computer Language Benchmarks Game" nor the name "The Benchmarks Game" nor the name "The Computer Language Shootout Benchmarks" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephentyrone Can you check off on licensing here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Contributor Author

@rctcwyvrn rctcwyvrn Jun 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the script from here https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/fasta-python3-1.html and copied over the license from the repo here https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/blob/master/LICENSE.md

Not sure if the "redistributions of source code" applies only to the code in the repo for the website/benchmarking harness or for the scripts that users submit as well

@rctcwyvrn
Copy link
Contributor Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants