public void calcAlgo(string label, IConari l, WCharPtr data, WCharPtr filter, Func <WCharPtr, WCharPtr, IConari, bool> method) { var meter = new Meter(); double results = 0; meter.start(); results += meter.delta(); for (int total = 0; total < average; ++total) { meter.start(); for (int i = 0; i < iterations; ++i) { if (method(data, filter, l)) { } } results += meter.delta(); Console.Write("."); } Console.WriteLine($"{label}{ms(results / average)}"); }
public bool regXwildExtDLR(WCharPtr data, WCharPtr filter, IConari l) { return(l.DLR.searchExtC <bool>(data, filter, true)); }
public bool regXwildExtLambda(WCharPtr data, WCharPtr filter, IConari l) { return(l.bind <Func <WCharPtr, WCharPtr, bool, bool> >("searchExtC")(data, filter, true)); }