Skip to content

Commit de00953

Browse files
committed
Modifications for Benchmark kit 4.0
1 parent 5caf01d commit de00953

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

.phpbenchmarks/AbstractComponentConfiguration.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ public static function getBenchmarkType(): int
7979
public static function getSourceCodeUrls(): array
8080
{
8181
return [
82-
'serialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_serializer-hello-world/public/index.php'
82+
'jsonSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
83+
'integerSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
84+
'floatSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
85+
'stringSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
86+
'booleanSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
87+
'nullSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
88+
'arraySerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15',
89+
'objectSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.3_json-serialization-small-overload/public/index.php#L15'
8390
];
8491
}
8592
}

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,41 @@
44
<a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
55
</p>
66

7-
## What is www.phpbenchmarks.com ?
7+
## What is www.phpbenchmarks.com?
88

9-
You will find lot of benchmarks for PHP frameworks and template engines.
9+
You will find lot of benchmarks for PHP frameworks, template engines and JSON serializers on [phpbenchmarks.com](http://www.phpbenchmarks.com).
1010

11-
You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3.
11+
Benchmarks results are available from PHP 5.6 to latest version.
1212

13-
## What is this repository ?
13+
Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
1414

15-
It's benchmark common code for PHP benchmarks.
15+
## What is this repository?
1616

17-
Switch branch to select your PHP major version and benchmark you want to see.
17+
It contains PHP installation `only`.
18+
To reuse code between minor versions, features for benchmarks are not coded in this repository
19+
but in [phpbenchmarks/php-common](https://github.com/phpbenchmarks/php-common) repository.
1820

19-
See all PHP benchmarked versions on [phpbenchmarks/php](https://github.com/phpbenchmarks/php).
20-
21-
You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html).
21+
Switch branch to select version and benchmark you want to see.
2222

2323
## Benchmarks
2424

25-
You can find all PHP benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/php.html).
25+
You can find PHP 7.3 benchmarks results on
26+
[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/php/7.3).
27+
28+
See all PHP benchmarked versions on [select version page](http://www.phpbenchmarks.com/en/benchmark/php/version).
29+
30+
## Community
31+
32+
Go to [community page](http://www.phpbenchmarks.com/en/community) to see the Hall of fame, or download the benchmark kit to add your code!
33+
34+
## How version works?
35+
36+
We do not follow semantic version for this repository. Here is an explanation about our versioning system:
37+
38+
`W` PHP major version.
39+
40+
`X` PHP minor version.
41+
42+
`Y` PHP bugfix version.
2643

27-
Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !
44+
`Z` Benchmark type: `6` JSON serialization of Hello world, `7` Small JSON serialization, `8` Big JSON serialization.

0 commit comments

Comments
 (0)