From: "akira yamada / やまだあきら" Date: 2001-05-09T15:05:55+09:00 Subject: [ruby-list:29605] Re: xpstore Wed, 2 May 2001 11:59:22 +0900 頃の Mail-Count: 29484 Subject: [ruby-list:29484] Re: xpstore についてのお話にて Yukihiro Matsumoto さん曰く… (Y == matz@zetabits.com (Yukihiro Matsumoto) さん) In article 29484, <988766557.925088.15584.nullmailer@ev.netlab.zetabits.com> Y> この速度の原因はなんなんでしょうね。flockで待つ必要がないこ Y> とか、書き込み処理がないことかではないかと予想するのですが。 Y> Y> 1.7 のpstoreは更新されていなければファイルへの書き込みは行わ Y> ないのですが(marshalは行います)、この辺は速度に関係するので Y> しょうか? XPStoreで速くなるのは, 同時にアクセスするプロセスが複数いて しかも読み込みがほとんどというケースなので 1.6→1.7の変更ではそれほど変わらないようです. $ ruby-beta -v test2.rb 10 PStore 50 1 3000 ruby 1.7.0 (2001-05-07) [i386-linux] ./benchmark.rb:46: warning: print (...) interpreted as method call PStore 1.000000 0.280000 1.280000 ( 13.165319) PStore 0.970000 0.290000 1.260000 ( 13.239765) PStore 1.040000 0.300000 1.340000 ( 13.327358) PStore 1.030000 0.290000 1.320000 ( 13.296780) PStore 1.060000 0.200000 1.260000 ( 13.022845) PStore 0.980000 0.240000 1.220000 ( 12.970015) PStore 1.020000 0.260000 1.280000 ( 13.249534) PStore 1.060000 0.190000 1.250000 ( 12.936891) PStore 0.950000 0.260000 1.210000 ( 12.617803) PStore 0.950000 0.370000 1.320000 ( 13.252610) PStore: 29409 591 591 $ ruby-beta -v test2.rb 10 XPStore 50 1 3000 ruby 1.7.0 (2001-05-07) [i386-linux] ./benchmark.rb:46: warning: print (...) interpreted as method call XPStore 0.320000 0.080000 0.400000 ( 3.848528) XPStore 0.300000 0.080000 0.380000 ( 3.823339) XPStore 0.290000 0.120000 0.410000 ( 3.951646) XPStore 0.360000 0.070000 0.430000 ( 3.931581) XPStore 0.300000 0.070000 0.370000 ( 3.791742) XPStore 0.300000 0.070000 0.370000 ( 3.783584) XPStore 0.360000 0.080000 0.440000 ( 3.898706) XPStore 0.300000 0.090000 0.390000 ( 3.746849) XPStore 0.290000 0.070000 0.360000 ( 3.645467) XPStore 0.340000 0.050000 0.390000 ( 3.574248) XPStore: 29383 617 617 こうかな. 同じテストを1.7でやってみたものです. -- やまだ あきら (akira@arika.org, akira@ruby-lang.org or akira@ad-hoc.org)