-
-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathphpbench.json
More file actions
42 lines (42 loc) · 1.46 KB
/
phpbench.json
File metadata and controls
42 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"$schema": "vendor/phpbench/phpbench/phpbench.schema.json",
"runner.file_pattern": "*Bench.php",
"runner.php_config": {
"memory_limit": -1
},
"runner.annotation_import_use": false,
"runner.path": [
"lib/**/Tests/Benchmark",
"lib/**/Tests/Benchmarks",
"tests/Benchmark"
],
"runner.bootstrap": "vendor/autoload.php",
"core.extensions": [
"PhpBench\\Extensions\\XDebug\\XDebugExtension"
],
"report.generators": {
"github-action-benchmark": {
"cols": [
"name",
"unit",
"value",
"range",
"extra"
],
"expressions": {
"name": "format('%s::%s%s', first(benchmark_name),first(subject_name),if(first(variant_name) != false, format(' (%s)', first(variant_name)), ''))",
"unit": "coalesce(time_unit(first(subject_time_unit), true),'µs')",
"value": "time_convert(mode(result_time_avg), 'us', time_unit(first(subject_time_unit)))",
"range": "format('± %.2f%%', rstdev(result_time_avg))",
"extra": "format('%d iterations, %d revs', first(variant_iterations), first(variant_revs))"
},
"aggregate": [
"suite_tag",
"benchmark_class",
"subject_name",
"variant_index"
],
"generator": "expression"
}
}
}