Skip to content

Commit

Permalink
Templating small overload benchmark for PHP 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Nov 29, 2019
0 parents commit 99efdd6
Show file tree
Hide file tree
Showing 68 changed files with 30,356 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2.1'

jobs:
ValidateBenchmark:
docker:
- image: phpbenchmarks/benchmark-kit:4
working_directory: /var/www/benchmark
environment:
NGINX_PORT: 80
steps:
- checkout
- run:
name: /var/entrypoint.sh
command: /var/entrypoint.sh --nginx-as-service
- run:
name: "benchmark:validate"
command: "/var/benchmark-kit/bin/console benchmark:validate"

workflows:
version: '2.1'
BenchmarkKit:
jobs:
- ValidateBenchmark
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/composer.lock
.idea/
vendor/
composer.lock
71 changes: 71 additions & 0 deletions .phpbenchmarks/Configuration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

declare(strict_types=1);

namespace PhpBenchmarks\BenchmarkConfiguration;

class Configuration
{
public static function getComponentType(): int
{
return 1;
}

public static function getComponentName(): string
{
return 'PHP';
}

public static function getComponentSlug(): string
{
return 'php';
}

public static function isCompatibleWithPhp(int $major, int $minor): bool
{
return
($major === 7 && $minor === 4);
}

public static function getEntryPointFileName(): string
{
return 'public/index.php';
}

public static function getBenchmarkUrl(): string
{
return '/';
}

public static function getCoreDependencyName(): string
{
return 'php';
}

public static function getCoreDependencyMajorVersion(): int
{
return 7;
}

public static function getCoreDependencyMinorVersion(): int
{
return 4;
}

public static function getCoreDependencyPatchVersion(): int
{
return 0;
}

public static function getBenchmarkType(): int
{
return 4;
}

public static function getSourceCodeUrls(): array
{
return [
'entryPoint' => 'https://github.com/phpbenchmarks/php/blob/7.4_templating-small-overload/public/index.php'
];
}
}
19 changes: 19 additions & 0 deletions .phpbenchmarks/composer/composer.lock.php7.4

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .phpbenchmarks/initBenchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

# add commands to initialize benchmark: clear cache and logs, warm up cache etc
composer install --no-dev --classmap-authoritative --ansi
Loading

0 comments on commit 99efdd6

Please sign in to comment.