From 44aa7c8efd97054e25c6d4769e0a1ac9231ec275 Mon Sep 17 00:00:00 2001 From: Chris Hapgood Date: Thu, 6 Jun 2024 17:01:14 -0400 Subject: [PATCH] Add the performance test It takes ~12 seconds to complete the performance test on a 2023 MacBook Pro with an Apple M2 Pro processor and 32G of RAM. --- test/challenge_test.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/challenge_test.clj b/test/challenge_test.clj index f778690..b45832f 100644 --- a/test/challenge_test.clj +++ b/test/challenge_test.clj @@ -45,3 +45,8 @@ (difference #{month0} #{week1} #{week2 week3})))) + +(deftest performance + (is (= #{#st/local-date-range "2020-01-01/P4Y" #st/local-date-range "2024-01-05/P5Y11M27D"} + (difference #{#st/local-date-range "2020-01-01/P10Y"} + #{#st/local-date-range "2024-01-01/P4D"}))))