Permalink
Browse files

update criterium to 0.3.0

  • Loading branch information...
1 parent 4b2d46f commit dc6f43c9b880b75ec7be731a32215c67b5661abf @dakrone committed Nov 16, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 project.clj
  2. +4 −4 test/cheshire/test/benchmark.clj
View
@@ -5,7 +5,7 @@
:dependencies [[com.fasterxml.jackson.core/jackson-core "2.1.0"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-smile "2.1.0"]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.4.0"]
- [criterium "0.2.1"]
+ [criterium "0.3.0"]
[org.clojure/test.generative "0.1.4"]
[org.clojure/data.json "0.2.0"]
[clj-json "0.5.0"]]}
@@ -24,20 +24,20 @@
(deftest ^{:benchmark true} t-bench-clj-json
(println "-------- clj-json Benchmarks --------")
(bench/with-progress-reporting
- (bench/quick-bench (clj-json/parse-string
- (clj-json/generate-string test-obj)) :verbose))
+ (bench/bench (clj-json/parse-string
+ (clj-json/generate-string test-obj)) :verbose))
(println "-------------------------------------"))
(deftest ^{:benchmark true} t-bench-clojure-json
(println "-------- Data.json Benchmarks -------")
(bench/with-progress-reporting
- (bench/quick-bench (cj/read-str (cj/write-str test-obj)) :verbose))
+ (bench/bench (cj/read-str (cj/write-str test-obj)) :verbose))
(println "-------------------------------------"))
(deftest ^{:benchmark true} t-bench-core
(println "---------- Core Benchmarks ----------")
(bench/with-progress-reporting
- (bench/quick-bench (core/decode (core/encode test-obj)) :verbose))
+ (bench/bench (core/decode (core/encode test-obj)) :verbose))
(println "-------------------------------------"))
(deftest ^{:benchmark true} t-bench-custom

0 comments on commit dc6f43c

Please sign in to comment.