Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3297 | major | always | 01-26-09 14:06 | 01-29-09 14:42 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003297: hash_hmac() is slow | ||||
Description: |
<?php $message = str_repeat('x', 1000); $key = base64_decode("NMvhzq3jlze/4WlyuRXQ5w=="); $hash_key = base64_decode("CdMQm0q6JeUgalXRwQQZ1h/8WQA7fJh1OuY0xuZooxQ="); $start = microtime(true); for ($idx=0; $idx < 10000; $idx++) { $hash_val = hash_hmac('md5', $message, $hash_key, true); } print microtime(true) - $start; This reports a run time of about 75ms under Zend PHP and about 610ms under Quercus in compiled mode (after repeated reloads to make sure the JVM has properly compiled everything.) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|