Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17660
Closed
Open
Created Jan 10, 2020 by Simon Jakobi@sjakobiDeveloper

Performance regression in bytestring from 8.8 to 8.10

Summary

Many of the benchmarks in bytestring's bench-bytestring-builder benchmark suite run much slower with 8.10.1-alpha2 than with 8.8.

Here are the first lines of the benchmark diff (produced with criterion-compare), sorted by significance:

image

Full diff

Some of the results may be noisy, but at that magnitude it shouldn't matter much.

I also benchmarked with HEAD (923a1272), and got even worse results, but that might have been because that ghc was built with --flavour=Quick.

Note that the substrings/* benchmarks measure the findSubstrings function, which is deprecated. So the performance of the other benchmarks is actually more important.

Steps to reproduce

  1. Clone the branch from this PR which fixes building the benchmarks.
  2. cd bench
  3. cabal -O2 run bench-bytestring-builder

Expected behavior

The performance of these benchmarks should be no worse with 8.10 than with 8.8.

Environment

  • GHC versions used: 8.8.1 and 8.10.1-alpha2, both from hvr's PPA.
  • Operating System: Linux
  • System Architecture: x86_64
Edited Jan 10, 2020 by Simon Jakobi
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking