Skip to content

Commit d599ad8

Browse files
committed
REST API benchmark for Ubiquity 2.1.2
0 parents  commit d599ad8

20 files changed

+968
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
app/translations
2+
vendor/
3+
.idea/
4+
composer.lock
5+
/app/cache
6+
!/app/cache/.gitkeep
7+
.project
8+
.settings/
9+
.buildpath
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace AbstractComponentConfiguration;
6+
7+
abstract class AbstractComponentConfiguration
8+
{
9+
public static function getComponentType(): int
10+
{
11+
return 2;
12+
}
13+
14+
public static function getComponentName(): string
15+
{
16+
return 'Ubiquity';
17+
}
18+
19+
public static function getComponentSlug(): string
20+
{
21+
return 'ubiquity';
22+
}
23+
24+
public static function isPhp56Enabled(): bool
25+
{
26+
return false;
27+
}
28+
29+
public static function isPhp70Enabled(): bool
30+
{
31+
return false;
32+
}
33+
34+
public static function isPhp71Enabled(): bool
35+
{
36+
return true;
37+
}
38+
39+
public static function isPhp72Enabled(): bool
40+
{
41+
return true;
42+
}
43+
44+
public static function isPhp73Enabled(): bool
45+
{
46+
return true;
47+
}
48+
49+
public static function getBenchmarkUrl(): string
50+
{
51+
return 'index.php?c=benchmark/rest';
52+
}
53+
54+
public static function getCoreDependencyName(): string
55+
{
56+
return 'phpmv/ubiquity';
57+
}
58+
59+
public static function getCoreDependencyMajorVersion(): int
60+
{
61+
return 2;
62+
}
63+
64+
public static function getCoreDependencyMinorVersion(): int
65+
{
66+
return 1;
67+
}
68+
69+
public static function getCoreDependencyPatchVersion(): int
70+
{
71+
return 2;
72+
}
73+
74+
public static function getBenchmarkType(): int
75+
{
76+
return 3;
77+
}
78+
79+
public static function getSourceCodeUrls(): array
80+
{
81+
return [
82+
'route' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L17',
83+
'controller' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php',
84+
'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L30',
85+
'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/eventListener/DefineLocaleEventListener.php',
86+
'translations' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/translations/en_GB/phpbenchmarks.php',
87+
'translate' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php#L30',
88+
'serialize' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php'
89+
];
90+
}
91+
}

.phpbenchmarks/composer.lock.php7.1

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)