Debian Codegraph @

.cargo/vendor/regex/record/compile-test/README.md

raw
1 This directory contains the results of compilation tests. Specifically,
2 the results are from testing both the from scratch compilation time and
3 relative binary size increases of various features for both the `regex` and
4 `regex-automata` crates.
5
6 Here's an example of how to run these tests for just the `regex` crate. You'll
7 need the `regex-cli` command installed, which can be found in the `regex-cli`
8 directory in the root of this repository.
9
10 This must be run in the root of a checkout of this repository.
11
12 ```
13 $ mkdir /tmp/regex-compile-test
14 $ regex-cli compile-test ./ /tmp/regex-compile-test | tee record/compile-test/2023-04-19_1.7.3.csv
15 ```
16
17 You can then look at the results using a tool like [`xsv`][xsv]:
18
19 ```
20 $ xsv table record/compile-test/2023-04-19_1.7.3.csv
21 ```
22
23 Note that the relative binary size is computed by building a "baseline" hello
24 world program, and then subtracting that from the size of a binary that uses
25 the regex crate.
26
27 [xsv]: https://github.com/BurntSushi/xsv