Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

zend-view-(extra-)helpers performance overhead #25

Closed
@pine3ree

Description

@pine3ree

I just wanted to report that upgrading components in a small zend-expressive testing blog-like app caused a penalty in performance. I tried do downgrade and/or disable extra components (zend-i18n, zend-form) and I came to the conclusion that loading the view helpers caused a standard 10 blog post listing to more than double the processing time from 1320 ms to 3645 ms. In both cases disabling all the (extra) view helpers the app runs in about 612 ms. This in php-fpm 7.0.x. In php-fpm 5.5.x the timing is of course doubled, so i get about 7080 ms which is comparable to a full zf(2.5) processing time.

The only way i could mitigate the problem was to add to the view_helpers config section only the plugins and aliases I needed instead of the whole zend-i18/zend-form configuration.

btw, I tested the plugin helpers using both v2 and v3 of plugin manager construct signature.

(the small test app uses a nzz setup: nikic-fastroute+zend-servicemanager+zend-view)

upgraded packages

zend-expressive-viewrenderer 1.0.1 => 1.1.0
zend-form 2.5.3 => 2.7.0
zend-stdlib 2.7.4 => 3.0.1
zend-servicemanager 2.7.4 => 3.0.1
zend-eventmanager 2.6.2 => 3.0.1
zend-form 2.6.0 => 2.8.3
zend-i18n 2.5.? => 2.7.2

... and other packages but they don'r seem related to the change in performance

kind regards.
maks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions