Skip to content

Commit

Permalink
Hello world benchmark for Twig 1.40.1
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed May 1, 2019
0 parents commit 82f67b6
Show file tree
Hide file tree
Showing 14 changed files with 1,008 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
vendor/
composer.lock
/var/cache
!/var/cache/.gitkeep
86 changes: 86 additions & 0 deletions .phpbenchmarks/AbstractComponentConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php

declare(strict_types=1);

namespace AbstractComponentConfiguration;

abstract class AbstractComponentConfiguration
{
public static function getComponentType(): int
{
return 3;
}

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

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

public static function isPhp56Enabled(): bool
{
return true;
}

public static function isPhp70Enabled(): bool
{
return true;
}

public static function isPhp71Enabled(): bool
{
return true;
}

public static function isPhp72Enabled(): bool
{
return true;
}

public static function isPhp73Enabled(): bool
{
return true;
}

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

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

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

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

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

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

public static function getSourceCodeUrls(): array
{
return [
'entryPoint' => 'https://github.com/phpbenchmarks/twig-common/blob/twig_1_hello-world/helloworld.php',
'template' => 'https://github.com/phpbenchmarks/twig-common/blob/twig_1_hello-world/templates/helloworld.html.twig'
];
}
}
166 changes: 166 additions & 0 deletions .phpbenchmarks/composer.lock.php5.6

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

Loading

0 comments on commit 82f67b6

Please # to comment.