Could someone please explain why it takes about 16 seconds from my Python script to complete while it takes about 194 seconds (!!) from the Shell script to complete on the same machine.
Here are my scripts:
#!/usr/bin/env bash
for i in `seq 1 10000000`;
do
echo -e $i '\t' 200000;
done
and
#!/usr/bin/python
for x in range(1, 10000001):
print "%d \t 200000" % (x)