Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,5 @@ npm/
.cursor

profile.json.gz

fixtures/*afm*.lock
21 changes: 16 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resolver = "2"
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/spanishpear/berry"
version = "0.5.0"
version = "0.5.1-beta0-js.0"

[workspace.dependencies]
berry = { path = "crates/berry-core" }
Expand Down
15 changes: 6 additions & 9 deletions crates/berry-bench-bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ impl FixtureTarget {

fn from_path(path: impl Into<PathBuf>) -> Self {
let path = path.into();
let label = path
.file_name()
.and_then(|name| name.to_str())
.map(std::string::ToString::to_string)
.unwrap_or_else(|| path.display().to_string());
let label = path.file_name().and_then(|name| name.to_str()).map_or_else(
|| path.display().to_string(),
std::string::ToString::to_string,
);
Self {
label,
source: FixtureSource::ArbitraryPath(path),
Expand Down Expand Up @@ -185,10 +184,8 @@ fn benchmark_fixture(
let fixture_str = fixture.as_str();

println!("Benchmarking {} ({file_size} bytes)...", target.label);
if verbose {
if let Some(path) = target.source_path() {
println!(" Source path: {}", path.display());
}
if verbose && let Some(path) = target.source_path() {
println!(" Source path: {}", path.display());
}

// Warmup runs
Expand Down
19 changes: 19 additions & 0 deletions crates/berry-compare-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
authors.workspace = true
edition.workspace = true
license.workspace = true
name = "berry-compare-bin"
repository.workspace = true
version.workspace = true

publish = false

[dependencies]
berry = { workspace = true }
berry-test = { workspace = true }
clap = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

[lints]
workspace = true
Loading
Loading