execute command rough estimate execution time:Date--rfc-3339= ' ns '; seq 100000000 | grep 8 | Wc-w; Date--rfc-3339= ' NS '
ubuntu 14.04 on Win10
Virtual Box {ubuntu 14.04 (vagrant)}
three execution results for Cygwin:
ubuntu 14.04 on Win10[Email protected]:~$ date--rfc-3339= ' ns '; seq 100000000 | grep 8 | Wc-w; Date--rfc-3339= ' ns ' 2016-08-06 11:41:01.908690300+08:00569532792016-08-06 11:41:11.380299600+08:00
bash spents: 9.767005900000001s
9.5083437s(repeat experiment)
9.4662872s(repeat experiment) -----------------------------------------------------------------
Virtual box Ubuntu 14.04--vagrant[Email protected]:~# date--rfc-3339= ' ns '; seq 100000000 | grep 8 | Wc-w; Date--rfc-3339= ' ns ' 2016-08-06 12:03:38.912336620+08:00569532792016-08-06 12:03:53.565892332+08:00Virtual machine Time:
14.653555712s
15.278980593s (Repeat experiment)
15.296027440s(repeat experiment) -----------------------------------------------------------------
three execution results for Cygwin:
8.5831758s
8.517869500000003s(repeat experiment)
8.648266500000005s(repeat experiment) you can see that the three (win system can be three ways) execution time or there is a large gap. the execution time of Ubuntu on win is more advantageous than the virtual machine. But Cygwin's execution time is slightly less than Ubuntu on win.
Ubuntu on Win vs Ubuntu (virtual box) vs Cygwin