romainnorberg / residue-vs-brick-money

Benchmarks between Residue and Brick\Money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • composer install
  • php run-benchmark.php
Benchmark romainnorberg/residue vs brick/money
==============================================

Host info
---------

 ------------- ------------------------- 
  Param         Value                    
 ------------- ------------------------- 
  time          2020-10-18 13:50:31 UTC  
  php_version   7.4.10                   
  platform      Darwin                   
  server_name                            
  server_addr                            
  xdebug        OFF                      
  iterator      20000                    
 ------------- ------------------------- 

Instantiation
-------------

 ----------------------- ---------------------- ----------------- ------------------ 
  Package                 Execution time (sec)   Memory used       Peak memory used  
 ----------------------- ---------------------- ----------------- ------------------ 
  romainnorberg/residue   0.000                  24KB of memory    0KB of memory     
  brick/money             0.003                  569KB of memory   594KB of memory   
 ----------------------- ---------------------- ----------------- ------------------ 

Basic split
-----------

 e.g. 100/3 = [33.34, 33.33, 33.33]                                                                                     

 ----------------------- ---------------------- ---------------- ------------------ 
  Package                 Execution time (sec)   Memory used      Peak memory used  
 ----------------------- ---------------------- ---------------- ------------------ 
  romainnorberg/residue   0.036                  1KB of memory    0KB of memory     
  brick/money             0.908                  40KB of memory   16KB of memory    
 ----------------------- ---------------------- ---------------- ------------------ 

Rounding/step split
-------------------

 e.g. 100/3 (with 0.05 step) = [33.35, 33.35, 33.30]                                                                    

 ----------------------- ---------------------- --------------- ------------------ 
  Package                 Execution time (sec)   Memory used     Peak memory used  
 ----------------------- ---------------------- --------------- ------------------ 
  romainnorberg/residue   0.040                  0KB of memory   0KB of memory     
  brick/money             1.460                  5KB of memory   0KB of memory     
 ----------------------- ---------------------- --------------- ------------------ 

About

Benchmarks between Residue and Brick\Money


Languages

Language:PHP 100.0%