![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/timsexperiments/json-protobuf-benchmarking
This project benchmarks the performance of JSON and Protobuf serialization and deserialization. It measures the time taken to serialize and deserialize a predefined message structure repeatedly using both JSON and Protobuf, and reports the statistics.
Serialization is a crucial part of many applications, especially those involving data transfer between different systems or components. JSON and Protobuf are two popular serialization formats, each with its own advantages:
This project aims to provide a simplified solution to compare the performance of these two serialization formats in a straightforward manner.
protoc
)Clone the repository:
git clone https://github.com/timsexperiments/json-protobuf-benchmarking.git
cd json-protobuf-benchmarking
Install dependencies:
go mod download
Install the go protoc generator:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
Compile the proto:
protoc --proto_path=proto --go_out=internal/pb --go_opt=paths=source_relative proto/person.proto
Clone the repository:
git clone https://github.com/timsexperiments/json-protobuf-benchmarking.git
cd json-protobuf-benchmarking
Build the project:
go build -o bin/json-pb-benchmark cmd/main.go
Run the executable:
./bin/json-pb-benchmark -p 4 4000000
-p
: Number of parallel workers (default is the number of CPU cores).4000000
: The number of iterations for the benchmark (default is 1,000,000).Build the Docker image:
docker build -t json-pb-benchmark .
Run the benchmark:
docker run --rm json-pb-benchmark -p 4 1000000
The benchmark will output statistics for both JSON and Protobuf serialization and deserialization, including the total operations, total execution time, average serialization and deserialization times, and total bytes processed.
Example output:
============== START JSON INFO ================
Total Operations: 1000000
Total Execution Time: 2m34s
Serialization Time: ...
Average Serialization Time: ...
Total Serialization Bytes: ...
Deserialization Time: ...
Average Deserialization Time: ...
============== END JSON INFO ================
============== START PB INFO ================
Total Operations: 1000000
Total Execution Time: 1m45s
Serialization Time: ...
Average Serialization Time: ...
Total Serialization Bytes: ...
Deserialization Time: ...
Average Deserialization Time: ...
============== END PB INFO ================
Completed in 4m19s
Feel free to adjust the README content as needed.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.