Skip to content

daac-tools/stringmatch-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stringmatch-bench

Tools

This repository provides benchmark tools to compare the performance of data structures for string matching.

Rust

Directory rust provides benchmarks for the following libraries:

After moving your current directory to rust, you can measure the memory usage of data structures built from your dataset with the following command:

$ cargo run --release --bin measure -- -k ../data/unidic/unidic

For base64-encoded datasets such as the tiktoken vocabularies, add the -b option:

$ cargo run --release --bin measure -- -k ../data/tiktoken/o200k_base.base64 -b

You can also measure build and search times with criterion.rs:

$ cargo bench

Python

Directory python provides benchmarks for the following libraries:

After moving your current directory to python, you can measure search times with pytest-benchmark by running nox:

$ nox

License

Licensed under either of

at your option.

The datasets contained in data are copied from third-party repositories. Follow the license terms of each dataset.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages