djberg96 / sys-proctable

A cross-platform Ruby interface for gathering process information on your operating system
Apache License 2.0
150 stars 33 forks source link

Add bench_ips_ps script #67

Closed NickLaMuro closed 6 years ago

NickLaMuro commented 6 years ago

Used this to test changes before and after to compare the number of iterations per second a particular change had an effect on with .ps being run. Similar to the existing benchmarks/bench_ps.rb script, but basically duplicates the runs, and labels 2 for the original, and two for the source.

Sample invocation/usage:

$ bench/bench_ips_ps --gem
$ bench/bench_ips_ps --gem
$ bench/bench_ips_ps --source
$ bench/bench_ips_ps --source

Comparison results will be shown after the last run. Do to limitations in the benchmarks/ips hold functionality, this was the best way to run this.

Example results can be found in the "Benchmarks" of the https://github.com/djberg96/sys-proctable/pull/66 description (Note: The output was munged together by hand though, to make it easier to digest by the reader).