You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During some testing i run into performance issues, regarding the version 1.x of this bundle (dont know about v2 yet).
What?
version
Sylius
1.8
SyliusThemeBundle
1.5.1
Test was done via siege and without any theme installed/configured (plain demo data) and in prod! siege http://127.0.0.1:8081/en_US/ -b -c 20 -t5m --no-parser -v
Theme bundle active
Yes
No
Transactions:
3496
5220
hits
Availability:
100
100
%
Elapsed time:
299.2
299.61
secs
Data transferred:
63.23
94.41
MB
Response time:
1.71
1.15
secs
Transaction rate:
11.68
17.42
trans/sec
Throughput:
0.21
0.32
MB/sec
Concurrency:
19.94
19.96
Successful transactions:
3496
5220
Failed transactions:
0
0
Longest transaction:
4.99
3.36
Shortest transaction:
0.28
0.17
X Debug Profiles
Theme bundle active
Yes
No
Function calls
79 293
72 149
Possible Issue:
From my research from one of the main issues is Sylius\Bundle\ThemeBundle\Twig\ThemeFilesystemLoader is used even if no theme is registered. This results in Sylius\Bundle\ThemeBundle\Twig\ThemeFilesystemLoader::getCacheKey and the other methods to always throw an exception and then falls back to the default TwigLoader and bypass the cache.
In dev mode its even worse as the lookup is done again during Symfony\Bridge\Twig\DataCollector\TwigDataCollector::lateCollect and again fails to hit the first level cache
@Roshyo i think so. If i remember correctly i created this pull requests #71 back then. It should fix the issue, but quiet some time has passed since then :)
During some testing i run into performance issues, regarding the version 1.x of this bundle (dont know about v2 yet).
Test was done via siege and without any theme installed/configured (plain demo data) and in prod!
siege http://127.0.0.1:8081/en_US/ -b -c 20 -t5m --no-parser -v
X Debug Profiles
Possible Issue:
From my research from one of the main issues is
Sylius\Bundle\ThemeBundle\Twig\ThemeFilesystemLoader
is used even if no theme is registered. This results inSylius\Bundle\ThemeBundle\Twig\ThemeFilesystemLoader::getCacheKey
and the other methods to always throw an exception and then falls back to the default TwigLoader and bypass the cache.In dev mode its even worse as the lookup is done again during
Symfony\Bridge\Twig\DataCollector\TwigDataCollector::lateCollect
and again fails to hit the first level cacheI attached the corresponding xdebug profiles
cachegrind.out.zip
The text was updated successfully, but these errors were encountered: