Skip to content

Commit 7e1539c

Browse files
committed
Initial
0 parents  commit 7e1539c

File tree

5 files changed

+78
-0
lines changed

5 files changed

+78
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor
2+
composer.lock
3+
reports

Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ROOT_DIR =`pwd`
2+
REPORT_DIR = $(shell pwd)/reports
3+
4+
all: doctrine-dbal
5+
6+
report_dir:
7+
@mkdir -p $(REPORT_DIR)
8+
9+
doctrine-dbal: doctrine-dbal-mysql doctrine-dbal-pgsql doctrine-dbal-sqlite
10+
11+
doctrine-dbal-mysql: report_dir
12+
@echo "Executing $@"
13+
@./bin/run_jackalope_doctrine_dbal.sh mysql $(REPORT_DIR)
14+
15+
doctrine-dbal-pgsql: report_dir
16+
@echo "Executing $@"
17+
@./bin/run_jackalope_doctrine_dbal.sh pgsql $(REPORT_DIR)
18+
19+
doctrine-dbal-sqlite: report_dir
20+
@echo "Executing $@"
21+
@./bin/run_jackalope_doctrine_dbal.sh sqlite $(REPORT_DIR)
22+
23+
clean:
24+
rm -Rf $(REPORT_DIR)

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
PHPCR Implementation Benchmarks
2+
===============================
3+
4+
This repository contains a make file to run the benchmarks for all PHPCR
5+
implementations.
6+
7+
Usage
8+
-----
9+
10+
````bash
11+
$ composer install
12+
$ make
13+
````

bin/run_jackalope_doctrine_dbal.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
ROOT_DIR=`pwd`
3+
4+
DB=$1
5+
REPORT_DIR=$2
6+
7+
cd vendor/jackalope/jackalope-doctrine-dbal
8+
9+
if [ -h ./vendor ]; then
10+
rm vendor -f
11+
fi
12+
13+
ln -s $ROOT_DIR/vendor vendor
14+
php tests/generate_phpunit_config.php $DB
15+
cp $DB.phpunit.xml phpunit.xml
16+
php vendor/bin/phpbench run --config=vendor/phpcr/phpcr-benchmarks/config/phpbench --dump > $REPORT_DIR/jackalope-doctrine-dbal-$DB.xml

composer.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "phpcr/phpcr-implementation-benchmarks",
3+
"description": "PHPCR Benchmarking Suite Runner",
4+
"type": "lib",
5+
"license": "MIT",
6+
"minimum-stability": "dev",
7+
"authors": [
8+
{
9+
"name": "Daniel Leech",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"phpcr/phpcr-benchmarks": "dev-master",
15+
"phpcr/phpcr-api-tests": "dev-master",
16+
"psr/log": "~1.0",
17+
"jackalope/jackalope-doctrine-dbal": "dev-master",
18+
"jackalope/jackalope-jackrabbit": "dev-master",
19+
"jackalope/jackalope-fs": "dev-master",
20+
"phing/phing": "~2.11"
21+
}
22+
}

0 commit comments

Comments
 (0)