long start = System.currentTimeMillis()
int count = 0
new com.flexive.shared.search.query.SqlQueryBuilder().select("@pk").result.resultRows.each { row ->
println "Loaded instance " + com.flexive.shared.EJBLookup.contentEngine.load(row.getPk(1)).pk
count++
}
long time = System.currentTimeMillis() - start
"Loaded ${count} instances in ${time} ms (" + (time / count) + "ms/instance), " \
+ com.flexive.shared.CacheAdmin.instance.getChildrenNames("/FxContent").size() \
+ " cached content instances."