• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3if [ $# != 1 ]; then
4  echo "Usage: $(basename "$0") <critcmp-benchmark-export-json>" >&2
5  exit 1
6fi
7benchdata="$1"
8
9echo
10echo '# memchr benchmarks'
11echo
12echo '```'
13critcmp "$benchdata" -g 'memchr1/[^/]+/(.*)'
14echo '```'
15echo
16echo '# memmem benchmarks'
17echo
18echo '```'
19# We don't show all comparisons. For now, we leave out bstr and krate_nopre,
20# largely because they aren't as interesting. We also leave out regex since
21# regex now uses this crate for single literal prefilter search.
22critcmp \
23  "$benchdata" \
24  -g 'memmem/[^/]+/(.*)' \
25  -f '/(krate|twoway|stud|sliceslice)/'
26echo '```'
27