Skip to content

Commit 4c14420

Browse files
committed
Standardized columns
1 parent 9d553cb commit 4c14420

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"minimum-stability": "dev",
1212
"require": {
13-
"phpbench/phpbench": "~1.0"
13+
"phpbench/phpbench": "~0.3.0"
1414
},
1515
"autoload": {
1616
"psr-4": {

config/report.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<?php
22

3+
$runCols = array('iters', 'params', 'mean_time', 'mean_memory_diff', 'mean_rps', 'variance_time', 'deviation_min');
4+
$subjectCols = array('iters', 'description', 'mean_time', 'mean_memory_diff', 'mean_rps', 'variance_time', 'deviation_min');
5+
36
$config->addReport(array(
47
'title' => 'Inserting Nodes',
58
'description' => 'Insert nodes into the repository as children of a single parent',
69
'name' => 'console_table',
710
'groups' => array('insert'),
811
'aggregate' => 'run',
9-
'cols' => array('iters', 'params', 'mean_time', 'mean_memory_diff', 'mean_rps', 'deviation_min'),
10-
'sort' => 'time',
12+
'cols' => $runCols,
13+
'sort' => array('time'),
1114
));
1215

1316
$config->addReport(array(
@@ -21,8 +24,8 @@
2124
'name' => 'console_table',
2225
'groups' => array('query_single_prop'),
2326
'aggregate' => 'subject',
24-
'cols' => array('iters', 'description', 'variance_time', 'mean_time', 'mean_memory_diff', 'mean_rps', 'deviation_min'),
25-
'sort' => 'time',
27+
'cols' => $subjectCols,
28+
'sort' => array('time'),
2629
));
2730

2831
$config->addReport(array(
@@ -37,7 +40,7 @@
3740
'groups' => array('query_variable_props'),
3841
'aggregate' => 'run',
3942
'subject_meta' => false,
40-
'cols' => array('params', 'iters', 'mean_time', 'variance_time', 'mean_rps', 'deviation_min'),
43+
'cols' => $runCols,
4144
));
4245

4346
$config->addReport(array(
@@ -48,5 +51,5 @@
4851
,
4952
'name' => 'console_table',
5053
'groups' => array('traversal_full'),
51-
'cols' => array('pid', 'iter', 'time', 'rps', 'memory', 'deviation_mean'),
54+
'cols' => array('pid', 'iter', 'time', 'rps', 'memory_diff', 'deviation_mean'),
5255
));

0 commit comments

Comments
 (0)