ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Huge regression in "grep -i" performance
@ 2011-08-15  3:36 Ivan Adzhubey
  2011-08-15 19:25 ` Dmitry V. Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Adzhubey @ 2011-08-15  3:36 UTC (permalink / raw)
  To: sisyphus

Доброго времени суток всем!

Похоже, у нас в Сизифе регрессия:

https://bugzilla.redhat.com/show_bug.cgi?id=194471

Причем, в отличие от описанного в федоровской багзилле, у нас и fgrep точно 
так же тормозит под UTF. Так что я не уверен, что это именно этот баг, просто 
точнее ничего не нашел.

$ time grep -i ^1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.90user 0.00system 0:00.91elapsed 99%CPU (0avgtext+0avgdata 3824maxresident)k
0inputs+0outputs (0major+297minor)pagefaults 0swaps

$ time fgrep -i 1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.93user 0.00system 0:00.93elapsed 99%CPU (0avgtext+0avgdata 3216maxresident)k
0inputs+0outputs (0major+250minor)pagefaults 0swaps

$ LANG=C time grep -i ^1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.06user 0.00system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 3136maxresident)k
0inputs+0outputs (0major+254minor)pagefaults 0swaps

$ wc -l pdb.fragm
344603 pdb.fragm

$ echo $LANG
en_US.UTF-8

$ grep --version
grep (GNU grep) 2.9
Copyright (C) 2011 Free Software Foundation, Inc.

--Иван

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-16  1:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-15  3:36 [sisyphus] Huge regression in "grep -i" performance Ivan Adzhubey
2011-08-15 19:25 ` Dmitry V. Levin
2011-08-15 20:52   ` Dmitry V. Levin
2011-08-16  1:09     ` Ivan Adzhubey

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git