I want to compare 2 versions of same program - im trying to optimize them for speed/cpu use.
Now i tested 2 versions of and got output from time(1), but i cant understand how to compare these data wisely :\
Got 3 test for each version, version1:
version2:
I know(by code design) version2 IS faster, but i need to know how to measure by howmuch percent.
Sry for bad english. Thanks.
Now i tested 2 versions of and got output from time(1), but i cant understand how to compare these data wisely :\
Got 3 test for each version, version1:
Code:
0.043u 0.208s 0:02.26 10.6% 9+1008k 0+0io 0pf+0w
0.031u 0.203s 0:02.62 8.7% 13+1340k 0+0io 0pf+0w
0.193u 0.109s 0:02.74 10.5% 0+839k 0+0io 0pf+0w
Code:
0.167u 0.101s 0:02.60 10.0% 7+948k 0+0io 0pf+0w
0.098u 0.110s 0:01.94 10.3% 1+947k 0+0io 0pf+0w
0.137u 0.068s 0:01.90 10.0% 2+1175k 0+0io 0pf+0w
I know(by code design) version2 IS faster, but i need to know how to measure by howmuch percent.
Sry for bad english. Thanks.