Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-138

MRESOLVER-56 introduces severe performance regression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1
    • Resolver
    • None

    Description

      As discussed on the dev ML, dantran found out that additional download of SHA-512 and SHA-256 when both aren't there introduces a huge performance penalty because of the HTTP roundtrip. SimpleDigest requires also more time with SHA-512. My personal tests with various setups show at least a 50% toll in resolution time. (Not representative, of course)

      Ant Resolver Tasks:

      master:SHA-512,SHA-256,SHA-1,MD5:central-mirror
             24,20 real        40,09 user         4,11 sys
      master:SHA-512,SHA-256,SHA-1,MD5:central-mirror-sha256
             24,67 real        45,04 user         3,89 sys
      master:SHA-512,SHA-256,SHA-1,MD5:central-mirror-sha1-md5
             24,37 real        40,02 user         4,20 sys
      master:SHA-512,SHA-256:central-mirror
             33,34 real        39,65 user         4,56 sys
      master:SHA-512,SHA-256:central-mirror-sha256
             43,42 real        45,75 user         4,93 sys
      master:SHA-512,SHA-256:central-mirror-sha1-md5
             44,30 real        46,01 user         5,13 sys
      master:SHA-1,MD5:central-mirror
             22,62 real        37,27 user         3,86 sys
      master:SHA-1,MD5:central-mirror-sha256
             22,69 real        37,08 user         4,10 sys
      master:SHA-1,MD5:central-mirror-sha1-md5
             22,81 real        37,85 user         4,00 sys
      master:SHA-512:central-mirror
             32,20 real        33,65 user         4,80 sys
      master:SHA-512:central-mirror-sha256
             33,61 real        39,75 user         4,48 sys
      master:SHA-512:central-mirror-sha1-md5
             33,39 real        36,00 user         4,12 sys
      master:SHA-256:central-mirror
             32,66 real        36,49 user         4,80 sys
      master:SHA-256:central-mirror-sha256
             32,35 real        35,41 user         4,44 sys
      master:SHA-256:central-mirror-sha1-md5
             33,44 real        37,12 user         4,12 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-mirror
             24,59 real        44,12 user         4,05 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-mirror-sha256
             24,69 real        43,62 user         4,27 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-mirror-sha1-md5
             24,68 real        43,97 user         4,28 sys
      digest-fix:SHA-512,SHA-256:central-mirror
             33,53 real        42,76 user         4,35 sys
      digest-fix:SHA-512,SHA-256:central-mirror-sha256
             43,16 real        41,90 user         5,12 sys
      digest-fix:SHA-512,SHA-256:central-mirror-sha1-md5
             44,00 real        45,75 user         5,24 sys
      digest-fix:SHA-1,MD5:central-mirror
             22,47 real        33,67 user         4,02 sys
      digest-fix:SHA-1,MD5:central-mirror-sha256
             22,90 real        37,95 user         4,08 sys
      digest-fix:SHA-1,MD5:central-mirror-sha1-md5
             22,62 real        33,96 user         4,00 sys
      digest-fix:SHA-512:central-mirror
             32,28 real        34,07 user         4,65 sys
      digest-fix:SHA-512:central-mirror-sha256
             33,84 real        34,90 user         4,37 sys
      digest-fix:SHA-512:central-mirror-sha1-md5
             33,72 real        37,18 user         4,31 sys
      digest-fix:SHA-256:central-mirror
             32,36 real        35,70 user         4,39 sys
      digest-fix:SHA-256:central-mirror-sha256
             32,51 real        37,18 user         4,57 sys
      digest-fix:SHA-256:central-mirror-sha1-md5
             33,36 real        37,88 user         4,50 sys
      master:SHA-512,SHA-256,SHA-1,MD5:central-direct
            274,93 real        54,14 user         7,38 sys
      master:SHA-512,SHA-256:central-direct
            218,85 real        48,71 user         6,61 sys
      master:SHA-1,MD5:central-direct
            158,51 real        42,59 user         6,05 sys
      master:SHA-512:central-direct
            163,33 real        43,27 user         5,95 sys
      master:SHA-256:central-direct
            167,36 real        41,50 user         6,07 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-direct
            247,74 real        54,25 user         7,07 sys
      digest-fix:SHA-512,SHA-256:central-direct
            204,89 real        47,79 user         6,49 sys
      digest-fix:SHA-1,MD5:central-direct
            166,66 real        42,36 user         6,03 sys
      digest-fix:SHA-512:central-direct
            164,31 real        38,98 user         6,10 sys
      digest-fix:SHA-256:central-direct
            170,77 real        44,77 user         5,79 sys
      

      as well as Maven 3.7.0-SNAPSHOT:

      master:SHA-512,SHA-256,SHA-1,MD5:central-direct
            271,06 real        65,54 user         7,67 sys
      master:SHA-512,SHA-256:central-direct
            202,95 real        60,87 user         6,77 sys
      master:SHA-1,MD5:central-direct
            163,64 real        50,00 user         6,85 sys
      master:SHA-512:central-direct
            165,11 real        50,17 user         6,25 sys
      master:SHA-256:central-direct
            163,97 real        52,24 user         5,81 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-direct
            268,27 real        64,90 user         7,73 sys
      digest-fix:SHA-512,SHA-256:central-direct
            211,50 real        61,39 user         6,76 sys
      digest-fix:SHA-1,MD5:central-direct
            165,67 real        52,25 user         6,66 sys
      digest-fix:SHA-512:central-direct
            155,26 real        50,90 user         6,45 sys
      digest-fix:SHA-256:central-direct
            162,91 real        51,20 user         6,31 sys
      master:SHA-512,SHA-256,SHA-1,MD5:central-proxy
             42,47 real        63,41 user         6,46 sys
      master:SHA-512,SHA-256:central-proxy
             36,54 real        53,11 user         5,65 sys
      master:SHA-1,MD5:central-proxy
             29,60 real        42,90 user         5,18 sys
      master:SHA-512:central-proxy
             29,50 real        42,07 user         5,21 sys
      master:SHA-256:central-proxy
             30,04 real        43,57 user         5,34 sys
      digest-fix:SHA-512,SHA-256,SHA-1,MD5:central-proxy
             42,91 real        62,70 user         6,92 sys
      digest-fix:SHA-512,SHA-256:central-proxy
             36,36 real        54,39 user         5,54 sys
      digest-fix:SHA-1,MD5:central-proxy
             29,80 real        44,50 user         5,56 sys
      digest-fix:SHA-512:central-proxy
             29,53 real        42,57 user         5,23 sys
      digest-fix:SHA-256:central-proxy
             30,17 real        43,14 user         5,18 sys
      

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: