Skip to content

Commit de06d87

Browse files
committed
Misc
1 parent 70e6027 commit de06d87

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

Performance.md

+26
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,29 @@ You can optionally use kgio to give Dalli a small, 10-20% performance boost: gem
3333
mixed:ruby:dalli 1.850000 0.640000 2.490000 ( 3.189240)
3434
mixedq:ruby:dalli 1.820000 0.530000 2.350000 ( 2.611830)
3535
incr:ruby:dalli 0.310000 0.110000 0.420000 ( 0.545641)
36+
37+
Testing 1.0.2 with rubinius 1.3.0dev (1.8.7 382e813f xxxx-xx-xx JI) [x86_64-apple-darwin10.6.0]
38+
user system total real
39+
set:plain:dalli 2.800581 0.329360 3.129941 ( 5.186546)
40+
setq:plain:dalli 1.064253 0.138044 1.202297 ( 1.280355)
41+
set:ruby:dalli 2.220885 0.262619 2.483504 ( 2.778118)
42+
get:plain:dalli 2.291344 0.280490 2.571834 ( 2.948004)
43+
get:ruby:dalli 2.148900 0.274477 2.423377 ( 2.425808)
44+
multiget:ruby:dalli 1.724193 0.249145 1.973338 ( 2.158673)
45+
missing:ruby:dalli 1.881502 0.272610 2.154112 ( 2.208384)
46+
mixed:ruby:dalli 4.292620 0.533768 4.826388 ( 4.830238)
47+
mixedq:ruby:dalli 4.076032 0.501442 4.577474 ( 4.583800)
48+
incr:ruby:dalli 0.691467 0.091475 0.782942 ( 0.931674)
49+
50+
Testing 1.0.2 with rubinius 1.2.0 (1.8.7 release 2010-12-21 JI) [x86_64-apple-darwin10.6.0]
51+
user system total real
52+
set:plain:dalli 6.586927 0.331545 6.918472 ( 4.628652)
53+
setq:plain:dalli 0.930905 0.129008 1.059913 ( 1.016105)
54+
set:ruby:dalli 2.702486 0.283004 2.985490 ( 2.690442)
55+
get:plain:dalli 2.740202 0.291353 3.031555 ( 2.722746)
56+
get:ruby:dalli 1.979379 0.282986 2.262365 ( 2.264118)
57+
multiget:ruby:dalli 1.887086 0.249799 2.136885 ( 1.803230)
58+
missing:ruby:dalli 1.882662 0.278019 2.160681 ( 2.113429)
59+
mixed:ruby:dalli 3.969242 0.553361 4.522603 ( 4.524504)
60+
mixedq:ruby:dalli 3.520755 0.475669 3.996424 ( 3.997405)
61+
incr:ruby:dalli 0.849998 0.094012 0.944010 ( 0.884001)

Rakefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ end
2727
require 'rake/rdoctask'
2828
Rake::RDocTask.new do |rd|
2929
rd.rdoc_files.include("lib/**/*.rb")
30-
end
30+
end
31+
32+
require 'rake/clean'
33+
CLEAN.include "**/*.rbc"
34+
CLEAN.include "**/.DS_Store"

test/test_active_support.rb

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ class TestActiveSupport < Test::Unit::TestCase
129129
assert_equal 2, @dalli.increment('counter')
130130
assert_equal 1, @dalli.decrement('counter')
131131
assert_equal "1", @dalli.read('counter', :raw => true)
132+
133+
assert_equal 0, @mc.increment('counterX')
134+
assert_equal 0, @mc.increment('counterX')
135+
assert_equal nil, @mc.read('counterX')
136+
137+
assert_equal 1, @dalli.increment('counterX')
138+
assert_equal 2, @dalli.increment('counterX')
139+
assert_equal 2, @dalli.read('counterX', :raw => true).to_i
132140
end
133141
end
134142
end

0 commit comments

Comments
 (0)