Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-13431

JQ1.6 is extremely slower than JQ1.5

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.4
    • rhel-9.0.0
    • jq
    • jq-1.6-16.el9
    • None
    • None
    • rhel-sst-idm-sssd
    • ssg_idm
    • 20
    • 0
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      jq in RHEL8.6+ is much slow compared to jq1.5

      Version-Release number of selected component (if applicable):

      Rhel 8.6
      jq 1.6

      How reproducible:

      Always

      Steps to Reproduce:

      [root@rhel8client ~]# jq --version
      jq-1.6
      [root@rhel8client ~]# time for n in

      {1..100}; do echo '{"test":0}' | jq . >/dev/null; done
      real 0m3.769s
      user 0m3.520s
      sys 0m0.242s

      [root@rhel8client ~]# jq --version
      jq-1.5
      [root@rhel8client ~]#
      [root@rhel8client ~]#
      [root@rhel8client ~]#
      [root@rhel8client ~]# time for n in {1..100}

      ; do echo '

      {"test":0}

      ' | jq . >/dev/null; done

      real 0m0.353s
      user 0m0.255s
      sys 0m0.140s

      Actual results:

      JQ1.6 is much slower than JQ1.5

      Additional info:

      Upstream fixes :
      https://github.com/stedolan/jq/issues/2069
      https://github.com/stedolan/jq/issues/1826

              thalman@redhat.com Tomas Halman
              rhn-support-arajendr Arya Rajendran
              Scott Poore Scott Poore
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: