Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
#4 - testing for warmup or not is now useless due to the static cache…
Browse files Browse the repository at this point in the history
… in the instantiator
  • Loading branch information
Ocramius committed Jun 15, 2014
1 parent 6f0551e commit 29d12d5
Showing 1 changed file with 5 additions and 60 deletions.
65 changes: 5 additions & 60 deletions tests/InstantiatorPerformance/InstantiatorPerformanceEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
*/
class InstantiatorPerformanceEvent extends AthleticEvent
{
/**
* @var \Instantiator\Instantiator
*/
private $cleanInstantiator;

/**
* @var \Instantiator\Instantiator
*/
Expand All @@ -43,7 +38,6 @@ class InstantiatorPerformanceEvent extends AthleticEvent
*/
protected function setUp()
{
$this->cleanInstantiator = new Instantiator();
$this->warmedUpInstantiator = new Instantiator();

$this->warmedUpInstantiator->instantiate(__CLASS__);
Expand All @@ -56,16 +50,7 @@ protected function setUp()
/**
* @iterations 20000
* @baseline
* @group simple-class
*/
public function testInstantiateSelfWithoutWarmup()
{
$this->cleanInstantiator->instantiate(__CLASS__);
}

/**
* @iterations 20000
* @group simple-class
* @group instantiation
*/
public function testInstantiateSelfWithWarmup()
{
Expand All @@ -74,17 +59,7 @@ public function testInstantiateSelfWithWarmup()

/**
* @iterations 20000
* @baseline
* @group internal-class
*/
public function testInstantiateInternalClassWithoutWarmup()
{
$this->cleanInstantiator->instantiate('ArrayObject');
}

/**
* @iterations 20000
* @group internal-class
* @group instantiation
*/
public function testInstantiateInternalClassWitWarmup()
{
Expand All @@ -93,17 +68,7 @@ public function testInstantiateInternalClassWitWarmup()

/**
* @iterations 20000
* @baseline
* @group serializable-class
*/
public function testInstantiateSimpleSerializableAssetClassWithoutWarmup()
{
$this->cleanInstantiator->instantiate('InstantiatorTestAsset\\SimpleSerializableAsset');
}

/**
* @iterations 20000
* @group serializable-class
* @group instantiation
*/
public function testInstantiateSimpleSerializableAssetClassWithWarmup()
{
Expand All @@ -112,17 +77,7 @@ public function testInstantiateSimpleSerializableAssetClassWithWarmup()

/**
* @iterations 20000
* @baseline
* @group internal-serializable-class
*/
public function testInstantiateSerializableArrayObjectAssetWithoutWarmup()
{
$this->cleanInstantiator->instantiate('InstantiatorTestAsset\\SerializableArrayObjectAsset');
}

/**
* @iterations 20000
* @group internal-serializable-class
* @group instantiation
*/
public function testInstantiateSerializableArrayObjectAssetWithWarmup()
{
Expand All @@ -131,17 +86,7 @@ public function testInstantiateSerializableArrayObjectAssetWithWarmup()

/**
* @iterations 20000
* @baseline
* @group un-cloneable-class
*/
public function testInstantiateUnCloneableAssetWithoutWarmup()
{
$this->cleanInstantiator->instantiate('InstantiatorTestAsset\\UnCloneableAsset');
}

/**
* @iterations 20000
* @group un-cloneable-class
* @group instantiation
*/
public function testInstantiateUnCloneableAssetWithWarmup()
{
Expand Down

0 comments on commit 29d12d5

Please sign in to comment.