diff options
author | Mario <mario@mariovavti.com> | 2024-01-03 11:07:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-03 11:07:03 +0000 |
commit | afe8552be66a05b379ddc7b5f78e40f8a76540b8 (patch) | |
tree | d53037364fa680de21153fb1d3fcfcb3211d0d58 /vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php | |
parent | cd0e50da249ba89252a6182b0ac239e003563f61 (diff) | |
download | volse-hubzilla-afe8552be66a05b379ddc7b5f78e40f8a76540b8.tar.gz volse-hubzilla-afe8552be66a05b379ddc7b5f78e40f8a76540b8.tar.bz2 volse-hubzilla-afe8552be66a05b379ddc7b5f78e40f8a76540b8.zip |
comÃposer add tephenhill/base58
Diffstat (limited to 'vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php')
-rw-r--r-- | vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php b/vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php new file mode 100644 index 000000000..d8a4d20bf --- /dev/null +++ b/vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php @@ -0,0 +1,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'); + } +} |