BSD::getloadavgBSD::getloadavg is a Perl Interface to getloadavg. | |
Download |
BSD::getloadavg Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Dan Kogai
- Publisher web site:
- http://search.cpan.org/~oyama/Crypt-Camellia-2.01/lib/Crypt/Camellia.pm
BSD::getloadavg Tags
BSD::getloadavg Description
BSD::getloadavg is a Perl Interface to getloadavg. BSD::getloadavg is a Perl Interface to getloadavg.SYNOPSIS use BSD::getloadavg; my @loadavg = getloadavg();This module allows you to access load average without invoking uptime(1). Instead of my @loadavg = (qx(uptime) =~ /(+)s+(+)s+(+)/);You can simply use BSD::getloadavg; my @loadavg = getloadavg();COMPATIBILITYThough named BSD::getloadavg, this module also works on Linux and other platforms that support getloadavg. To find if your platform supports this module, Just nm /usr/lib/libc.* | grep getloadavgBENCHMARKYou can run benchmark with t/benchmark.pl. Here is the result in my platforms.MacBook Pro 2GHz, Mac OS X 10.4.8 Benchmark: running XS, command for at least 3 CPU seconds... Rate command XS command 1061/s -- -98% XS 69808/s 6482% --Dual Xeon 2.8GHz, FreeBSD 6-Stable Benchmark: running XS, command for at least 3 CPU seconds... Rate command XS command 919/s -- -99% XS 139023/s 15026% --Requirements:· Perl Requirements: · Perl
BSD::getloadavg Related Software