bakura10/zf2 — pull request #2 by marc-mabe (2013-11-15 15:01:03+00:00)
Title: Zf3 evm opt

Give it a try

**MASTER:**
```
Attach 100 listeners: time=0.007654, mem=321832
Triggers 1000 events: time=0.035127, mem=298328
Attach 100 shared listeners: time=0.000873, mem=469320
Triggers 1000 events: time=0.093059, mem=260584

Total: time=0.145857, mem=1310720
```

**YOUR:**
```
Attach 100 listeners: time=0.000335, mem=97664
Triggers 1000 events: time=0.019591, mem=312784
Attach 100 shared listeners: time=0.000196, mem=253608
Triggers 1000 events: time=0.019867, mem=206960

Total: time=0.052368, mem=786432
```

**MY:**
```
Attach 100 listeners: time=0.000397, mem=96760
Triggers 1000 events: time=0.012084, mem=311840
Attach 100 shared listeners: time=0.000129, mem=249160
Triggers 1000 events: time=0.018590, mem=202512

Total: time=0.044642, mem=786432
```
(`demos/bench-evm.php` - I run with current master of php-src)