/multi-thread-grep

from gun grep

Primary LanguageCGNU General Public License v3.0GPL-3.0

/***************************************************************************************************/
cmd :   grep  --color=auto test --binary-files=without-match  -Hinwr  ./
result: 
   old grep          : 56s
   multi thread grep : 1.6s

CPU Info:
processor	: 7
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 8
model name	: AMD Opteron(tm) Processor 4171 HE
stepping	: 1
microcode	: 0xffffffff
cpu MHz		: 2094.702
cache size	: 512 KB
physical id	: 1
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw vmmcall
bugs		: tlb_mmatch apic_c1e fxsave_leak
bogomips	: 4247.68
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 42 bits physical, 48 bits virtual
power management:
/***************************************************************************************************/









  Copyright (C) 1992, 1997-2002, 2004-2016 Free Software Foundation, Inc.

  Copying and distribution of this file, with or without modification,
  are permitted in any medium without royalty provided the copyright
  notice and this notice are preserved.

This is GNU grep, the "fastest grep in the west" (we hope).  All
bugs reported in previous releases have been fixed.  Many exciting new
bugs have probably been introduced in this revision.

GNU grep is provided "as is" with no warranty.  The exact terms
under which you may use and (re)distribute this program are detailed
in the GNU General Public License, in the file COPYING.

GNU grep is based on a fast lazy-state deterministic matcher (about
twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
search for a fixed string that eliminates impossible text from being
considered by the full regexp matcher without necessarily having to
look at every character.  The result is typically many times faster
than Unix grep or egrep.  (Regular expressions containing backreferencing
will run more slowly, however.)

See the files AUTHORS and THANKS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.
If there is no INSTALL file, this copy of the source code is intended
for expert hackers; please see the file README-hacking.

See the file NEWS for a description of major changes in this release.

See the file TODO for ideas on how you could help us improve grep.

See the file README-alpha for information on grep development and the CVS
  repository.

Send bug reports to bug-grep@gnu.org.

KNOWN BUGS:

Several tests in fmbtest.sh and foad1.sh fail under the cs_CZ.UTF-8 locale
and have been disabled.

The combination of -o and -i options is broken and the known failing cases
are disabled in foad1.sh

The option -i does not work properly in some multibyte locales such as
tr_TR.UTF-8 where the upper case and lower case forms of a character are not
necessarily of the same byte length.

A list of outstanding and resolved bugs can be found at:

        http://debbugs.gnu.org/cgi/pkgreport.cgi?package=grep

You can also browse the bug-grep mailing list archive at:

        http://lists.gnu.org/archive/html/bug-grep/

For any copyright year range specified as YYYY-ZZZZ in this package
note that the range specifies every single year in that closed interval.