Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change cljexprs warmup-jit-period and target-execution-time back to c…

…riterium defaults
  • Loading branch information...
commit 899bc95ee5722c54b35d14ff0f0cae133cb3ddf1 1 parent bff8ca8
Andy Fingerhut authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 cljexprs/src/cljexprs/core.clj
10 cljexprs/src/cljexprs/core.clj
View
@@ -6,21 +6,21 @@
(set! *warn-on-reflection* true)
-(def ^:dynamic *sample-count* 60)
+(def ^:dynamic *sample-count* 30)
;; time units for values below are nanosec
(def s-to-ns (* 1000 1000 1000))
;; No warmup except the code that estimates the number of executions
;; of the expression needed to take about *target-execution-time*
-(def ^:dynamic *warmup-jit-period* (long (* 0 s-to-ns)))
+;;(def ^:dynamic *warmup-jit-period* (long (* 0 s-to-ns)))
;; criterium default = 10 sec
-;;(def ^:dynamic *warmup-jit-period* (long (* 10 s-to-ns)))
+(def ^:dynamic *warmup-jit-period* (long (* 10 s-to-ns)))
;; 100 msec
-(def ^:dynamic *target-execution-time* (long (* 0.1 s-to-ns)))
+;;(def ^:dynamic *target-execution-time* (long (* 0.1 s-to-ns)))
;; criterium default = 1 sec
-;;(def ^:dynamic *target-execution-time* (long (* 1.0 s-to-ns)))
+(def ^:dynamic *target-execution-time* (long (* 1.0 s-to-ns)))
(def ^:dynamic *auto-flush* true)
Please sign in to comment.
Something went wrong with that request. Please try again.