Skip to content

Commit

Permalink
Hello World benchmark for Ubiquity 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Apr 28, 2019
0 parents commit ee9320d
Show file tree
Hide file tree
Showing 17 changed files with 822 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 @@
vendor/
.idea/
composer.lock
/app/cache
!/app/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 2;
}

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

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

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

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

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?c=benchmark/helloworld';
}

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

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

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

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

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

public static function getSourceCodeUrls(): array
{
return [
'route' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.1.0/controllers/HelloWorldController.php#L9',
'controller' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.1.0/controllers/HelloWorldController.php'
];
}
}
197 changes: 197 additions & 0 deletions .phpbenchmarks/composer.lock.php7.1

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

Loading

0 comments on commit ee9320d

Please sign in to comment.