aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php
blob: fc8ec23ee947dcf79f19002f6e8714e2c87e6062 (plain) (tree)
































                                                              
<?php

namespace StephenHill\Benchmarks;

use Athletic\AthleticEvent;
use StephenHill\Base58;
use StephenHill\BCMathService;

class Base58BCMathEvent extends AthleticEvent
{
    protected $base58;

    public function setUp()
    {
        $this->base58 = new Base58(null, new BCMathService());
    }

    /**
	* @iterations 10000
	*/
    public function encodeBase58()
    {
        $this->base58->encode('Hello World');
    }

    /**
	* @iterations 10000
	*/
    public function decodeBase58()
    {
        $this->base58->decode('JxF12TrwUP45BMd');
    }
}