Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    BSD::getloadavg 0.03

    Download button

    No screenshots available
    Downloads: 430  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.5/5)
    2 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dan Kogai | More programs
    Perl Artistic License / FREE
    November 27th, 2007, 09:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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) =~ /([.d]+)s+([.d]+)s+([.d]+)/);

    You can simply

    use BSD::getloadavg;
    my @loadavg = getloadavg();

    COMPATIBILITY

    Though 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 getloadavg

    BENCHMARK

    You 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



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    getloadavg interface | Perl interface | Perl module | getloadavg | Perl | interface

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM