aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base16Event.php
blob: f3ec0034d726204a69f949d68c491a7972af7c92 (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
<?php

namespace StephenHill\Benchmarks;

use Athletic\AthleticEvent;

class Base16Event extends AthleticEvent
{
    /**
	* @iterations 10000
	*/
    public function encodeBase16()
    {
        bin2hex('Hello World');
    }

    /**
	* @iterations 10000
	*/
    public function decodeBase16()
    {
        pack('H*', '48656c6c6f20576f726c64');
    }
}