ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.70 by root, Fri Apr 25 07:25:44 2008 UTC vs.
Revision 1.71 by root, Fri Apr 25 07:29:42 2008 UTC

864 864
865 865
866=head1 BENCHMARK 866=head1 BENCHMARK
867 867
868To give you an idea of the performance and overheads that AnyEvent adds 868To give you an idea of the performance and overheads that AnyEvent adds
869over the event loops themselves (and to give you an impression of the
869over the event loops directly, here is a benchmark of various supported 870speed of various event loops), here is a benchmark of various supported
870event models natively and with anyevent. The benchmark creates a lot of 871event models natively and with anyevent. The benchmark creates a lot of
871timers (with a zero timeout) and io watchers (watching STDOUT, a pty, to 872timers (with a zero timeout) and io watchers (watching STDOUT, a pty, to
872become writable, which it is), lets them fire exactly once and destroys 873become writable, which it is), lets them fire exactly once and destroys
873them again. 874them again.
874 875
893I<invoke> is the time, in microseconds, used to invoke a simple 894I<invoke> is the time, in microseconds, used to invoke a simple
894callback. The callback simply counts down a Perl variable and after it was 895callback. The callback simply counts down a Perl variable and after it was
895invoked "watcher" times, it would C<< ->broadcast >> a condvar once to 896invoked "watcher" times, it would C<< ->broadcast >> a condvar once to
896signal the end of this phase. 897signal the end of this phase.
897 898
898I<destroy> is the time, in microseconds, that it takes destroy a single 899I<destroy> is the time, in microseconds, that it takes to destroy a single
899watcher. 900watcher.
900 901
901=head2 Results 902=head2 Results
902 903
903 name watcher bytes create invoke destroy comment 904 name watcher bytes create invoke destroy comment

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines