Skip to content

Commit 78f0dee

Browse files
committed
Docs: Env variable on Windows
Relates to ashvardanian/StringZilla#116
1 parent 3072f07 commit 78f0dee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ cargo install cargo-criterion --locked
3434
HAYSTACK_PATH=README.md cargo criterion --jobs 8
3535
```
3636

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+
3744
As part of the benchmark, the input "haystack" file is whitespace-tokenized into an array of strings.
3845
In every benchmark iteration, a new "needle" is taken from that array of tokens.
3946
All inclusions of that token in the haystack are counted, and the throughput is calculated.

0 commit comments

Comments
 (0)