summaryrefslogtreecommitdiff
path: root/speed-test
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-10 11:57:02 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-10 12:03:08 +0300
commit78a211f249d3a70c4c3322abe616cded5a7e085b (patch)
treec1798319e193df78a4afa8aa0276d767152b5304 /speed-test
parent9b5ba7f23fe584f5807fea183070cee7594898e1 (diff)
downloadttystatus-78a211f249d3a70c4c3322abe616cded5a7e085b.tar.gz
Improve speed when output is disabled
There's no point in trying to render if output isn't happening. This brings benchmark time from about 26 seconds to 7.
Diffstat (limited to 'speed-test')
-rwxr-xr-xspeed-test1
1 files changed, 1 insertions, 0 deletions
diff --git a/speed-test b/speed-test
index c3fb646..3c04899 100755
--- a/speed-test
+++ b/speed-test
@@ -53,6 +53,7 @@ ts.format(
'%ElapsedTime() %Counter(current-file) files found; '
'%ByteSize(uploaded-bytes) uploaded %Pathname(current-dir)')
ts['uploaded-bytes'] = 0
+ts.disable()
num_updates = 1000*1000