public void Setup()
        {
            SetupEndpoints();

            SetupRequests();

            _baseline = (BarebonesMatcher)SetupMatcher(new BarebonesMatcherBuilder());
            _dfa      = (DfaMatcher)SetupMatcher(CreateDfaMatcherBuilder());
        }
Exemple #2
0
        public void Setup()
        {
            SetupEndpoints();

            SetupRequests();

            _baseline = (TrivialMatcher)SetupMatcher(new TrivialMatcherBuilder());
            _dfa      = (DfaMatcher)SetupMatcher(CreateDfaMatcherBuilder());

            _feature = new EndpointFeature();
        }
Exemple #3
0
        public void Setup()
        {
            Endpoints    = new RouteEndpoint[1];
            Endpoints[0] = CreateEndpoint("/plaintext");

            Requests    = new HttpContext[1];
            Requests[0] = new DefaultHttpContext();
            Requests[0].RequestServices = CreateServices();
            Requests[0].Request.Path    = "/plaintext";

            _baseline = (TrivialMatcher)SetupMatcher(new TrivialMatcherBuilder());
            _dfa      = (DfaMatcher)SetupMatcher(CreateDfaMatcherBuilder());
        }
        public void Setup()
        {
            SetupEndpoints();

            SetupRequests();

            // The perf is kinda slow for these benchmarks, so we do some sampling
            // of the request data.
            _samples = SampleRequests(EndpointCount, SampleCount);

            _baseline = (BarebonesMatcher)SetupMatcher(new BarebonesMatcherBuilder());
            _dfa      = (DfaMatcher)SetupMatcher(CreateDfaMatcherBuilder());
        }