Encog.Util.Banchmark.EncogBenchmark.Process C# (CSharp) Метод

Process() публичный Метод

Perform the benchmark. Returns the total amount of time for all of the benchmarks. Returns the final score. The lower the better for a score.
public Process ( ) : String
Результат String
        public String Process()
        {
            _report.Report(Steps, 0, "Beginning benchmark");

            EvalCpu();
            EvalMemory();
#if !SILVERLIGHT
            EvalBinary();
#endif

            var result = new StringBuilder();

            result.Append("Encog Benchmark: CPU:");
            result.Append(Format.FormatInteger(_cpuScore));

            result.Append(", Memory:");
            result.Append(Format.FormatInteger(_memoryScore));
            result.Append(", Disk:");
            result.Append(Format.FormatInteger(_binaryScore));
            _report.Report(Steps, Steps, result
                                            .ToString());

            return result.ToString();
        }

Usage Example

Пример #1
0
 public void BackgroundThread()
 {
     EncogBenchmark benchmark = new EncogBenchmark(this);
     string result = benchmark.Process();
     Dispatcher.BeginInvoke(() => this.List.Items.Add("Final benchmark score(lower is better): " + result));
 }
All Usage Examples Of Encog.Util.Banchmark.EncogBenchmark::Process