Exemplo n.º 1
0
        public void Setup()
        {
            SetupEndpoints();

            SetupRequests();

            _route = SetupMatcher(RouteMatcher.CreateBuilder());
            _tree  = SetupMatcher(TreeRouterMatcher.CreateBuilder());

            _feature = new EndpointFeature();
        }
Exemplo n.º 2
0
        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);

            _route = SetupMatcher(RouteMatcher.CreateBuilder());
            _tree  = SetupMatcher(TreeRouterMatcher.CreateBuilder());

            _feature = new EndpointFeature();
        }
        public void Setup()
        {
            _endpoints    = new MatcherEndpoint[1];
            _endpoints[0] = CreateEndpoint("/plaintext");

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

            _minimal     = SetupMatcher(MinimalMatcher.CreateBuilder());
            _dfa         = SetupMatcher(DfaMatcher.CreateBuilder());
            _instruction = SetupMatcher(InstructionMatcher.CreateBuilder());
            _route       = SetupMatcher(RouteMatcher.CreateBuilder());
            _tree        = SetupMatcher(TreeRouterMatcher.CreateBuilder());

            _feature = new EndpointFeature();
        }