Skip to content

Commit

Permalink
Merge pull request #22 from 8fold/comparisons
Browse files Browse the repository at this point in the history
update: Packet size-related details
  • Loading branch information
joshbruce authored Feb 26, 2024
2 parents 668e3ad + 61814fd commit 139a1dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ These results are from February 26th, 2024:

|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 |
|1 |0.0399683 |0.0017415 |2.7 |
|2 |0.0953241 |0.0160480 |1.99 |
|3 |1.6026525 |1.4603320 |1.82 |
|4 |1.7849769 |1.7918970 |1.74 |
|5 |8.9957415 |8.8755520 |1.74 |

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.
4. Using PHP HTML Build Document and Element resulted in 1 kilobyte in packet size. (Increased processing time in milliseconds most likely offset by decreased download time.)

## Details

Expand Down

0 comments on commit 139a1dd

Please sign in to comment.