Task #53404
closed
Task #52304: Performance issues
Page cache saves the hash_base
Added by Alexander Opitz about 11 years ago.
Updated about 7 years ago.
Description
The hash_base (the array from which the cache hash is calculated) is saved into the cache. But this isn't required IMHO, it will be read on every cached request but doesn't get processed somewhere (as I read the source).
So if we remove it, it won't get saved and loaded, which reduces bandwidth to the SQL server and reduces the string which needs to be un-/serialized.
Benchmarked with "ab -n 1000 -c 100 host/" to a cached empty start page with PHP 5.5.3-1ubuntu2 with Zend OPcache v7.0.3-dev
Without patch:
Concurrency Level: 100
Time taken for tests: 4.702 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 2875000 bytes
HTML transferred: 2399000 bytes
Requests per second: 212.69 [#/sec] (mean)
Time per request: 470.165 [ms] (mean)
Time per request: 4.702 [ms] (mean, across all concurrent requests)
Transfer rate: 597.16 [Kbytes/sec] received
With patch
Concurrency Level: 100
Time taken for tests: 4.212 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 2875000 bytes
HTML transferred: 2399000 bytes
Requests per second: 237.42 [#/sec] (mean)
Time per request: 421.192 [ms] (mean)
Time per request: 4.212 [ms] (mean, across all concurrent requests)
Transfer rate: 666.59 [Kbytes/sec] received
- Status changed from New to Under Review
- Assignee set to Alexander Opitz
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF