jruby-mapdb 1.0.0-java → 1.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Jruby::Mapdb
2
2
 
3
- This is a jruby-only wrapper for MapDB (v0.9.6). MapDB is a fast key-value store java library.
3
+ This is a jruby-only wrapper for MapDB (v0.9.7). MapDB is a fast key-value store java library.
4
4
 
5
5
  Using this gem, MapDB trees are seen as hashes in jruby, making persistence easy and cheap.
6
6
 
data/Rakefile CHANGED
@@ -7,4 +7,31 @@ Rake::TestTask.new 'test' do |t|
7
7
  t.verbose = true
8
8
  end
9
9
 
10
+ def runme(iterations)
11
+ @f = Tempfile.new('bmdb')
12
+ @db = Jruby::Mapdb::DB.new(@f.path)
13
+ @db.tree :Numbers
14
+ i = 1
15
+ iterations.times do
16
+ Numbers[i] = i
17
+ i += 1
18
+ end
19
+ @db.close
20
+ File.delete(@f.path + '.p')
21
+ Object.send(:remove_const, :Numbers)
22
+ end
23
+
24
+ desc 'Run benchmarks'
25
+ task :bm do |t|
26
+ $: << File.expand_path('../lib', __FILE__)
27
+ %w[benchmark jruby-mapdb tempfile].map &method(:require)
28
+ Benchmark.bm(8) do |x|
29
+ x.report("1k") { runme 1_000 }
30
+ x.report("10k") { runme 10_000 }
31
+ x.report("100k") { runme 100_000 }
32
+ x.report("1M") { runme 1_000_000 }
33
+ x.report("10M") { runme 10_000_000 }
34
+ end
35
+ end
36
+
10
37
  task :default => 'test'
@@ -1,5 +1,5 @@
1
1
  module Jruby
2
2
  module Mapdb
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby-mapdb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.1.0
6
6
  platform: java
7
7
  authors:
8
8
  - Christian MICHON
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-09-30 00:00:00 Z
13
+ date: 2013-11-04 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: MapDB wrapper for JRuby
@@ -30,7 +30,7 @@ files:
30
30
  - Rakefile
31
31
  - README.md
32
32
  - lib/jruby-mapdb.rb
33
- - lib/mapdb-0.9.6.jar
33
+ - lib/mapdb-0.9.7.jar
34
34
  - lib/jruby/mapdb.rb
35
35
  - lib/jruby/mapdb/version.rb
36
36
  - test/mapdb_test.rb
data/lib/mapdb-0.9.6.jar DELETED
Binary file