Skip to content

Commit

Permalink
REST API 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 d599ad8
Show file tree
Hide file tree
Showing 20 changed files with 968 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
app/translations
vendor/
.idea/
composer.lock
/app/cache
!/app/cache/.gitkeep
.project
.settings/
.buildpath
91 changes: 91 additions & 0 deletions .phpbenchmarks/AbstractComponentConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?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/rest';
}

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 3;
}

public static function getSourceCodeUrls(): array
{
return [
'route' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L17',
'controller' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php',
'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L30',
'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/eventListener/DefineLocaleEventListener.php',
'translations' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/translations/en_GB/phpbenchmarks.php',
'translate' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php#L30',
'serialize' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php'
];
}
}
234 changes: 234 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 d599ad8

Please sign in to comment.