[wp-trac] [WordPress Trac] #59900: Measure performance with a persistent object cache in performance tests
WordPress Trac
noreply at wordpress.org
Mon Nov 13 23:09:30 UTC 2023
#59900: Measure performance with a persistent object cache in performance tests
-------------------------------------+--------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses: performance
-------------------------------------+--------------------------
Comment (by swissspidy):
Related ticket & discussion: #58000
The exact setup really depends on what we want to test / what we hope to
gain from these tests.
My quick 2 cents:
As for implementation details, the former shouldn't be a lot of work. A
matrix is probably the easiest way to do it. You can then still mark some
tests to not run or only run with the object cache is enabled.
The second approach would lead to more code repetition and worse
readability, if we do it for every single test.
That said, a combination of both would provide most flexibility: use a
matrix _and_ a way to enable/disable the object cache during the test.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59900#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list