From 11f791718ff851e678207fe53825a367fba13dd8 Mon Sep 17 00:00:00 2001 From: Steevan Date: Thu, 18 Apr 2019 19:19:17 +0200 Subject: [PATCH] Create Twig 1.38.4 Hello World benchmark --- .gitignore | 5 ++ README.md | 27 +++++++ composer.json | 9 +++ composer.lock.php5.6 | 166 +++++++++++++++++++++++++++++++++++++++++++ composer.lock.php7.0 | 166 +++++++++++++++++++++++++++++++++++++++++++ composer.lock.php7.1 | 166 +++++++++++++++++++++++++++++++++++++++++++ composer.lock.php7.2 | 166 +++++++++++++++++++++++++++++++++++++++++++ composer.lock.php7.3 | 166 +++++++++++++++++++++++++++++++++++++++++++ init_benchmark.sh | 14 ++++ public/index.php | 8 +++ var/cache/.gitkeep | 0 11 files changed, 893 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 composer.json create mode 100644 composer.lock.php5.6 create mode 100644 composer.lock.php7.0 create mode 100644 composer.lock.php7.1 create mode 100644 composer.lock.php7.2 create mode 100644 composer.lock.php7.3 create mode 100644 init_benchmark.sh create mode 100644 public/index.php create mode 100755 var/cache/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2428799 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea/ +vendor/ +composer.lock +/var/cache +!/var/cache/.gitkeep diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a36c01 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +

+ +
+ www.phpbenchmarks.com +

+ +## What is www.phpbenchmarks.com ? + +You will find lot of benchmarks for PHP frameworks and template engines. + +You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3. + +## What is this repository ? + +It's benchmark common code for Twig benchmarks. + +Switch branch to select your Twig major version and benchmark you want to see. + +See all Twig benchmarked versions on [phpbenchmarks/twig](https://github.com/phpbenchmarks/twig). + +You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html). + +## Benchmarks + +You can find all Twig benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/twig.html). + +Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark ! diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..01bfc23 --- /dev/null +++ b/composer.json @@ -0,0 +1,9 @@ +{ + "name": "phpbenchmarks/twig", + "type": "project", + "license": "proprietary", + "require": { + "twig/twig": "1.38.4", + "phpbenchmarks/twig-common": "1.1.0" + } +} diff --git a/composer.lock.php5.6 b/composer.lock.php5.6 new file mode 100644 index 0000000..069d785 --- /dev/null +++ b/composer.lock.php5.6 @@ -0,0 +1,166 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "198d190c692fe484e63e8b8cb6bddc9d", + "packages": [ + { + "name": "phpbenchmarks/twig-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/twig-common.git", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/twig-common/zipball/b90356746982abd862b4e6d1a95623ce523bde67", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67", + "shasum": "" + }, + "require": { + "twig/twig": "^1.0" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "time": "2018-05-30T14:43:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "twig/twig", + "version": "v1.38.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7732e9e7017d751313811bd118de61302e9c8b35", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.38-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2019-03-23T14:27:19+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/composer.lock.php7.0 b/composer.lock.php7.0 new file mode 100644 index 0000000..069d785 --- /dev/null +++ b/composer.lock.php7.0 @@ -0,0 +1,166 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "198d190c692fe484e63e8b8cb6bddc9d", + "packages": [ + { + "name": "phpbenchmarks/twig-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/twig-common.git", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/twig-common/zipball/b90356746982abd862b4e6d1a95623ce523bde67", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67", + "shasum": "" + }, + "require": { + "twig/twig": "^1.0" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "time": "2018-05-30T14:43:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "twig/twig", + "version": "v1.38.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7732e9e7017d751313811bd118de61302e9c8b35", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.38-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2019-03-23T14:27:19+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/composer.lock.php7.1 b/composer.lock.php7.1 new file mode 100644 index 0000000..069d785 --- /dev/null +++ b/composer.lock.php7.1 @@ -0,0 +1,166 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "198d190c692fe484e63e8b8cb6bddc9d", + "packages": [ + { + "name": "phpbenchmarks/twig-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/twig-common.git", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/twig-common/zipball/b90356746982abd862b4e6d1a95623ce523bde67", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67", + "shasum": "" + }, + "require": { + "twig/twig": "^1.0" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "time": "2018-05-30T14:43:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "twig/twig", + "version": "v1.38.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7732e9e7017d751313811bd118de61302e9c8b35", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.38-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2019-03-23T14:27:19+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/composer.lock.php7.2 b/composer.lock.php7.2 new file mode 100644 index 0000000..069d785 --- /dev/null +++ b/composer.lock.php7.2 @@ -0,0 +1,166 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "198d190c692fe484e63e8b8cb6bddc9d", + "packages": [ + { + "name": "phpbenchmarks/twig-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/twig-common.git", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/twig-common/zipball/b90356746982abd862b4e6d1a95623ce523bde67", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67", + "shasum": "" + }, + "require": { + "twig/twig": "^1.0" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "time": "2018-05-30T14:43:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "twig/twig", + "version": "v1.38.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7732e9e7017d751313811bd118de61302e9c8b35", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.38-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2019-03-23T14:27:19+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/composer.lock.php7.3 b/composer.lock.php7.3 new file mode 100644 index 0000000..069d785 --- /dev/null +++ b/composer.lock.php7.3 @@ -0,0 +1,166 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "198d190c692fe484e63e8b8cb6bddc9d", + "packages": [ + { + "name": "phpbenchmarks/twig-common", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/twig-common.git", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/twig-common/zipball/b90356746982abd862b4e6d1a95623ce523bde67", + "reference": "b90356746982abd862b4e6d1a95623ce523bde67", + "shasum": "" + }, + "require": { + "twig/twig": "^1.0" + }, + "type": "project", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "time": "2018-05-30T14:43:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "backendtea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "twig/twig", + "version": "v1.38.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7732e9e7017d751313811bd118de61302e9c8b35", + "reference": "7732e9e7017d751313811bd118de61302e9c8b35", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.38-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "https://twig.symfony.com/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "time": "2019-03-23T14:27:19+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/init_benchmark.sh b/init_benchmark.sh new file mode 100644 index 0000000..9c30b63 --- /dev/null +++ b/init_benchmark.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +function clearCache() { + sudo /bin/rm -rf var/cache/* + sudo /bin/chmod -R 777 var/cache +} + +function init() { + clearCache + composer install --no-dev --classmap-authoritative + clearCache + + return 0; +} diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..978597a --- /dev/null +++ b/public/index.php @@ -0,0 +1,8 @@ +