Sylius: [OSX] Whats best server to install for dev purposes. On XAMPP clean sylius very slow front rendering.

Created on 5 Jul 2016  路  10Comments  路  Source: Sylius/Sylius

Installed locally using xampp. Rendering homepage on dev mode + sylius demo data = rendering second time 1241 ms (yellow) (first much much slower). Is it normal? How to speed it up /can I? I understand that it would be a lot faster without dev mode, but i think its maybe too much as it is? My xampp doesn't have APC, but it has OPcache isn't it? Doesn't it work similar way?

Help Wanted

Most helpful comment

So, i'm writing it for sake of other who will be searching maybe.
I installed 7.0 version with homebrew
brew php70-intl
and
brew php70-opcache
And im using builded server and now its waaaaaaay faster. First loading multiple times faster, next one about one half/one third.

All 10 comments

xampp

You're using Windows aren't you?

On my dev server(Debian, php7) it takes about 300ms(dev mode) to load a category page with more than 1k products in it including brands block and search filters. In prod mode it keeps running under 180ms avg and there is still room for further optimizations.

So open up your profiler and see what exactly slows the process. But i bet it's twig -- in dev mode it's recompiles every template on every request.

No im on OSX, Yosemite, pretty powerfull (8gb 2,5 GHz Intel Core i5), and im testing it without any other software working in background. But it's php 5.6. Would it made so much difference? Becouse i tried to install xampp 7.0 but it had problems with php-int so i abandoned it But it works same in builded inside server. There is some missing translate messages could it be it?
zrzut ekranu 2016-07-05 o 20 16 07
And yes twig is slowest (homepage.main and layout about 900ms) but i think its very slow. I have some symfony experience and it wasn't so slow (but yeah i understand that sylius is powerfull etc)

Well it's more about your environment rather than Sylius itself.
Just checked my php 5.6 suite - 350ms devmode avg.

And yeah, xampp sucks.

I'm new in osx, i moved from windows so i knew XAMPP and i saw that there is osx version so i'm using it. Is there better alternative? I'm open to changing if it would be way faster. Server (7.0 , (changable with 5,6 would be nice addition) + Mysql + phpmyadmin + php-intl/pecl

Check if you have xdebug enabled, it significantly slows down symfony's render times. You shouldn't be getting over 1000ms on an OSX machine even with xdebug enabled, but it might help.

@Mr-Negative check out installation docs that has been merged recently - we strongly recommend to use PHP7 and build-in web server. I remember it was a huge speed change for me comparing to PHP5.6 and Apache (I haven't worked with XAMPP for years, but I'm pretty sure it is even slower ;))

@dkisselev it's disabled, @Zales0123 Well, i can't see it in this doc, but i'm pretty blind ;-). BUT, i will try to install 7 if its better. But i have question. When i use builin server now, it renders pretty much the same, not any significant improvement (if any), but it is using same version of php as xampp. So my question is, whats the php.ini of this build-in web server, and second - is it possible that this missing messages actually slow it? Becouse i use symfony in other projects, (but without sylius) and this errors can slow down a lot,

So maybe it would be worthy to work on a MAMP, and install everything with homebrew? It should not be as slow as you describes it.

ok. thanks guys.

So, i'm writing it for sake of other who will be searching maybe.
I installed 7.0 version with homebrew
brew php70-intl
and
brew php70-opcache
And im using builded server and now its waaaaaaay faster. First loading multiple times faster, next one about one half/one third.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inssein picture inssein  路  3Comments

stefandoorn picture stefandoorn  路  3Comments

javiereguiluz picture javiereguiluz  路  3Comments

mikemix picture mikemix  路  3Comments

bnd170 picture bnd170  路  3Comments