public class PerfTestSearch extends Object
| Constructor and Description |
|---|
PerfTestSearch() |
| Modifier and Type | Method and Description |
|---|---|
static void |
nThreadsSearch(WikittyService ws,
WikittyExtension ext,
int loopsToAvg,
int researches,
int wikittiesCreated,
int threadsNb,
String searchIn,
String searched,
boolean withRestore)
Searches with n threads and then displays the result
|
static void |
oneThreadSearch(WikittyService ws,
WikittyExtension ext,
int loopsToAvg,
int researches,
int wikittiesCreated,
String searchIn,
String searched,
boolean withRestore)
Searches with one thread and then displays the result
|
static void |
search(WikittyService ws,
WikittyExtension ext,
int loopsToAvg,
int researches,
int wikittiesCreated,
int threadsNb,
String searchIn,
String searched,
boolean withRestore)
Launches the searches with one thread and then with n threads
|
public static void oneThreadSearch(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, String searchIn, String searched, boolean withRestore)
ws - : the wikitty serviceext - : the wikitty extensionloopsToAvg - : the number of times the labels searches will be made in order to give a more accurate resultresearches - : the number of researcheswikittiesCreated - : the number of wikitties in the proxysearchIn - : the field namesearched - : the field value to searchwithRestore - : if the wikitty will be restored after the searchpublic static void nThreadsSearch(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, int threadsNb, String searchIn, String searched, boolean withRestore)
ws - : the wikitty serviceext - : the wikitty extensionloopsToAvg - : the number of times the labels searches will be made in order to give a more accurate resultresearches - : the number of researcheswikittiesCreated - : the number of wikitties in the proxythreadsNb - : the number of threads that will be created to do a part of the searchsearchIn - : the field namesearched - : the field value to searchwithRestore - : if the wikitty will be restored after the searchpublic static void search(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, int threadsNb, String searchIn, String searched, boolean withRestore)
ws - : the wikitty serviceext - : the wikitty extensionloopsToAvg - : the number of times the labels searches will be made in order to give a more accurate resultresearches - : the number of researcheswikittiesCreated - : the number of wikitties in the proxythreadsNb - : the number of threads that will be created to do a part of the searchsearchIn - : the field namesearched - : the field value to searchwithRestore - : if the wikitty will be restored after the searchCopyright © 2010-2013 CodeLutin. All Rights Reserved.