This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to tag v0.13.2-rc1 in repository https://gitbox.apache.org/repos/asf/fory.git
commit b03ee1abf97b05c0b0551e3d9077d3ec25c1318b Author: Shawn Yang <[email protected]> AuthorDate: Wed Nov 5 11:48:50 2025 +0800 chore: move benchmarks to separate dir to speed up ci build (#2894) ## Why? <!-- Describe the purpose of this PR. --> ## What does this PR do? move benchmarks to separate dir to speed up rust ci build, we don't need to run it in ci. ## Related issues #2889 ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fory/issues/new/choose) describing the need to do so and update the document if necessary. Delete section if not applicable. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark <!-- When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here. Delete section if not applicable. --> --- {integration_tests => benchmarks}/cpython_benchmark/README.md | 0 .../cpython_benchmark/fory_benchmark.py | 0 {rust/benches => benchmarks/rust_benchmarks}/Cargo.toml | 6 +++--- {rust/benches => benchmarks/rust_benchmarks}/README.md | 0 .../rust_benchmarks}/benches/buffer_read_bench.rs | 0 .../rust_benchmarks}/benches/buffer_write_bench.rs | 0 .../rust_benchmarks}/benches/serialization_bench.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/benchmark_report.py | 0 {rust/benches => benchmarks/rust_benchmarks}/build.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/proto/complex.proto | 0 {rust/benches => benchmarks/rust_benchmarks}/proto/medium.proto | 0 {rust/benches => benchmarks/rust_benchmarks}/proto/realworld.proto | 0 {rust/benches => benchmarks/rust_benchmarks}/proto/simple.proto | 0 {rust/benches => benchmarks/rust_benchmarks}/src/lib.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/main.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/models/complex.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/models/medium.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/models/mod.rs | 0 .../benches => benchmarks/rust_benchmarks}/src/models/realworld.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/models/simple.rs | 0 .../benches => benchmarks/rust_benchmarks}/src/serializers/fory.rs | 0 .../benches => benchmarks/rust_benchmarks}/src/serializers/json.rs | 0 {rust/benches => benchmarks/rust_benchmarks}/src/serializers/mod.rs | 0 .../rust_benchmarks}/src/serializers/protobuf.rs | 0 rust/Cargo.toml | 1 - 25 files changed, 3 insertions(+), 4 deletions(-) diff --git a/integration_tests/cpython_benchmark/README.md b/benchmarks/cpython_benchmark/README.md similarity index 100% rename from integration_tests/cpython_benchmark/README.md rename to benchmarks/cpython_benchmark/README.md diff --git a/integration_tests/cpython_benchmark/fory_benchmark.py b/benchmarks/cpython_benchmark/fory_benchmark.py similarity index 100% rename from integration_tests/cpython_benchmark/fory_benchmark.py rename to benchmarks/cpython_benchmark/fory_benchmark.py diff --git a/rust/benches/Cargo.toml b/benchmarks/rust_benchmarks/Cargo.toml similarity index 92% rename from rust/benches/Cargo.toml rename to benchmarks/rust_benchmarks/Cargo.toml index cc6b203c8..675085ad6 100644 --- a/rust/benches/Cargo.toml +++ b/benchmarks/rust_benchmarks/Cargo.toml @@ -40,9 +40,9 @@ path = "benches/buffer_read_bench.rs" harness = false [dependencies] -fory = { path = "../fory" } -fory-core = { path = "../fory-core" } -fory-derive = { path = "../fory-derive" } +fory = { path = "../../rust/fory" } +fory-core = { path = "../../rust/fory-core" } +fory-derive = { path = "../../rust/fory-derive" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" chrono = { version = "0.4", features = ["serde"] } diff --git a/rust/benches/README.md b/benchmarks/rust_benchmarks/README.md similarity index 100% rename from rust/benches/README.md rename to benchmarks/rust_benchmarks/README.md diff --git a/rust/benches/benches/buffer_read_bench.rs b/benchmarks/rust_benchmarks/benches/buffer_read_bench.rs similarity index 100% rename from rust/benches/benches/buffer_read_bench.rs rename to benchmarks/rust_benchmarks/benches/buffer_read_bench.rs diff --git a/rust/benches/benches/buffer_write_bench.rs b/benchmarks/rust_benchmarks/benches/buffer_write_bench.rs similarity index 100% rename from rust/benches/benches/buffer_write_bench.rs rename to benchmarks/rust_benchmarks/benches/buffer_write_bench.rs diff --git a/rust/benches/benches/serialization_bench.rs b/benchmarks/rust_benchmarks/benches/serialization_bench.rs similarity index 100% rename from rust/benches/benches/serialization_bench.rs rename to benchmarks/rust_benchmarks/benches/serialization_bench.rs diff --git a/rust/benches/benchmark_report.py b/benchmarks/rust_benchmarks/benchmark_report.py similarity index 100% rename from rust/benches/benchmark_report.py rename to benchmarks/rust_benchmarks/benchmark_report.py diff --git a/rust/benches/build.rs b/benchmarks/rust_benchmarks/build.rs similarity index 100% rename from rust/benches/build.rs rename to benchmarks/rust_benchmarks/build.rs diff --git a/rust/benches/proto/complex.proto b/benchmarks/rust_benchmarks/proto/complex.proto similarity index 100% rename from rust/benches/proto/complex.proto rename to benchmarks/rust_benchmarks/proto/complex.proto diff --git a/rust/benches/proto/medium.proto b/benchmarks/rust_benchmarks/proto/medium.proto similarity index 100% rename from rust/benches/proto/medium.proto rename to benchmarks/rust_benchmarks/proto/medium.proto diff --git a/rust/benches/proto/realworld.proto b/benchmarks/rust_benchmarks/proto/realworld.proto similarity index 100% rename from rust/benches/proto/realworld.proto rename to benchmarks/rust_benchmarks/proto/realworld.proto diff --git a/rust/benches/proto/simple.proto b/benchmarks/rust_benchmarks/proto/simple.proto similarity index 100% rename from rust/benches/proto/simple.proto rename to benchmarks/rust_benchmarks/proto/simple.proto diff --git a/rust/benches/src/lib.rs b/benchmarks/rust_benchmarks/src/lib.rs similarity index 100% rename from rust/benches/src/lib.rs rename to benchmarks/rust_benchmarks/src/lib.rs diff --git a/rust/benches/src/main.rs b/benchmarks/rust_benchmarks/src/main.rs similarity index 100% rename from rust/benches/src/main.rs rename to benchmarks/rust_benchmarks/src/main.rs diff --git a/rust/benches/src/models/complex.rs b/benchmarks/rust_benchmarks/src/models/complex.rs similarity index 100% rename from rust/benches/src/models/complex.rs rename to benchmarks/rust_benchmarks/src/models/complex.rs diff --git a/rust/benches/src/models/medium.rs b/benchmarks/rust_benchmarks/src/models/medium.rs similarity index 100% rename from rust/benches/src/models/medium.rs rename to benchmarks/rust_benchmarks/src/models/medium.rs diff --git a/rust/benches/src/models/mod.rs b/benchmarks/rust_benchmarks/src/models/mod.rs similarity index 100% rename from rust/benches/src/models/mod.rs rename to benchmarks/rust_benchmarks/src/models/mod.rs diff --git a/rust/benches/src/models/realworld.rs b/benchmarks/rust_benchmarks/src/models/realworld.rs similarity index 100% rename from rust/benches/src/models/realworld.rs rename to benchmarks/rust_benchmarks/src/models/realworld.rs diff --git a/rust/benches/src/models/simple.rs b/benchmarks/rust_benchmarks/src/models/simple.rs similarity index 100% rename from rust/benches/src/models/simple.rs rename to benchmarks/rust_benchmarks/src/models/simple.rs diff --git a/rust/benches/src/serializers/fory.rs b/benchmarks/rust_benchmarks/src/serializers/fory.rs similarity index 100% rename from rust/benches/src/serializers/fory.rs rename to benchmarks/rust_benchmarks/src/serializers/fory.rs diff --git a/rust/benches/src/serializers/json.rs b/benchmarks/rust_benchmarks/src/serializers/json.rs similarity index 100% rename from rust/benches/src/serializers/json.rs rename to benchmarks/rust_benchmarks/src/serializers/json.rs diff --git a/rust/benches/src/serializers/mod.rs b/benchmarks/rust_benchmarks/src/serializers/mod.rs similarity index 100% rename from rust/benches/src/serializers/mod.rs rename to benchmarks/rust_benchmarks/src/serializers/mod.rs diff --git a/rust/benches/src/serializers/protobuf.rs b/benchmarks/rust_benchmarks/src/serializers/protobuf.rs similarity index 100% rename from rust/benches/src/serializers/protobuf.rs rename to benchmarks/rust_benchmarks/src/serializers/protobuf.rs diff --git a/rust/Cargo.toml b/rust/Cargo.toml index bbf656d11..8a06ba8a5 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -21,7 +21,6 @@ members = [ "fory", "fory-derive", "tests", - "benches" ] exclude = [ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
