aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php
blob: d8a4d20bf52d0764a134f85747ba9d4fe1b9aab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

namespace StephenHill\Benchmarks;

use Athletic\AthleticEvent;
use StephenHill\Base58;
use StephenHill\GMPService;

class Base58GMPEvent extends AthleticEvent
{
    protected $base58;

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

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

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