Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002915 [Quercus] major always 09-09-08 08:33 09-10-08 12:07
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.1 Product Version 3.2.1
  Product Build
Summary 0002915: Loading class definitions is slow
Description Attached is a file with 100 classes. After compiling and reloading enough times to make sure everything is JITed, ab reports the following for 100 non-concurrent executions:

Requests per second: 5.15 [#/sec] (mean)
Time per request: 194.333 [ms] (mean)
Time per request: 194.333 [ms] (mean, across all concurrent requests)

But when I load the same file with the regular PHP interpreter (note, this is a locally hacked interpreter that supports lazy loading of classes and functions) it's far, far faster:

Requests per second: 1164.09 [#/sec] (mean)
Time per request: 0.859 [ms] (mean)
Time per request: 0.859 [ms] (mean, across all concurrent requests)

Quercus is actually faster than our lazy-loading interpreter at loading *functions*, but as soon as it hits a few classes, its lead evaporates.
Steps To Reproduce
Additional Information
Attached Files  test.php [^] (73,408 bytes) 09-09-08 08:33

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-09-08 08:33 koreth New Issue
09-09-08 08:33 koreth File Added: test.php
09-09-08 12:22 ferg Status new => assigned
09-09-08 12:22 ferg Assigned To  => ferg
09-10-08 12:07 ferg Status assigned => closed
09-10-08 12:07 ferg Resolution open => fixed
09-10-08 12:07 ferg Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker