From nobody Thu Jun 8 13:40:42 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcQMZ6WvCz4bh7B for ; Thu, 8 Jun 2023 13:40:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcQMZ42rLz4JSY for ; Thu, 8 Jun 2023 13:40:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686231642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SvSuDNIdHnHag7pXOzdb4ejKpbLkN3plkL72M7blkfo=; b=UTurUgsPgEOc4Oh74hetHJ3xUvEPj5MGtPk2/CrgPnkKVm/d9X7f4TyIlrrNogz0oKQrWV 2tZiO4s5hJmtKgUuxYHNrBl49vnnRogJKdj9XFoloTBzvrqiCyW06GFLJwvERTiN/hl+JV t4ycrQ88lrJ27KvCupOnyrZkLbNd0TA/69L3b94DA3C7cTqD9PviiGemxl1Sa/15/y9tvq sbZRnJq+9QUy71FLc5Jv0PjkzYu+0/YpPk0yx3ADC66v+eHU715nnqnoaGhJhePnMrCMQs 9nDpd8Te3oO5A/dAblvE26kE4r5Ar1JkRTwaPebi2YrjaF7Gs8h+FBUDiT2iVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686231642; a=rsa-sha256; cv=none; b=fAEqBFyGKaEOkXbqm5KjkkA5/X0HQz3zXUAgrKaKxbTlQw7G3eRUA5BioxucEQLXH6onBL LdUGY/rxaxphwn+A5U7GMbn/kqfFi/ttfkvGzPGfAFWZ6GUcfgy1u/jedGM2jnB08mm+fb Y6fHSAvq40TSJuorAsWT7LIm0R8bJFr7lQxfIK5jrtHQAyr3zl5sTJo60Fcdbpv8+Fi66d MqTz5u9EJlqSqWEUubT4ihpk8lHduZ4yfEwdb8GLikoTf7Y6tHi05UgDYb9Uk228l0Xl7n WuvN0o+9YNbZQb2ni3LmbY9l0GsNWmUrGoyXxtRtyrrwe6CCyIdGfBB05y9TCg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QcQMZ374czwBw for ; Thu, 8 Jun 2023 13:40:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 358Deg3Z077721 for ; Thu, 8 Jun 2023 13:40:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 358DegOd077720 for bugs@FreeBSD.org; Thu, 8 Jun 2023 13:40:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271905] Aparent performance problem with basic and extended regular expressions Date: Thu, 08 Jun 2023 13:40:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marius@isgate.is X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271905 Bug ID: 271905 Summary: Aparent performance problem with basic and extended regular expressions Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: marius@isgate.is There seem to be a regression in version 13 of FreeBSD affecting both basic and extended regular expression processing. Illustration of problem (grep): $ uname -a=20 FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC $ time grep -E '(wordorphrase|differentword)' 150MB-file >/dev/null real 0m54.565s user 0m54.372s sys 0m0.173s should not take almost a minute to search 150MB file!=20 Even worse is=20 $ time grep -i 'differentword' 150MB-file >/dev/null real 0m28.060s user 0m28.016s sys 0m0.038s almost 30 sek to do a case-insensitive search on a 150MB text file - compared to: $ time grep 'differentword' 150MB-file >/dev/null real 0m0.210s user 0m0.178s sys 0m0.032s which runs at normal speed. This all was fine on 12.3 and 12.4 - For example: $ uname -a FreeBSD 12.3-RELEASE-p11 GENERIC $ time grep -E '(wordorphrase|differentword)' 150MB-file >/dev/null real 0m0.290s user 0m0.219s sys 0m0.071s --=20 You are receiving this mail because: You are the assignee for the bug.=