X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c9a111acf47cb5bb2138d1f699253f87d68e53e8..e59229a2d540b00566f44c8f29764de3ae89b5be:/client-libraries/clojure/benchmarks/ruby.clj diff --git a/client-libraries/clojure/benchmarks/ruby.clj b/client-libraries/clojure/benchmarks/ruby.clj new file mode 100644 index 00000000..0ede54d4 --- /dev/null +++ b/client-libraries/clojure/benchmarks/ruby.clj @@ -0,0 +1,26 @@ +(ns benchmarks.ruby + (:require redis)) + + +(dotimes [n 2] + (redis/with-server + {} + (redis/set "foo" "The first line we sent to the server is some text") + (time + (dotimes [i 20000] + (let [key (str "key" i)] + (redis/set key "The first line we sent to the server is some text") + (redis/get "foo")))))) + + +;(redis/with-server +; {} +; (redis/set "foo" "The first line we sent to the server is some text") +; (time +; (dotimes [i 20000] +; (let [key (str "push_trim" i)] +; (redis/lpush key i) +; (redis/ltrim key 0 30))))) + + +