aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base64Event.php
blob: a558968a3f31e2c372213a7c2edd9872615929db (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 Base64Event extends AthleticEvent
{
    /**
	* @iterations 10000
	*/
    public function encodeBase64()
    {
        base64_encode('Hello World');
    }

    /**
	* @iterations 10000
	*/
    public function decodeBase64()
    {
        base64_decode('SGVsbG8gV29ybGQ=');
    }
}