[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    [ruby-core:54693] [ruby-trunk - Feature #6183] Enumerator::Lazy performance issue
From:       "zzak (Zachary Scott)" <zachary () zacharyscott ! net>
Date:       2013-04-29 13:07:08
Message-ID: redmine.journal-39039.20130429220707 () ruby-lang ! org
[Download RAW message or body]


Issue #6183 has been updated by zzak (Zachary Scott).


@gregolsen Sure, np!
----------------------------------------
Feature #6183: Enumerator::Lazy performance issue
https://bugs.ruby-lang.org/issues/6183#change-39039

Author: gregolsen (Innokenty Mikhailov)
Status: Assigned
Priority: Low
Assignee: zzak (Zachary Scott)
Category: 
Target version: 


I benchmarked Enumerator::Lazy and that's what I got:
                 user     system      total        real
Lazy:        0.690000   0.010000   0.700000 (  0.733160)
Normal:      0.160000   0.010000   0.170000 (  0.186695)

It seems like even with 4 chain links and 3000 elements in initial array, Lazy \
enumerator is almost 4(!) times slower than the normal case.

Instead of performance benefit we've got 4 times performance drawback.

See test file attached.


-- 
http://bugs.ruby-lang.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic