diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-08-07 13:15:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-08-07 13:15:44 +0200 |
commit | c856fa754b76d5f89c10923808038301d2e5918a (patch) | |
tree | 2d4958c396e1bccb74f1230049477d3d25610116 /container-search/src/test/java/com/yahoo | |
parent | 56c637c029a35d3f07d45788cfc764812f4b43d3 (diff) |
Cleanup
Diffstat (limited to 'container-search/src/test/java/com/yahoo')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java b/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java index fe37aee013d..a6acde87e30 100644 --- a/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java @@ -33,90 +33,6 @@ import static org.junit.Assert.fail; public class XmlReadingTestCase { @Test - @Ignore - public void testTmp2() { - // queryProfile=main_single_feed&site=frontpage&lang=zh-Hant-HK®ion=HK&device=smartphone&configId=popular&debug=true&format=page&tracelevel=4 - QueryProfileRegistry registry = - new QueryProfileXMLReader().read("/Users/bratseth/development/slingstone/massmedia_serving/homerun/src/main/application/search/flattened"); - long startTime = System.currentTimeMillis(); - System.out.println("Compiling ..."); - CompiledQueryProfileRegistry cRegistry = registry.compile(); - - System.out.println("Done in " + (( System.currentTimeMillis() - startTime) / 1000) + " seconds"); - - Query q1 = new Query("?queryProfile=main_single_feed&site=frontpage&langReg=zh-Hant-HK®ion=HK&device=smartphone&configId=popular&debug=true&format=page&tracelevel=4", - cRegistry.findQueryProfile("main_single_feed")); - - System.out.println("feed.main.rule.slotting.videos.type = " + q1.properties().get("feed.main.rule.slotting.videos.type")); - } - - @Test - @Ignore - public void testTmp() { - QueryProfileRegistry registry = - new QueryProfileXMLReader().read("/Users/bratseth/development/slingstone/massmedia_serving/homerun/src/main/application/search/flattened"); - long startTime = System.currentTimeMillis(); - System.out.println("Compiling ..."); - CompiledQueryProfileRegistry cRegistry = registry.compile(); - - System.out.println("Done in " + (( System.currentTimeMillis() - startTime) / 1000) + " seconds"); - System.out.println(""); - CompiledQueryProfile cProfile = cRegistry.getComponent("megastream_unified"); - - Query q = new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=4&" + - "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" + - "queryProfile=megastream_unified&lang=ENGLISH®ion=US&", cProfile); - q.properties().listProperties(); - - // About 60 ms with tracelevel=4, a few ms with tracelevel=0 - startTime = System.currentTimeMillis(); - System.out.println("Creating query ..."); - new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=0&" + - "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" + - "queryProfile=megastream_unified&lang=ENGLISH®ion=US&", cProfile); - System.out.println("Done in " + (System.currentTimeMillis() - startTime) + " ms"); - - startTime = System.currentTimeMillis(); - System.out.println("listProperties() ..."); - int repeats = 10000; - for (int i = 0; i < repeats; i++) - q.properties().listProperties(); - - System.out.println("Time of " + repeats + " listProperties: " + (System.currentTimeMillis() - startTime) + " ms"); - } - - @Test - @Ignore - public void testTmp3() { - QueryProfileRegistry registry = - new QueryProfileXMLReader().read("/Users/bratseth/development/slingstone/massmedia_serving/homerun/src/main/application/search/flattened"); - long startTime = System.currentTimeMillis(); - System.out.println("Compiling ..."); - CompiledQueryProfileRegistry cRegistry = registry.compile(); - System.out.println("Done in " + (( System.currentTimeMillis() - startTime) / 1000) + " seconds"); - System.out.println(""); - CompiledQueryProfile cProfile = cRegistry.getComponent("megastream_unified"); - - Query q = new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=4&" + - "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" + - "queryProfile=megastream_unified&lang=ENGLISH®ion=US&", cProfile); - q.properties().listProperties(); - - // About 60 ms with tracelevel=4, a few ms with tracelevel=0 - startTime = System.currentTimeMillis(); - System.out.println("Creating query ..."); - new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=0&" + - "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" + - "queryProfile=megastream_unified&lang=ENGLISH®ion=US&", cProfile); - System.out.println("Done in " + (System.currentTimeMillis() - startTime) + " ms"); - - startTime = System.currentTimeMillis(); - System.out.println("listProperties() ..."); - q.properties().listProperties().forEach((k, v) -> System.out.println(" " + k + "=" + v)); - System.out.println("Done in " + (System.currentTimeMillis() - startTime) + " ms"); - } - - @Test public void testInheritance() { QueryProfileRegistry registry = new QueryProfileXMLReader().read("src/test/java/com/yahoo/search/query/profile/config/test/inheritance"); |