Skip to content

Commit 08194ae

Browse files
committed
chore: add php82 benchmark
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent ed6f819 commit 08194ae

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

benchmark/_results.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ PHP versions under test:
66
- PHP 7.4.26 (cli) (built: Nov 17 2021 10:35:45) ( NTS Visual C++ 2017 x64 )
77
- PHP 8.0.13 (cli) (built: Nov 17 2021 15:44:06) ( NTS Visual C++ 2019 x64 )
88
- PHP 8.1.0 (cli) (built: Nov 23 2021 21:59:51) (NTS Visual C++ 2019 x64)
9+
- PHP 8.2.3 (cli) (built: Feb 14 2023 14:56:45) (NTS Visual C++ 2019 x64)
910

1011
All tests have the following configurations:
1112

@@ -210,39 +211,39 @@ Nums of Runs: 10
210211
Speed up: 1034.94%
211212

212213

213-
[jfcherng@JFCHERNG-FA506 benchmark](master)$ php81 benchmark.php
214+
[jfcherng@JFCHERNG-FA506 benchmark](master)$ php82 benchmark.php
214215
# BENCHMARK: very-short.txt
215216
===========================
216-
PHP mb_*(): 0.24852204322815
217-
MbString: 0.59736299514771
217+
PHP mb_*(): 0.25620985031128
218+
MbString: 0.6041100025177
218219
===========================
219220
Nums of Chars: 60
220221
Nums of Runs: 10000
221-
Speed up: -58.4%
222+
Speed up: -57.59%
222223

223224
# BENCHMARK: short.txt
224225
======================
225-
PHP mb_*(): 0.87016201019287
226-
MbString: 0.49669718742371
226+
PHP mb_*(): 0.89691805839539
227+
MbString: 0.49669003486633
227228
======================
228229
Nums of Chars: 486
229230
Nums of Runs: 1000
230-
Speed up: 75.19%
231+
Speed up: 80.58%
231232

232233
# BENCHMARK: long.txt
233234
=====================
234-
PHP mb_*(): 0.40611505508423
235-
MbString: 0.11528086662292
235+
PHP mb_*(): 0.41864919662476
236+
MbString: 0.11893701553345
236237
=====================
237238
Nums of Chars: 1084
238239
Nums of Runs: 100
239-
Speed up: 252.28%
240+
Speed up: 251.99%
240241

241242
# BENCHMARK: very-long.txt
242243
==========================
243-
PHP mb_*(): 0.70618605613708
244-
MbString: 0.060432910919189
244+
PHP mb_*(): 0.73447799682617
245+
MbString: 0.061700820922852
245246
==========================
246247
Nums of Chars: 4624
247248
Nums of Runs: 10
248-
Speed up: 1068.55%
249+
Speed up: 1090.39%

0 commit comments

Comments
 (0)