Skip to content

Commit

Permalink
Merge pull request #21 from 8fold/comparisons
Browse files Browse the repository at this point in the history
update: Packet size
  • Loading branch information
joshbruce authored Feb 26, 2024
2 parents 398ca48 + 4a402b1 commit 668e3ad
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,20 @@ The `/comparisons` folder can be used to run performance tests locally to compar

These results are from February 26th, 2024:

|Configuration |Average time in milliseconds |Median time in milliseconds |
|:---|---:|---:|
|1 |0.0399683 |0.0017415 |
|2 |0.0953241 |0.0160480 |
|3 |1.6026525 |1.4603320 |
|4 |1.7849769 |1.7918970 |
|5 |8.9957415 |8.8755520 |
|Configuration |Average time in milliseconds |Median time in milliseconds |Transfer size in kilobytes |
|:---|---:|---:|---:|
|1 |0.0399683 |0.0017415 |2.7kb |
|2 |0.0953241 |0.0160480 |1.99kb |
|3 |1.6026525 |1.4603320 |1.82kb |
|4 |1.7849769 |1.7918970 |1.74kb |
|5 |8.9957415 |8.8755520 |1.74kb |

Things worth noting (as rough interpretations):

1. PHP being used as a template engine has a negligible impact on speed.
2. Using `require_once` without PSR-4 autoloading decreases speed by roughly 1.5 milliseconds; however, once the code is made available, very little additional cost seems to be present.
3. Using PSR-4 decreases speed by roughly 6 milliseconds; however, ensures everything is present and available.
4. Using PHP HTML Build Document + Element resulted in 1 kilobyte in packet size.

## Details

Expand Down

0 comments on commit 668e3ad

Please sign in to comment.