Bug 2167402

Summary: JQ1.6 is extremely slower than JQ1.5
Product: Red Hat Enterprise Linux 8 Reporter: Arya Rajendran <arajendr>
Component: jqAssignee: Tomas Halman <thalman>
Status: NEW --- QA Contact: sssd-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: spoore
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arya Rajendran 2023-02-06 14:38:38 UTC
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