Es sind manchmal Kleinigkeiten die etwas bringen oder etwas zurück werfen.
So kann selbst ein Eintragsumstellung in einem Array bereits erhebliche Bedeutung haben.
So als Beispiel
$tpl->setoption('plugins',array('verwaltung/plugins/','plugins/'));
liefert
siege -b -c200 -t60s http://localhost/240/
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...
Lifting the server siege... done.
Transactions: 45470 hits
Availability: 100.00 %
Elapsed time: 59.55 secs
Data transferred: 72.35 MB
Response time: 0.26 secs
Transaction rate: 763.56 trans/sec
Throughput: 1.21 MB/sec
Concurrency: 199.25
Successful transactions: 45470
Failed transactions: 0
Longest transaction: 1.55
Shortest transaction: 0.06
anders herum
$tpl->setoption('plugins',array('plugins/','verwaltung/plugins/'));
siege -b -c200 -t60s http://localhost/240/
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...
Lifting the server siege... done.
Transactions: 44167 hits
Availability: 100.00 %
Elapsed time: 59.97 secs
Data transferred: 71.18 MB
Response time: 0.27 secs
Transaction rate: 736.48 trans/sec
Throughput: 1.19 MB/sec
Concurrency: 199.16
Successful transactions: 44167
Failed transactions: 0
Longest transaction: 8.10
Shortest transaction: 0.03
obwohl - und das ist das erstaunliche - über die Variante 2 eine Abprüfung ob ein File vorhanden ist oder nicht in dem Testfall einen sofortigen Erfolg hat und somit eigentlich schneller sein müsste - aber das Gegenteil ist der Fall.
Keine Kommentare:
Kommentar veröffentlichen