File tree 7 files changed +14
-22
lines changed
7 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 3
3
namespace PHPCR \Benchmark ;
4
4
5
5
use PHPCR \NodeInterface ;
6
- use PhpBench \Benchmark ;
6
+ use PhpBench \BenchmarkInterface ;
7
7
use PHPCR \ImportUUIDBehaviorInterface ;
8
8
9
- abstract class BaseBench implements Benchmark
9
+ abstract class BaseBench implements BenchmarkInterface
10
10
{
11
11
const ROOT_NAME = 'bench ' ;
12
12
const ROOT_PATH = '/bench ' ;
Original file line number Diff line number Diff line change 8
8
9
9
/**
10
10
* @group insert
11
- * @processIsolation iteration
12
11
*/
13
12
class InsertBench extends BaseBench
14
13
{
15
14
/**
16
- * @description Insert nodes
17
15
* @paramProvider provideNbNodes
18
16
* @beforeMethod beforeResetWorkspace
19
17
* @iterations 2
Original file line number Diff line number Diff line change 7
7
8
8
/**
9
9
* @group query
10
- * @processIsolation iteration
11
10
*/
12
11
class QueryBench extends BaseBench
13
12
{
@@ -17,7 +16,6 @@ public function setUp()
17
16
}
18
17
19
18
/**
20
- * @description No iterations
21
19
* @paramProvider provideQueries
22
20
* @iterations 5
23
21
* @group query_single_prop
@@ -29,7 +27,6 @@ public function benchQuery(Iteration $iteration)
29
27
}
30
28
31
29
/**
32
- * @description Retrive nodes for each row
33
30
* @paramProvider provideQueries
34
31
* @iterations 5
35
32
* @group query_single_prop
@@ -45,7 +42,6 @@ public function benchQueryWithNodes(Iteration $iteration)
45
42
}
46
43
47
44
/**
48
- * @description Iterate over rows and retrieve properties
49
45
* @paramProvider provideQueries
50
46
* @iterations 5
51
47
* @group query_single_prop
@@ -61,7 +57,6 @@ public function benchQueryIterate(Iteration $iteration)
61
57
}
62
58
63
59
/**
64
- * @description Run a select query with variable amount of properties
65
60
* @paramProvider provideProperties
66
61
* @iterations 5
67
62
* @group query_variable_props
Original file line number Diff line number Diff line change 4
4
5
5
use PHPCR \NodeInterface ;
6
6
7
- /**
8
- * @processIsolation iteration
9
- */
10
7
class TraversalBench extends BaseBench
11
8
{
12
9
public function setUp ()
@@ -15,7 +12,6 @@ public function setUp()
15
12
}
16
13
17
14
/**
18
- * @description Full traversal
19
15
* @group traversal_full
20
16
* @iterations 3
21
17
*/
@@ -25,7 +21,6 @@ public function benchFullTraversal()
25
21
}
26
22
27
23
/**
28
- * @description Full traversal and read all properties
29
24
* @group traversal_full
30
25
* @iterations 3
31
26
*/
Original file line number Diff line number Diff line change 10
10
],
11
11
"minimum-stability" : " dev" ,
12
12
"require" : {
13
- "phpbench/phpbench" : " ~0.3.0 "
13
+ "phpbench/phpbench" : " dev-master "
14
14
},
15
15
"autoload" : {
16
16
"psr-4" : {
Original file line number Diff line number Diff line change 22
22
}
23
23
24
24
require_once ($ cwd . '/tests/bootstrap.php ' );
25
-
26
- $config = new PhpBench\Configuration();
27
- $config->setPath(__DIR__ . '/../benchmarks');
28
-
29
- require_once('report.php');
30
-
31
- return $config;
Original file line number Diff line number Diff line change
1
+ {
2
+ "bootstrap" : " ./bootstrap.php" ,
3
+ "path" : " ../benchmarks" ,
4
+ "reports" : "{
5
+ "insert" : {
6
+ "extends" : " aggregate" ,
7
+ "title" : " Inserting Nodes" ,
8
+ "description" : " Insert nodes into the repository as children of a single parent"
9
+ }
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments