Tuesday, November 10, 2009

G++ VS. Modified G++

The goal: Test build times between packaging using regular g++ and modified g++.

Getting the modified version of g++ required using a script called build-tools.sh. I executed this tool and it had created a tools directory in my home directory on the Australia machine.

The package I used to test g++ was abiword. I ran, time rpmbuild -ba abiword.spec a few times and recorded the times.

After renaming g++ I created a symbolic link using the following command:

su - c "ln -s /home/apvlahopoulos/tools/gcc-dehydra/installed/bin /[gc]++ /usr/bin"

Once the symbolic link was created, I ran the builds again...

I was having some install errors and then used

time QA_RPATHS=$[ 0x003f ] rpmbuild -ba abiword.spec

The results:

Test 1
Regular g++

real 9m33.509s

user 13m27.408s

sys 4m22.554s

Modified g++

real 7m23.409s

user 6m12.774s

sys 4m34.408s

Test 2
Regular g++

real 5m44.997s

user 5m37.223s

sys 3m44.992s

Modified g++

real 6m42.508s

user 10m36.408s

sys 3m15.561s

Test 3
Regular g++
real 5m56.887s

user 5m32.211s

sys 3m17.743s

Modified g++

real 7m7.550s
user 4m6.848s
sys 1m53.461s


No comments:

Post a Comment