We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3072f07 commit 78f0deeCopy full SHA for 78f0dee
README.md
@@ -34,6 +34,13 @@ cargo install cargo-criterion --locked
34
HAYSTACK_PATH=README.md cargo criterion --jobs 8
35
```
36
37
+On Windows using PowerShell you'd need to set the environment variable differently:
38
+
39
+```powershell
40
+$env:HAYSTACK_PATH="README.md"
41
+cargo criterion --jobs 8
42
+```
43
44
As part of the benchmark, the input "haystack" file is whitespace-tokenized into an array of strings.
45
In every benchmark iteration, a new "needle" is taken from that array of tokens.
46
All inclusions of that token in the haystack are counted, and the throughput is calculated.
0 commit comments