mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-24 21:37:46 +00:00
These are giant dependencies that for some reason pull in winapi(???) and we actually don't need all of their features. Criterion can be replaced with brunch, a minimalist alternative. walkdir is replaced with a single function. system-dep can be replaced with a single line. Eventually I would like to make it a little bit more than one line, but that's all we need for now.
14 lines
326 B
Rust
Executable file
14 lines
326 B
Rust
Executable file
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
use brunch::Bench;
|
|
use physis::index::IndexFile;
|
|
|
|
fn bench_calculate_hash() {
|
|
IndexFile::calculate_hash("exd/root.exl");
|
|
}
|
|
|
|
brunch::benches!(
|
|
Bench::new("hash c alc")
|
|
.run(bench_calculate_hash),
|
|
);
|