[#46329] [ruby-trunk - Feature #7252][Assigned] version number of 2.0 release — "usa (Usaku NAKAMURA)" <usa@...>

26 messages 2012/11/01

[#46350] RubySpecメンテナ — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

15 messages 2012/11/02
[#46352] Re: RubySpecメンテナ — Urabe Shyouhei <shyouhei@...> 2012/11/02

On 11/01/2012 07:43 PM, Yukihiro Matsumoto wrote:

[#46414] [ruby-trunk - Bug #7287][Open] please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10 — "ngoto (Naohisa Goto)" <ngotogenome@...>

10 messages 2012/11/06

[#46434] トラップハンドラで許されない操作はなにか — KOSAKI Motohiro <kosaki.motohiro@...>

GyRCPi46aiRHJDkbKEIKCltCdWcgIzcxMzRdIBskQiRyRDQkWSRGJCQkRj88SiUkSjtFTU1MZEJq

9 messages 2012/11/06

[#46440] [ruby-trunk - Bug #7300][Open] Hash#[] の挙動が 1.9.3 と異なっている — "hsbt (Hiroshi SHIBATA)" <shibata.hiroshi@...>

12 messages 2012/11/07

[#46477] Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — SASADA Koichi <ko1@...>

refinement を導入するときの性能に対する excuse が「method cache に殆どあ

20 messages 2012/11/11
[#46480] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — Shugo Maeda <shugo@...> 2012/11/11

前田です。

[#46488] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — SASADA Koichi <ko1@...> 2012/11/12

 ささだです.

[#46491] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — Shugo Maeda <shugo@...> 2012/11/12

前田です。

[#46493] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — SASADA Koichi <ko1@...> 2012/11/12

 ささだです.

[#46495] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — Shugo Maeda <shugo@...> 2012/11/12

前田です。

[#46497] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — SASADA Koichi <ko1@...> 2012/11/12

(2012/11/12 18:20), Shugo Maeda wrote:

[#46501] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — Shugo Maeda <shugo@...> 2012/11/12

前田です。

[#46513] Re: Fwd: [ruby-changes:25559] shugo:r37616 (trunk): * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo): — Nobuyoshi Nakada <nobu@...> 2012/11/14

なかだです。

[#46509] [ruby-trunk - Bug #7344][Open] gem pristine bigdecimal が失敗してしまう — "hsbt (Hiroshi SHIBATA)" <shibata.hiroshi@...>

31 messages 2012/11/13

[#46520] [ruby-trunk - Bug #7356][Open] ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化 — "yanoh (Yutaka Yanoh)" <yutaka@...>

11 messages 2012/11/15

[#46647] [ruby-trunk - Bug #7452][Assigned] Main thread is stopped after running finalizers if the main thread has a finalizer — "mrkn (Kenta Murata)" <muraken@...>

8 messages 2012/11/28

[ruby-dev:46547] ベンチマークが終わらない

From: SASADA Koichi <ko1@...>
Date: 2012-11-19 22:36:44 UTC
List: ruby-dev #46547
shugo さんの refinement の修正についてベンチマークを取ろうと,昨日からす
べてのベンチマークを走らせたところ,普段なら数時間で終わるのですが,今見
たら終わってませんでした.

> so_nsieve_bits
> 
> #!/usr/bin/ruby
> #
> # The Great Computer Language Shootout
> # http://shootout.alioth.debian.org/
> #
> # nsieve-bits in Ruby
> # Contributed by Glenn Parker, March 2005
> 
> CharExponent = 3
> BitsPerChar = 1 << CharExponent
> LowMask = BitsPerChar - 1
> 
> def sieve(m)
>   items = "\xFF" * ((m / BitsPerChar) + 1)
>   masks = ""
>   BitsPerChar.times do |b|
>     masks << (1 << b).chr
>   end
> 
>   count = 0
>   pmax = m - 1
>   2.step(pmax, 1) do |p|
>     if items[p >> CharExponent][p & LowMask] == 1
>       count += 1
>       p.step(pmax, p) do |mult|
>         a = mult >> CharExponent
>         b = mult & LowMask
>         items[a] -= masks[b] if items[a][b] != 0
>       end
>     end
>   end
>   count
> end
> 
> n = 9 # (ARGV[0] || 2).to_i
> n.step(n - 2, -1) do |exponent|
>   break if exponent < 0
>   m = 2 ** exponent * 10_000
>   count = sieve(m)
>   printf "Primes up to %8d %8d\n", m, count
> end
> 
> 
> clean   30256.3521170616
=>  504.272535 分

このベンチマークがえらい時間かかっているようなのですが,何かお心当たりの
ある人は居ませんか? ちょっと異常です.

以前は 5 秒弱で終わっていました.

この clean というのは
ruby 2.0.0dev (2012-11-19 trunk 37722) [x86_64-linux]
です.

nari さんの定点ベンチマークでは,なんか出てます?

-- 
// SASADA Koichi at atdot dot net

In This Thread

Prev Next