mirror of
https://github.com/openharmony/third_party_rust_regex.git
synced 2026-07-01 21:33:59 -04:00
doc: update instructions for running benchmarks
This commit is contained in:
+3
-3
@@ -303,13 +303,13 @@ library benchmarks (especially RE2).
|
||||
If you're hacking on one of the matching engines and just want to see
|
||||
benchmarks, then all you need to run is:
|
||||
|
||||
$ ./bench/run rust
|
||||
$ (cd bench && ./run rust)
|
||||
|
||||
If you want to compare your results with older benchmarks, then try:
|
||||
|
||||
$ ./bench/run rust | tee old
|
||||
$ (cd bench && ./run rust | tee old)
|
||||
$ ... make it faster
|
||||
$ ./bench/run rust | tee new
|
||||
$ (cd bench && ./run rust | tee new)
|
||||
$ cargo benchcmp old new --improvements
|
||||
|
||||
The `cargo-benchcmp` utility is available here:
|
||||
|
||||
Reference in New Issue
Block a user