This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns | |
^{:doc "Concurrent keyed pool implementation using ConcurrentHashMap and ConcurrentLinkedQueue"} | |
kafka-clj.pool-impl | |
(:use criterium.core) | |
(:import (java.util.concurrent ConcurrentLinkedQueue ConcurrentHashMap Semaphore ExecutorService Executors TimeUnit))) | |
;; add [criterium "0.4.4"] to you're project.clj file | |
;; then use run-test-cc and run-test-a | |
;; | |
;; Results for both ConcurrentLinkedQueue + Semaphore and for atom + vector access is the same |