aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/stephenhill/base58/benchmarks/Base16Event.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/stephenhill/base58/benchmarks/Base16Event.php')
-rw-r--r--vendor/stephenhill/base58/benchmarks/Base16Event.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/stephenhill/base58/benchmarks/Base16Event.php b/vendor/stephenhill/base58/benchmarks/Base16Event.php
new file mode 100644
index 000000000..f3ec0034d
--- /dev/null
+++ b/vendor/stephenhill/base58/benchmarks/Base16Event.php
@@ -0,0 +1,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');
+ }
+}