Skip to content

Commit

Permalink
let's do quick benchmarking, I'm impatient
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Mar 9, 2012
1 parent 4dc1c69 commit 3d2b0cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
[org.codehaus.jackson/jackson-smile "1.9.5"]]}
:test-selectors {:default #(not (:benchmark %))
:benchmark :benchmark
:all (constantly true)})
:all (constantly true)}
:jvm-opts ["-Xmx512M"])
4 changes: 2 additions & 2 deletions test/cheshire/test/benchmark.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
(deftest ^{:benchmark true} t-bench-core
(println "---------- Core Benchmarks ----------")
(bench/with-progress-reporting
(bench/bench (core/decode (core/encode test-obj)) :verbose))
(bench/quick-bench (core/decode (core/encode test-obj)) :verbose))
(println "-------------------------------------"))

(deftest ^{:benchmark true} t-bench-custom
(println "--------- Custom Benchmarks ---------")
(bench/with-progress-reporting
(bench/bench (custom/decode (custom/encode test-obj)) :verbose))
(bench/quick-bench (custom/decode (custom/encode test-obj)) :verbose))
(println "-------------------------------------"))

0 comments on commit 3d2b0cb

Please sign in to comment.