Content Cache

These tests are to benchmark the ContentCache, note that these metrics are in CPU Ticks.

 

In this test, we ask the ContentTypeService for all the content we created in the ContentService tests, and we time the duration of a call to ContentCache.GetById(id); then take an average for each of the calls.

To test this, we make 150 calls to ContentCache.GetSingleByXpath and average the time taken. The XPath used is 

/root/contentType/contentType/contentType/contentType/contentType/contentType/contentType[@urlName='test-content-7']