… | |
… | |
863 | $quit->wait; |
863 | $quit->wait; |
864 | |
864 | |
865 | |
865 | |
866 | =head1 BENCHMARK |
866 | =head1 BENCHMARK |
867 | |
867 | |
868 | To give you an idea of the performance an doverheads that AnyEvent adds |
868 | To give you an idea of the performance and overheads that AnyEvent adds |
869 | over the backends, here is a benchmark of various supported backends. The |
869 | over the backends directly, here is a benchmark of various supported event |
870 | benchmark creates a lot of timers (with zero timeout) and io events |
870 | models natively and with anyevent. The benchmark creates a lot of timers |
871 | (watching STDOUT, a pty, to become writable). |
871 | (with a zero timeout) and io events (watching STDOUT, a pty, to become |
|
|
872 | writable), lets them fire exactly once and destroys them again. |
872 | |
873 | |
873 | Explanation of the fields: |
874 | Explanation of the fields: |
874 | |
875 | |
875 | I<watcher> is the number of event watchers created/destroyed. Sicne |
876 | I<watcher> is the number of event watchers created/destroyed. Sicne |
876 | different event models have vastly different performance each backend was |
877 | different event models have vastly different performance each backend was |