diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-02 13:41:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-02 13:41:36 +0200 |
commit | 51f98e74749acd4b41c642380c7ad4d340e9d3c2 (patch) | |
tree | 8639bc66938657631ca98b050536c5f671802ac8 /data/templates/snmp | |
parent | 096c77340b2a6a72edbed660fe4fb000aca9275f (diff) | |
download | vyos-1x-51f98e74749acd4b41c642380c7ad4d340e9d3c2.tar.gz vyos-1x-51f98e74749acd4b41c642380c7ad4d340e9d3c2.zip |
validators: numeric: T2414: improve runtime performance
$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric --range 1-9999 666; done
real 0m56.933s
user 0m48.045s
sys 0m9.064s
$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric--range 1-9999 666; done
real 0m44.552s
user 0m37.760s
sys 0m6.989s
This is a performance improvement of 21%, running in an ESXi VM with Quad
Intel(R) Xeon(R) CPU E5-2630L v3 @ 1.80GHz.
Diffstat (limited to 'data/templates/snmp')
0 files changed, 0 insertions, 0 deletions