Ignore:
Timestamp:
Feb 22, 2014, 5:09:56 PM (5 years ago)
Author:
cameron
Message:

Replace xquote with HexBytes?; various cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/Working/re/sse2.tex

    r3617 r3637  
    4141Email           & \verb`([^ @]+)@([^ @]+)`              \\ \hline
    4242URIOrEmail      & \verb`([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)?|([^ @]+)@([^ @]+)`           \\ \hline     
    43 Xquote          & \verb`["']|"|'|&#0*3[49];|&#x0*2[27];`              \\ \hline
     43HexBytes                & \verb`(^|[ ])0x([a-fA-F0-9][a-fA-F0-9])+[.:,?!]?($|[ ])`              \\ \hline
    4444\end{tabular}
    4545}
     
    5151
    5252\paragraph{Test expressions.}
    53 Each grep implementation is tested with the five regular expressions in Table \ref{RegularExpressions}.  Xquote matches any of the representations of a
    54 single or double quote character occuring in XML content.  It is run on roads-2.gml, a 11,861,751 byte gml data file. The other four expressions are taken from Benchmark of Regex Libraries [http://lh3lh3.users.sourceforge.net/reb.shtml] and are all run on a concatenated version of the linux howto which is 39,422,105 bytes in length.  @ simply matches the "@" character.  It demonstrates the overhead involved in matching the simplest regular expression.  Date, Email, and URIOrEmail provide examples of common uses for regular expression matching.
     53Each grep implementation is tested with the five regular expressions
     54in Table \ref{RegularExpressions}.  @ simply matches the "@" character.  It demonstrates the overhead involved in matching the simplest regular expression.  Date, Email, and URIOrEmail provide examples of common uses for regular expression matching.
     55HexBytes matches delimited. They are taken from Benchmark of Regex
     56Libraries [http://lh3lh3.users.sourceforge.net/reb.shtml].
     57HexBytes matches delimited byte strings in hexadecimal notation,
     58enforcing the constraint that the number of hex digits is even.   This
     59expression shows performance of a repetition operator implemented with
     60a while loop.
     61All tests are run on a concatenated version of the linux howto which is 39,422,105 bytes in length. 
    5562
    5663
     
    6269xtick=data,
    6370ylabel=Cycles per Byte,
    64 xticklabels={@,Date,Email,URIorEmail,xquote},
     71xticklabels={@,Date,Email,URIorEmail,HexBytes},
    6572tick label style={font=\tiny},
    6673enlarge x limits=0.15,
     
    106113xtick=data,
    107114ylabel=Instructions per Byte,
    108 xticklabels={@,Date,Email,URIorEmail,xquote},
     115xticklabels={@,Date,Email,URIorEmail,HexBytes},
    109116tick label style={font=\tiny},
    110117enlarge x limits=0.15,
     
    131138\end{figure}
    132139
    133 Figure \ref{fig:SSEInstructionsPerByte} shows instructions per byte.  The relative values mirror cycles per byte.  The bitstreams implementation continues to show consistent performance.  This is especially noticeable in Figure \ref{fig:SSEInstructionsPerCycle}, which shows instructions per cycle.  The bitstreams implementation has almost no variation in the instructions per cycle.  Both grep and nrGrep have considerably more variation based on the input regular expression.
     140Figure \ref{fig:SSEInstructionsPerByte} shows instructions per byte.
     141The relative values mirror cycles per byte.  The bitstreams
     142implementation continues to show consistent performance.  This is
     143especially noticeable in Figure \ref{fig:SSEInstructionsPerCycle},
     144which shows instructions per cycle.  The bitstreams implementation has
     145almost no variation in the instructions per cycle.  Both grep and
     146nrGrep have considerably more variation based on the input regular
     147expression.   
    134148 
    135149
     
    140154xtick=data,
    141155ylabel=Instructions per Cycle,
    142 xticklabels={@,Date,Email,URIorEmail,xquote},
     156xticklabels={@,Date,Email,URIorEmail,HexBytes},
    143157tick label style={font=\tiny},
    144158enlarge x limits=0.15,
     
    170184xtick=data,
    171185ylabel=Branch Misses per Instruction,
    172 xticklabels={@,Date,Email,URIorEmail,xquote},
     186xticklabels={@,Date,Email,URIorEmail,HexBytes},
    173187tick label style={font=\tiny},
    174188enlarge x limits=0.15,
Note: See TracChangeset for help on using the changeset viewer.