From afe8552be66a05b379ddc7b5f78e40f8a76540b8 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 3 Jan 2024 11:07:03 +0000 Subject: =?UTF-8?q?com=C3=83poser=20add=20tephenhill/base58?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base58/benchmarks/Base58BCMathEvent.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php (limited to 'vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php') diff --git a/vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php b/vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php new file mode 100644 index 000000000..fc8ec23ee --- /dev/null +++ b/vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php @@ -0,0 +1,33 @@ +base58 = new Base58(null, new BCMathService()); + } + + /** + * @iterations 10000 + */ + public function encodeBase58() + { + $this->base58->encode('Hello World'); + } + + /** + * @iterations 10000 + */ + public function decodeBase58() + { + $this->base58->decode('JxF12TrwUP45BMd'); + } +} -- cgit v1.2.3