Skip to content

Remove useless benchmarks #935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/*
!/lib/
!/src/
!/tests/
!/benchmarks/
!/composer.json
!/phpunit.xml.*
!/phpstan*.neon
!/.php_cs.*
!/phpbench.json
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,6 @@ jobs:
- name: "Check coding standard"
run: composer check-cs

benchmark:
runs-on: ubuntu-20.04
name: Benchmark
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"

- name: "Install dependencies"
uses: ramsey/[email protected]

- name: "Run benchmark"
run: composer bench

static-analysis:
runs-on: ubuntu-20.04
name: "Static analysis"
Expand Down
20 changes: 0 additions & 20 deletions benchmarks/Benchmark.php

This file was deleted.

29 changes: 0 additions & 29 deletions benchmarks/Config/ParserGraphQLParserBench.php

This file was deleted.

20 changes: 0 additions & 20 deletions benchmarks/Mock/ContainerBuilder.php

This file was deleted.

41 changes: 0 additions & 41 deletions benchmarks/Request/ParserBench.php

This file was deleted.

54 changes: 0 additions & 54 deletions benchmarks/fixtures/schema.graphql

This file was deleted.

6 changes: 0 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"autoload-dev": {
"psr-4": {
"Overblog\\GraphQLBundle\\Benchmarks\\": "benchmarks/",
"Overblog\\GraphQLBundle\\Tests\\": "tests/"
}
},
Expand Down Expand Up @@ -83,10 +82,6 @@
"static-analysis": [
"phpstan analyse --ansi --memory-limit=1G"
],
"bench": [
"test -f phpbench.phar || wget https://github.com/phpbench/phpbench/releases/download/1.0.0-alpha7/phpbench.phar -O phpbench.phar",
"@php phpbench.phar run -l dots --ansi -vvv --report='generator: \"table\", cols: [\"benchmark\", \"subject\", \"params\", \"best\", \"mean\", \"mode\", \"worst\", \"diff\"], break: [\"benchmark\"], sort: {mean: \"asc\"}'"
],
"install-cs": "test -f php-cs-fixer.phar || wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.18.7/php-cs-fixer.phar -O php-cs-fixer.phar",
"fix-cs": [
"@install-cs",
Expand All @@ -100,7 +95,6 @@
"rm composer.lock",
"@composer install --ansi",
"@static-analysis",
"@bench",
"@check-cs"
],
"docker-clean": "docker image rm $(docker image ls -qf reference=graphql-test)",
Expand Down
4 changes: 0 additions & 4 deletions phpbench.json

This file was deleted.