<div dir="ltr">This is not comprehensive data but some interesting bits<div><br></div><div>Average time taken for various commands in our .t files.</div><div><br></div><div>* glusterd - 2 second</div><div>* gluster vol start/stop - 3 second</div><div>* gluster vol set/info(any basic gluster cli command) -1 second<br></div><div>* gluster mount - 2 secondĀ <br></div><div>* gluster add brick - 2 second</div><div>* gluster remove brick - 5 second</div><div>* gluster rebalance start 5 second</div><div>* gluster tier attach/detach - 6 second</div><div><br></div><div>The only other single command which takes 1+ second is sleep. Most of the other</div><div>external commands we use in bash scripts are not that time taking.</div><div><br></div><div><br></div><div>Hence,</div><div><br></div><div>1. Don&#39;t stop/delete a gluster volume in .t file unless it is part of your test. Let the cleanup function handle that.</div><div>2. Don&#39;t call gluster vol info at the start of the test if not required</div><div>3. Merge as many tests as possible to reduce glusterd starts/vol starts and mounts.</div><div>4. Use sleep only if it is absolutely required.</div><div><br></div><div>You can use this bugĀ <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1294826">https://bugzilla.redhat.com/show_bug.cgi?id=1294826</a> to send patches to improve test times.</div><div><br></div><div><br></div><div>Thanks,</div><div>Raghavendra Talur</div></div>