[ 
https://issues.apache.org/jira/browse/OAK-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Teodor Rosu updated OAK-3850:
-----------------------------
    Attachment: test-performance-v0.patch

I created a quick and ugly test that should give a first analysis of 
PersistenceCache with metrics ( see test-performance-v0.patch ).

Short description ( comments can be also found in patch ):
- populate a DocumentNodeStore ( backed by a MemoryDocumentStore ) with 1.000 
random nodes 
- implement an "amnesic cache" ( PassthroughCache ) that does not store anything
- PersistentCache will wrap this silly cache ( this means nodes will *only be 
cached* at the PersistentCache level )

The actual test:
1. iterate once ( untimed ) the nodes to make sure the PersistentCache gets 
populated
2. iterate N (100.000) times through all nodes ( all served from NodeCache ). 
this operation is timed 

On my laptop I got the following results for op.2 above ( I will need to double 
check these are correct ):
* PersistentCache *with* stats + MetricsStatisticsProvider ( ~ 46 sec )
* PersistentCache *with* stats + StatististicsProvider.NOOP (~ 40-41 sec )
* PersistentCache *without* stats = current oak trunk ( ~ 40-41 sec )

Will investigate further.

> Collect and expose Persistent Cache stats
> -----------------------------------------
>
>                 Key: OAK-3850
>                 URL: https://issues.apache.org/jira/browse/OAK-3850
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, documentmk
>            Reporter: Teodor Rosu
>         Attachments: OAK-3850-v0.patch, test-performance-v0.patch
>
>
> Expose persistent cache statistics ( see: [Guava 
> CacheStats|http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheStats.html]
>  )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to