From cbeb197171022fe41ebe75decb565f7db8bbcb28 Mon Sep 17 00:00:00 2001 From: yuma14 Date: Mon, 13 May 2024 23:01:52 +0900 Subject: [PATCH] refactor: rename benchmark-lib to benchmark --- .github/workflows/ci.yml | 8 ++++---- Cargo.toml | 2 +- README.md | 2 +- {benchmark-lib => benchmark}/Cargo.toml | 2 +- {benchmark-lib => benchmark}/benches/bench.rs | 0 {benchmark-lib => benchmark}/src/bevy_ecs_bench.rs | 0 .../src/game_objects_hash_bench.rs | 0 .../src/game_objects_vec_bench.rs | 0 {benchmark-lib => benchmark}/src/lib.rs | 0 {benchmark-lib => benchmark}/src/specs_bench.rs | 0 .../src/xanadu_exclusive_bench.rs | 0 {benchmark-lib => benchmark}/src/xanadu_refcell_bench.rs | 0 doc/benchmark.md | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {benchmark-lib => benchmark}/Cargo.toml (90%) rename {benchmark-lib => benchmark}/benches/bench.rs (100%) rename {benchmark-lib => benchmark}/src/bevy_ecs_bench.rs (100%) rename {benchmark-lib => benchmark}/src/game_objects_hash_bench.rs (100%) rename {benchmark-lib => benchmark}/src/game_objects_vec_bench.rs (100%) rename {benchmark-lib => benchmark}/src/lib.rs (100%) rename {benchmark-lib => benchmark}/src/specs_bench.rs (100%) rename {benchmark-lib => benchmark}/src/xanadu_exclusive_bench.rs (100%) rename {benchmark-lib => benchmark}/src/xanadu_refcell_bench.rs (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ee25b8..0c5cf67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,10 @@ jobs: - run: firefox --version - uses: browser-actions/setup-chrome@v1 - run: chrome --version - - run: wasm-pack test --headless --firefox -- --workspace --features test_in_browser --features benchmark-lib/test_in_browser --verbose - - run: wasm-pack test --headless --firefox --release -- --workspace --features test_in_browser --features benchmark-lib/test_in_browser --verbose - - run: wasm-pack test --headless --chrome -- --workspace --features test_in_browser --features benchmark-lib/test_in_browser --verbose - - run: wasm-pack test --headless --chrome --release -- --workspace --features test_in_browser --features benchmark-lib/test_in_browser --verbose + - run: wasm-pack test --headless --firefox -- --workspace --features test_in_browser --features benchmark/test_in_browser --verbose + - run: wasm-pack test --headless --firefox --release -- --workspace --features test_in_browser --features benchmark/test_in_browser --verbose + - run: wasm-pack test --headless --chrome -- --workspace --features test_in_browser --features benchmark/test_in_browser --verbose + - run: wasm-pack test --headless --chrome --release -- --workspace --features test_in_browser --features benchmark/test_in_browser --verbose miri: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 6c60140..efcbc91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ wasm-bindgen-test = "0.3.42" [workspace] members = [ - "benchmark-lib" + "benchmark" ] [workspace.package] diff --git a/README.md b/README.md index 84645e8..8736929 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,6 @@ wasm-pack test --node -- --workspace ``` ```sh -wasm-pack test --firefox --headless -- --workspace --features test_in_browser --features benchmark-lib/test_in_browser +wasm-pack test --firefox --headless -- --workspace --features test_in_browser --features benchmark/test_in_browser ``` diff --git a/benchmark-lib/Cargo.toml b/benchmark/Cargo.toml similarity index 90% rename from benchmark-lib/Cargo.toml rename to benchmark/Cargo.toml index ce2fc07..ca9d693 100644 --- a/benchmark-lib/Cargo.toml +++ b/benchmark/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "benchmark-lib" +name = "benchmark" version = "0.1.0" license.workspace = true edition.workspace = true diff --git a/benchmark-lib/benches/bench.rs b/benchmark/benches/bench.rs similarity index 100% rename from benchmark-lib/benches/bench.rs rename to benchmark/benches/bench.rs diff --git a/benchmark-lib/src/bevy_ecs_bench.rs b/benchmark/src/bevy_ecs_bench.rs similarity index 100% rename from benchmark-lib/src/bevy_ecs_bench.rs rename to benchmark/src/bevy_ecs_bench.rs diff --git a/benchmark-lib/src/game_objects_hash_bench.rs b/benchmark/src/game_objects_hash_bench.rs similarity index 100% rename from benchmark-lib/src/game_objects_hash_bench.rs rename to benchmark/src/game_objects_hash_bench.rs diff --git a/benchmark-lib/src/game_objects_vec_bench.rs b/benchmark/src/game_objects_vec_bench.rs similarity index 100% rename from benchmark-lib/src/game_objects_vec_bench.rs rename to benchmark/src/game_objects_vec_bench.rs diff --git a/benchmark-lib/src/lib.rs b/benchmark/src/lib.rs similarity index 100% rename from benchmark-lib/src/lib.rs rename to benchmark/src/lib.rs diff --git a/benchmark-lib/src/specs_bench.rs b/benchmark/src/specs_bench.rs similarity index 100% rename from benchmark-lib/src/specs_bench.rs rename to benchmark/src/specs_bench.rs diff --git a/benchmark-lib/src/xanadu_exclusive_bench.rs b/benchmark/src/xanadu_exclusive_bench.rs similarity index 100% rename from benchmark-lib/src/xanadu_exclusive_bench.rs rename to benchmark/src/xanadu_exclusive_bench.rs diff --git a/benchmark-lib/src/xanadu_refcell_bench.rs b/benchmark/src/xanadu_refcell_bench.rs similarity index 100% rename from benchmark-lib/src/xanadu_refcell_bench.rs rename to benchmark/src/xanadu_refcell_bench.rs diff --git a/doc/benchmark.md b/doc/benchmark.md index 20f3e21..60942b9 100644 --- a/doc/benchmark.md +++ b/doc/benchmark.md @@ -20,4 +20,4 @@ cargo bench --workspace - CPU: Intel Core i7-12700 - RAM: Samsung DDR4 3200MHz 16GB x 2 -code: [bench.rs](../benchmark-lib/benches/bench.rs) +code: [bench.rs](../benchmark/benches/bench.rs)