phpbenchmarks / benchmark-json-serialization-hello-world
Data for JSON serialization of Hello world benchmark on phpbenchmarks.com.
Installs: 310
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-03-12 08:48:25 UTC
README
What is www.phpbenchmarks.com?
You will find lot of benchmarks for PHP frameworks and template engines.
You can compare results between Apache Bench and Siege, PHP 5.6 to 7.3 and versions of your favorites PHP code.
What is this repository?
It's data for JSON serialization hello world benchmark.
You can find how we benchmark it here.
How to use it?
You will need this repository for JSON serialization of "Hello world" benchmark.
You can retrieve data to serialize with PhpBenchmarks\BenchmarkJsonSerializationHelloWorld\BenchmarkService::getDataToSerialize()
.
As serialization don't need to write anything to response body, when we validate your serialization we add a parameter into query string to indicate you need to write serialization result into response body.
Use PhpBenchmarks\BenchmarkJsonSerializationHelloWorld\BenchmarkService::isWriteToResponseBody()
to know if you have to do it or not.