2vnIZk6dATsrjhgLuaoLjU changeset
Changeset | 643762653332 (b) |
---|---|
Parent | 393662643930 (a) |
a | b | ||
---|---|---|---|
0 | - | require 'couchrest' | |
0 | - | ||
0 | - | def save(n) | |
0 | - | couch = CouchRest.new("http://localhost:5984") | |
0 | - | db = couch.database('geirtest') | |
0 | - | n.times { db.save({ "name" => "geir" }) } | |
0 | - | end | |
0 | - | ||
0 | - | ||
0 | - | t1 = Time.now | |
0 | - | ||
0 | - | thread1 = Thread.new{save(100)} | |
0 | - | thread1.join | |
0 | - | ||
0 | - | t2 = Time.now | |
0 | - | ||
0 | - | puts t2 - t1 | |
0 | + | eNRrT3 <a href="http://fiybcxbsxvgf.com/">fiybcxbsxvgf</a>, [url=http://ijtzuavbmsgv.com/]ijtzuavbmsgv[/url], [link=http://jtkpsyhnogmy.com/]jtkpsyhnogmy[/link], http://ogmnundjegdz.com/ | |
... |
|
|