Skip to content

Commit 5e8cbcf

Browse files
committed
Docs: Run with uv
1 parent 453acbf commit 5e8cbcf

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

bench_find.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
- STRINGWARS_TOKENS: Tokenization mode ('lines', 'words', 'file')
1717
1818
Examples:
19-
python bench_find.py --dataset README.md --tokens lines
20-
python bench_find.py --dataset xlsum.csv --tokens words -k "str.find"
21-
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines python bench_find.py
19+
uv run bench_find.py --dataset README.md --tokens lines
20+
uv run bench_find.py --dataset xlsum.csv --tokens words -k "str.find"
21+
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines uv run bench_find.py
2222
2323
Timing via time.monotonic_ns.; throughput in decimal GB/s. Filter with -k/--filter.
2424
"""

bench_fingerprints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
- STRINGWARS_TOKENS: Tokenization mode ('lines', 'words', 'file')
1919
2020
Examples:
21-
python bench_fingerprints.py --dataset README.md --tokens lines
22-
python bench_fingerprints.py --dataset xlsum.csv --tokens words -k "datasketch"
23-
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines python bench_fingerprints.py
21+
uv run --with stringzillas-cpus bench_fingerprints.py --dataset README.md --tokens lines
22+
uv run --with stringzillas-cpus bench_fingerprints.py --dataset xlsum.csv --tokens words -k "datasketch"
23+
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines uv run --with stringzillas-cpus bench_fingerprints.py
2424
"""
2525

2626
import os

bench_hash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
- STRINGWARS_TOKENS: Tokenization mode ('lines', 'words', 'file')
3131
3232
Examples:
33-
python bench_hash.py --dataset README.md --tokens lines
34-
python bench_hash.py --dataset xlsum.csv --tokens words -k "xxhash"
35-
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines python bench_hash.py
33+
uv run bench_hash.py --dataset README.md --tokens lines
34+
uv run bench_hash.py --dataset xlsum.csv --tokens words -k "xxhash"
35+
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines uv run bench_hash.py
3636
"""
3737

3838
import argparse

bench_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
- Random byte generation: NumPy PCG64, NumPy Philox, and PyCryptodome AES-CTR
1515
1616
Examples:
17-
python bench_memory.py --dataset README.md --tokens lines
18-
python bench_memory.py --dataset README.md --tokens words -k "translate|LUT|AES-CTR|PCG64|Philox"
17+
uv run bench_memory.py --dataset README.md --tokens lines
18+
uv run bench_memory.py --dataset README.md --tokens words -k "translate|LUT|AES-CTR|PCG64|Philox"
1919
"""
2020

2121
from __future__ import annotations

bench_sequence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
- STRINGWARS_TOKENS: Tokenization mode ('lines', 'words', 'file')
1818
1919
Examples:
20-
python bench_sequence.py --dataset README.md --tokens lines
21-
python bench_sequence.py --dataset xlsum.csv --tokens words -k "list.sort"
22-
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines python bench_sequence.py
20+
uv run bench_sequence.py --dataset README.md --tokens lines
21+
uv run bench_sequence.py --dataset xlsum.csv --tokens words -k "list.sort"
22+
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines uv run bench_sequence.py
2323
"""
2424
import os
2525

bench_similarities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
- STRINGWARS_TOKENS: Tokenization mode ('lines', 'words', 'file')
3030
3131
Examples:
32-
python bench_similarities.py --dataset README.md --max-pairs 1000
33-
python bench_similarities.py --dataset xlsum.csv --bio -k "biopython"
34-
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines python bench_similarities.py
32+
uv run --with stringzillas-cpus bench_similarities.py --dataset README.md --max-pairs 1000
33+
uv run --with stringzillas-cpus bench_similarities.py --dataset xlsum.csv --bio -k "biopython"
34+
STRINGWARS_DATASET=data.txt STRINGWARS_TOKENS=lines uv run --with stringzillas-cpus bench_similarities.py
3535
"""
3636

3737
import os

0 commit comments

Comments
 (0)