From 3c2c1e47b24396256a996ad591c41f9fd9fa9da0 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sun, 13 Jan 2019 22:29:03 +0200 Subject: [PATCH] . --- perf-test/clj/reitit/calf_perf_test.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/perf-test/clj/reitit/calf_perf_test.clj b/perf-test/clj/reitit/calf_perf_test.clj index 002793e9..6609f0b1 100644 --- a/perf-test/clj/reitit/calf_perf_test.clj +++ b/perf-test/clj/reitit/calf_perf_test.clj @@ -3,6 +3,7 @@ [reitit.perf-utils :refer :all] [ring.util.codec] [reitit.impl] + [clojure.edn :as edn] [reitit.ring :as ring] [reitit.core :as r]) (:import (reitit SegmentTrie))) @@ -108,11 +109,12 @@ (r/match-by-path router "/user/1234/profile/compact"))) (comment - (read-string + (edn/read-string (str (.matcher (doto (SegmentTrie.) (.add "/user" 1) - (.add "/user/id" 2) - (.add "/user/id/permissions2" nil)))))) + (.add "/user/:id" 2) + (.add "/user/:id/orders" 3) + (.add "/user/id/permissions" 4))))))