aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-22 08:37:29 +0000
committerMario <mario@mariovavti.com>2024-03-22 08:37:29 +0000
commit1aeb05628b6a2a069c46980efbe628362c9e3e74 (patch)
treee9aed15d0cd74e0c23dcb05c7be8fe9541efdf36 /vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php
parent5b7387459cf4de8f7354d81cb0392c4225714d94 (diff)
parentb464fae3bf22585888c5f3def8eded76fd48ed16 (diff)
downloadvolse-hubzilla-1aeb05628b6a2a069c46980efbe628362c9e3e74.tar.gz
volse-hubzilla-1aeb05628b6a2a069c46980efbe628362c9e3e74.tar.bz2
volse-hubzilla-1aeb05628b6a2a069c46980efbe628362c9e3e74.zip
Merge branch '9.0RC'9.0
Diffstat (limited to 'vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php')
-rw-r--r--vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php33
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');
+ }
+}