Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phpbenchmarks/benchmark-json-serialization-hello-world
Dependency for JSON serialization of Hello world benchmark
https://github.com/phpbenchmarks/benchmark-json-serialization-hello-world
benchmark php serializer symfony
Last synced: 8 days ago
JSON representation
Dependency for JSON serialization of Hello world benchmark
- Host: GitHub
- URL: https://github.com/phpbenchmarks/benchmark-json-serialization-hello-world
- Owner: phpbenchmarks
- Created: 2019-05-11T19:25:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T19:47:26.000Z (over 5 years ago)
- Last Synced: 2024-05-06T16:45:18.557Z (6 months ago)
- Topics: benchmark, php, serializer, symfony
- Language: PHP
- Homepage: http://www.phpbenchmarks.com
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](http://www.phpbenchmarks.com/en/documentation/benchmark/json-serialization-hello-world) benchmark.
You can find how we benchmark it [here](http://www.phpbenchmarks.com/en/benchmark-protocol).
## 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.