Ubuntu on win VS ubuntu (virtual box) VS Cygwin, ubuntucygwin
The execution time of the command is roughly estimated: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 )}
Cygwin's three execution results:
Ubuntu 14.04 on win10Lewis @ LC :~ $ 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 time: 9.767005900000001 s
9.5083437 s(Repeat the experiment)
9.4662872 s(Repeat the experiment)-----------------------------------------------------------------
Virtual box ubuntu 14.04 -- vagrantRoot @ data-science-toolbox :~ # 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: 00 VM time:
14.653555712 s
15.278980593 s (repeated experiments)
15.296027440 s(Repeat the experiment)-----------------------------------------------------------------
Cygwin's three execution results:
8.5831758 s
8.517869500000003 s(Repeat the experiment)
8.648266500000005 s(Repeat the experiment)We can see that there is a big gap between the execution time of the three (three methods available for win system. The execution time of ubuntu on win is more advantageous than that of virtual machines. However, cygwin takes less time to execute than ubuntu on win.