@Test public void throughputPost() throws Throwable { if (this.serviceCacheClearIntervalSeconds == 0) { // effectively disable stop/start behavior while running throughput tests this.serviceCacheClearIntervalSeconds = TimeUnit.MICROSECONDS.toSeconds( ServiceHostState.DEFAULT_OPERATION_TIMEOUT_MICROS); } setUpHost(false); // throughput test for immutable factory URI factoryUri = createImmutableFactoryService(this.host); prePopulateIndexWithServiceDocuments(factoryUri); verifyImmutableEagerServiceStop(factoryUri, this.documentCountAtStart); boolean interleaveQueries = true; long stVersion = doThroughputImmutablePost(0, interleaveQueries, factoryUri); interleaveQueries = false; doThroughputImmutablePost(stVersion, interleaveQueries, factoryUri); // similar test but with regular, mutable, example factory interleaveQueries = true; factoryUri = UriUtils.buildFactoryUri(this.host, ExampleService.class); doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); interleaveQueries = false; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); // similar test but with indexed metadata factory factoryUri = createIndexedMetadataFactoryService(this.host); interleaveQueries = true; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); interleaveQueries = false; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); }
@Test public void throughputPost() throws Throwable { if (this.serviceCacheClearIntervalSeconds == 0) { // effectively disable stop/start behavior while running throughput tests this.serviceCacheClearIntervalSeconds = TimeUnit.MICROSECONDS.toSeconds( ServiceHostState.DEFAULT_OPERATION_TIMEOUT_MICROS); } setUpHost(false); // throughput test for immutable factory URI factoryUri = createImmutableFactoryService(this.host); prePopulateIndexWithServiceDocuments(factoryUri); verifyImmutableEagerServiceStop(factoryUri, this.documentCountAtStart); boolean interleaveQueries = true; long stVersion = doThroughputImmutablePost(0, interleaveQueries, factoryUri); interleaveQueries = false; doThroughputImmutablePost(stVersion, interleaveQueries, factoryUri); // similar test but with regular, mutable, example factory interleaveQueries = true; factoryUri = UriUtils.buildFactoryUri(this.host, ExampleService.class); doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); interleaveQueries = false; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); // similar test but with indexed metadata factory factoryUri = createIndexedMetadataFactoryService(this.host); interleaveQueries = true; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); interleaveQueries = false; doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, factoryUri); }
LuceneDocumentIndexService.STAT_NAME_VERSION_CACHE_ENTRY_COUNT); doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, immutableFactoryUri); if (!this.enableInstrumentation && this.host.isStressTest()) {
LuceneDocumentIndexService.STAT_NAME_VERSION_CACHE_ENTRY_COUNT); doMultipleIterationsThroughputPost(interleaveQueries, this.iterationCount, immutableFactoryUri); if (!this.enableInstrumentation && this.host.isStressTest()) {