1[package] 2publish = false 3name = "regex-benchmark" 4version = "0.1.0" 5authors = ["The Rust Project Developers"] 6license = "MIT OR Apache-2.0" 7repository = "https://github.com/rust-lang/regex" 8documentation = "https://docs.rs/regex" 9homepage = "https://github.com/rust-lang/regex" 10description = "Regex benchmarks for Rust's and other engines." 11build = "build.rs" 12workspace = ".." 13edition = "2018" 14 15[dependencies] 16docopt = "1" 17lazy_static = "1" 18libc = "0.2" 19onig = { version = "3", optional = true } 20libpcre-sys = { version = "0.2", optional = true } 21memmap = "0.6.2" 22regex = { version = "1", path = ".." } 23regex-syntax = { version = "0.6", path = "../regex-syntax" } 24serde = { version = "1", features = ["derive"] } 25cfg-if = "0.1" 26 27[build-dependencies] 28cc = "1" 29pkg-config = "0.3.9" 30 31[[bin]] 32name = "regex-run-one" 33path = "src/main.rs" 34bench = false 35 36# Use features to conditionally compile benchmarked regexes, since not every 37# regex works on every engine. Additionally, it is useful to be able to build 38# each benchmark individually, so that not all dependencies are required to 39# run only one benchmark. 40# 41# Note that when running benchmarks, only ONE feature should be set at a time. 42# Doing anything else will probably result in weird "duplicate definition" 43# compiler errors. 44# 45# Tip: use the `bench/run` script (in this directory) to run benchmarks. 46[features] 47re-pcre1 = ["libpcre-sys"] 48re-pcre2 = [] 49re-onig = ["onig"] 50re-re2 = [] 51re-rust = [] 52re-rust-bytes = [] 53re-tcl = [] 54 55[[bench]] 56name = "bench" 57path = "src/bench.rs" 58test = false 59bench = true 60