For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.56k
stars
244
forks
source link
OS-8428 sysinfo may fail on strings "sanitized" by smbios but are toxic to json #1065
@danmcd Ok, after your comment I did some benchmarking and it turns out that calling node 8 times increased the run time by 0.5s-1s.
I decided to try rewriting it. I ran the original version and my new version each 100x. The old version runs on average 1.210s, with stdev of 0.013s. The new version now runs on average 1.258s, with stdev of 0.011.
So of my tests with this new version, we're on average 1/20ths slower.
@danmcd Ok, after your comment I did some benchmarking and it turns out that calling node 8 times increased the run time by 0.5s-1s.
I decided to try rewriting it. I ran the original version and my new version each 100x. The old version runs on average
1.210
s, with stdev of0.013
s. The new version now runs on average1.258
s, with stdev of0.011
.So of my tests with this new version, we're on average 1/20ths slower.