### Install php-mb-string using Composer Source: https://github.com/jfcherng/php-mb-string/blob/master/README.md This command installs the php-mb-string package using Composer, the dependency manager for PHP. Ensure you have Composer installed on your system. ```bash composer require jfcherng/php-mb-string ``` -------------------------------- ### Benchmark Results for Short Text Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Compares the performance of PHP mb_* functions and MbString for short text inputs. Shows the number of characters, runs, and the percentage speed-up provided by MbString. ```text BENCHMARK: short.txt ====================== PHP mb_*(): 0.89691805839539 MbString: 0.49669003486633 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 80.58% ``` -------------------------------- ### Benchmark Results for Very Short Text Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Compares the performance of PHP mb_* functions and MbString for very short text inputs. Shows the number of characters, runs, and the percentage speed-up provided by MbString. ```text BENCHMARK: very-short.txt =========================== PHP mb_*(): 0.25620985031128 MbString: 0.6041100025177 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: -57.59% ``` -------------------------------- ### Benchmark Results for PHP 7.1 Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Presents benchmark results for PHP 7.1.33, comparing the performance of native mb_* functions with the MbString implementation for various text lengths. It includes execution times, character counts, run counts, and the calculated speed-up percentage. ```text # BENCHMARK: very-short.txt =========================== PHP mb_*(): 1.1643478870392 MbString: 0.59211087226868 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: 96.64% # BENCHMARK: short.txt ====================== PHP mb_*(): 2.0793077945709 MbString: 0.48031306266785 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 332.91% # BENCHMARK: long.txt ===================== PHP mb_*(): 0.81672811508179 MbString: 0.11249208450317 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 626.03% # BENCHMARK: very-long.txt ========================== PHP mb_*(): 1.2480089664459 MbString: 0.059252023696899 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 2006.27% ``` -------------------------------- ### Benchmark Results for PHP 7.3 Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Presents benchmark results for PHP 7.3.33, comparing the performance of native mb_* functions with the MbString implementation for various text lengths. It includes execution times, character counts, run counts, and the calculated speed-up percentage. ```text # BENCHMARK: very-short.txt =========================== PHP mb_*(): 0.376708984375 MbString: 0.62250208854675 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: -39.48% # BENCHMARK: short.txt ====================== PHP mb_*(): 0.97427797317505 MbString: 0.50918793678284 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 91.34% # BENCHMARK: long.txt ===================== PHP mb_*(): 0.43806719779968 MbString: 0.12041115760803 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 263.81% # BENCHMARK: very-long.txt ========================== PHP mb_*(): 0.71754693984985 MbString: 0.063323020935059 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 1033.15% ``` -------------------------------- ### Benchmark Results for PHP 7.2 Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Presents benchmark results for PHP 7.2.34, comparing the performance of native mb_* functions with the MbString implementation for various text lengths. It includes execution times, character counts, run counts, and the calculated speed-up percentage. ```text # BENCHMARK: very-short.txt =========================== PHP mb_*(): 1.2133929729462 MbString: 0.63396787643433 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: 91.4% # BENCHMARK: short.txt ====================== PHP mb_*(): 2.1066188812256 MbString: 0.51991295814514 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 305.19% # BENCHMARK: long.txt ===================== PHP mb_*(): 0.81985592842102 MbString: 0.1202437877655 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 581.83% # BENCHMARK: very-long.txt ========================== PHP mb_*(): 1.2363729476929 MbString: 0.065882921218872 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 1776.62% ``` -------------------------------- ### Benchmark Results for PHP 7.4 Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Presents benchmark results for PHP 7.4.26, comparing the performance of native mb_* functions with the MbString implementation for various text lengths. It includes execution times, character counts, run counts, and the calculated speed-up percentage. ```text # BENCHMARK: very-short.txt =========================== PHP mb_*(): 0.32944703102112 MbString: 0.63819408416748 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: -48.38% # BENCHMARK: short.txt ====================== PHP mb_*(): 0.93320608139038 MbString: 0.52730894088745 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 76.98% # BENCHMARK: long.txt ===================== PHP mb_*(): 0.42088890075684 MbString: 0.12360405921936 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 240.51% # BENCHMARK: very-long.txt ========================== PHP mb_*(): 0.71374106407166 MbString: 0.061835050582886 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 1054.27% ``` -------------------------------- ### Benchmark Results for PHP 8.0 Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Presents benchmark results for PHP 8.0.13, comparing the performance of native mb_* functions with the MbString implementation for various text lengths. It includes execution times, character counts, run counts, and the calculated speed-up percentage. ```text # BENCHMARK: very-short.txt =========================== PHP mb_*(): 0.25532412528992 MbString: 0.61637687683105 =========================== Nums of Chars: 60 Nums of Runs: 10000 Speed up: -58.58% # BENCHMARK: short.txt ====================== PHP mb_*(): 0.87763500213623 MbString: 0.4999258518219 ====================== Nums of Chars: 486 Nums of Runs: 1000 Speed up: 75.55% # BENCHMARK: long.txt ===================== PHP mb_*(): 0.40582585334778 MbString: 0.11784386634827 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 244.38% # BENCHMARK: very-long.txt ========================== PHP mb_*(): 0.71277904510498 MbString: 0.062803030014038 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 1034.94% ``` -------------------------------- ### Benchmark Results for Long Text Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Compares the performance of PHP mb_* functions and MbString for long text inputs. Shows the number of characters, runs, and the percentage speed-up provided by MbString. ```text BENCHMARK: long.txt ===================== PHP mb_*(): 0.41864919662476 MbString: 0.11893701553345 ===================== Nums of Chars: 1084 Nums of Runs: 100 Speed up: 251.99% ``` -------------------------------- ### Benchmark Results for Very Long Text Source: https://github.com/jfcherng/php-mb-string/blob/master/benchmark/_results.txt Compares the performance of PHP mb_* functions and MbString for very long text inputs. Shows the number of characters, runs, and the percentage speed-up provided by MbString. ```text BENCHMARK: very-long.txt ========================== PHP mb_*(): 0.73447799682617 MbString: 0.061700820922852 ========================== Nums of Chars: 4624 Nums of Runs: 10 Speed up: 1090.39% ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.