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 --- .../stephenhill/base58/benchmarks/Base16Event.php | 24 ++++++++++++++++ .../base58/benchmarks/Base58BCMathEvent.php | 33 ++++++++++++++++++++++ .../base58/benchmarks/Base58GMPEvent.php | 33 ++++++++++++++++++++++ .../stephenhill/base58/benchmarks/Base64Event.php | 24 ++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 vendor/stephenhill/base58/benchmarks/Base16Event.php create mode 100644 vendor/stephenhill/base58/benchmarks/Base58BCMathEvent.php create mode 100644 vendor/stephenhill/base58/benchmarks/Base58GMPEvent.php create mode 100644 vendor/stephenhill/base58/benchmarks/Base64Event.php (limited to 'vendor/stephenhill/base58/benchmarks') 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 @@ +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'); + } +} 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 @@ +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'); + } +} diff --git a/vendor/stephenhill/base58/benchmarks/Base64Event.php b/vendor/stephenhill/base58/benchmarks/Base64Event.php new file mode 100644 index 000000000..a558968a3 --- /dev/null +++ b/vendor/stephenhill/base58/benchmarks/Base64Event.php @@ -0,0 +1,24 @@ +