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.96 by root, Sat Apr 26 11:16:16 2008 UTC vs.
Revision 1.97 by root, Sun Apr 27 03:31:53 2008 UTC

1133=head3 Discussion 1133=head3 Discussion
1134 1134
1135The benchmark tries to test the performance of a typical small 1135The benchmark tries to test the performance of a typical small
1136server. While knowing how various event loops perform is interesting, keep 1136server. While knowing how various event loops perform is interesting, keep
1137in mind that their overhead in this case is usually not as important, due 1137in mind that their overhead in this case is usually not as important, due
1138to the small absolute number of watchers. 1138to the small absolute number of watchers (that is, you need efficiency and
1139speed most when you have lots of watchers, not when you only have a few of
1140them).
1139 1141
1140EV is again fastest. 1142EV is again fastest.
1141 1143
1142The C-based event loops Event and Glib come in second this time, as the 1144The C-based event loops Event and Glib come in second this time, as the
1143overhead of running an iteration is much smaller in C than in Perl (little 1145overhead of running an iteration is much smaller in C than in Perl (little
1144code to execute in the inner loop, and perl's function calling overhead is 1146code to execute in the inner loop, and perl's function calling overhead is
1145high, and updating all the data structures is costly). 1147high, and updating all the data structures is costly).
1146 1148
1147The pure perl event loop is much slower, but still competitive. 1149The pure perl event loop is much slower, but still competitive.
1148 1150
1149POE also performs much better in this case, but is is stillf ar behind the 1151POE also performs much better in this case, but is is still far behind the
1150others. 1152others.
1151 1153
1152=head3 Summary 1154=head3 Summary
1153 1155
1154=over 4 1156=over 4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines