feat(rust): add fory rust benchmark - #2583
Merged
Merged
Conversation
chaokunyang
force-pushed
the
add_rust_benchmark
branch
from
September 7, 2025 03:51
4ce9ec5 to
d34c628
Compare
chaokunyang
force-pushed
the
add_rust_benchmark
branch
from
September 7, 2025 04:21
d332de9 to
68911eb
Compare
Collaborator
Author
|
cc @urlyy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
add fory rust benchmark
What does this PR do?
This benchmark report analyzes the performance of the Fury Rust serialization library compared to Protocol Buffers and JSON serialization across multiple data types and sizes. The benchmark was conducted using Criterion.rs with 100 samples per test, and shows significant performance improvements across all serialization formats.
Related issues
Does this PR introduce any user-facing change?
Benchmark
Benchmark Configuration
Data Types Tested
1. Simple Struct Performance
Key Insights:
2. Person Data Performance
Key Insights:
3. Company Data Performance
Key Insights:
4. ECommerce Data Performance
Key Insights:
5. System Data Performance
Key Insights:
Performance Trends Analysis
Serialization Performance
Deserialization Performance
Data Size Impact
Statistical Confidence
All benchmark results show statistical significance with p < 0.05, indicating reliable performance measurements. The benchmarks used 100 samples each, providing robust statistical confidence.
Key Recommendations
Conclusion
The Fury Rust serialization library demonstrates exceptional performance for complex, real-world data structures, with serialization speedups of 4-9x over alternatives. While simple data structures may benefit from protobuf's optimizations, Fury's performance advantage increases dramatically with data complexity, making it an excellent choice for enterprise applications with rich data models.
The consistent performance improvements across all data types and sizes, combined with competitive deserialization performance, position Fury as a compelling choice for high-performance Rust applications requiring efficient data serialization.
Why Fury is Slower for Simple Struct
Root Cause Analysis
Fury's slower performance for simple structs is due to its rich metadata system designed for complex, evolving schemas:
1. Metadata Overhead