shirou_gopsutil/load
Lomanic 974d52d412 [load][darwin] Remove calls to sysctl binary in load/load_darwin.go #639
Again, a simple benchmark:

Lomanics-iMac:~ lomanic$ time ./load_avg.old ; time ./load_avg
{load1:0.89,load5:0.99,load15:1.01} <nil>

real    0m0.019s
user    0m0.008s
sys     0m0.013s
{load1:0.8876953125,load5:0.98828125,load15:1.0146484375} <nil>

real    0m0.011s
user    0m0.004s
sys     0m0.006s

This is faster and yields more precise results.
2019-03-02 23:22:53 +01:00
..
load.go Use static initialisation for invoke instances, instead of init funcs 2018-03-21 14:08:39 +00:00
load_bsd.go change to use CommandContext. 2018-03-31 21:35:53 +09:00
load_darwin.go [load][darwin] Remove calls to sysctl binary in load/load_darwin.go #639 2019-03-02 23:22:53 +01:00
load_fallback.go Add WithContext functions. 2017-12-31 15:25:49 +09:00
load_linux.go Add WithContext functions. 2017-12-31 15:25:49 +09:00
load_test.go [load] freebsd: change to use x/sys/unix.SysctlRaw. 2017-10-04 22:34:47 +09:00
load_windows.go Add WithContext functions. 2017-12-31 15:25:49 +09:00