Skip to content

Commit

Permalink
Big JSON serialization benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed May 19, 2019
0 parents commit 035d023
Show file tree
Hide file tree
Showing 11 changed files with 830 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/composer.lock
93 changes: 93 additions & 0 deletions .phpbenchmarks/AbstractComponentConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?php

declare(strict_types=1);

namespace AbstractComponentConfiguration;

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

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

public static function getComponentSlug(): string
{
return 'symfony-json-serializer';
}

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

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

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

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

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

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

public static function getSourceCodeUrls(): array
{
return [
'jsonSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'integerSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'floatSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'stringSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'booleanSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'nullSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'arraySerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/benchmark.php#L21',
'objectSerialization' => 'https://github.com/phpbenchmarks/symfony-serializer-common/blob/4.8.0/src/Normalizer/ObjectToSerializeNormalizer.php#L16',
'customSerializers' => 'https://github.com/phpbenchmarks/symfony-serializer-common/tree/4.8.0/src/Normalizer'
];
}
}
217 changes: 217 additions & 0 deletions .phpbenchmarks/composer/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 035d023

Please sign in to comment.