C# Class Nuve.Client.Benchmark.Benchmarker

显示文件 Open project: hrzafer/nuve

Public Methods

Method Description
TestMillionTimesWithSingleWord ( string word, Nuve.Lang.WordAnalyzer analyzer ) : void
TestWithAMillionTokens ( Func analyzeMethod ) : void

Test the speed with a million word corpus which includes same words many times

TestWithAMillionWords ( Func analyzeMethod ) : void

Test the speed with a million different word types

Private Methods

Method Description
Process ( IEnumerable tokens, Func analyzeMethod ) : void

Method Details

TestMillionTimesWithSingleWord() public static method

public static TestMillionTimesWithSingleWord ( string word, Nuve.Lang.WordAnalyzer analyzer ) : void
word string
analyzer Nuve.Lang.WordAnalyzer
return void

TestWithAMillionTokens() public static method

Test the speed with a million word corpus which includes same words many times
public static TestWithAMillionTokens ( Func analyzeMethod ) : void
analyzeMethod Func
return void

TestWithAMillionWords() public static method

Test the speed with a million different word types
public static TestWithAMillionWords ( Func analyzeMethod ) : void
analyzeMethod Func
return void