Thanks for your response. Yes indeed I was comparing RAMDirectoryProvider vs FSDirectoryProvider. In the mean time I have continued with my investigation and have new figures:
RAMDirectoryProvider:
saveAnnotation1: 1469 ms saveAnnotation2: 937 ms
search: 234 ms search: 0 ms
FSDirectoryProvider:
saveAnnotation1: 19.578 s saveAnnotation2: 17.75 s
search: 344 ms search: 15 ms
The tests are in a public SVN
https://geonetwork.svn.sourceforge.net/ ... dbox/3.0.x
in these maven/eclipse projects: geonetwork-domain-ebrim and geonetwork-persistence-ebrim. Build first the domain project.
/geonetwork-persistence-ebrim/src/test/java/org/geonetwork/search/ebrim/HSInvestigationSearchTest.java
/geonetwork-persistence-ebrim/src/test/java/org/geonetwork/search/ebrim/HSInvestigationSaveTest.java
/geonetwork-persistence-ebrim/src/test/resources/jdbc.properties
I have tried running in the async mode, there are no significant differences.
The tests have run also on about 4 differenct computers, figures are more or less the same. At least they have the same pattern.
We are still in the dark. What could be the reason for the huge performance differences?