-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpbench.json
72 lines (72 loc) · 2.32 KB
/
phpbench.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"$schema":"./vendor/phpbench/phpbench/phpbench.schema.json",
"runner.bootstrap": "vendor/autoload.php",
"runner.file_pattern": "*Bench.php",
"report.generators": {
"diff": {
"generator": "component",
"partition": ["benchmark_name"],
"components": [
{
"component": "section",
"title": "{{ first(frame['benchmark_name']) }}",
"components": [
{
"component": "table_aggregate",
"partition": ["subject_name", "variant_name"],
"groups":
{
"time (kde mode)":
{
"cols": ["time", "time-diff"]
},
"memory":
{
"cols": ["memory", "memory-diff"]
}
},
"row":
{
"subject": "first(partition['subject_name']) ~ ' (' ~ first(partition['variant_name']) ~ ')'",
"time":
{
"type": "expand",
"partition": "suite_tag",
"cols":
{
"Tag: {{ key }}": "mode(partition['result_time_avg']) as time ~ ' (' ~ rstdev(partition['result_time_avg']) ~ ')'"
}
},
"time-diff":
{
"type": "expand",
"partition": "subject_name",
"cols":
{
"time-diff": "percent_diff(coalesce(partition['result_time_avg']?[1], 0), coalesce(partition['result_time_avg']?[0], 0))"
}
},
"memory":
{
"type": "expand",
"partition": "suite_tag",
"cols":
{
"Tag: {{ key }} ": "mode(partition['result_mem_peak']) as memory"
}
},
"memory-diff":
{
"type": "expand",
"partition": "subject_name",
"cols":
{
"memory-diff": "percent_diff(coalesce(partition['result_mem_peak']?[1], 0), coalesce(partition['result_mem_peak']?[0], 0))"
}
}
}
}]
}]
}
}
}