org.nuiton.wikitty.perftest
Class PerfTestSearch
java.lang.Object
org.nuiton.wikitty.perftest.PerfTestSearch
public class PerfTestSearch
- extends Object
|
Method Summary |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfTestSearch
public PerfTestSearch()
oneThreadSearch
public 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
- Parameters:
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 search
nThreadsSearch
public 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
- Parameters:
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 search
search
public 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
- Parameters:
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 search
Copyright © 2010-2011 CodeLutin. All Rights Reserved.