Difference between revisions of "Hugin Speed Test Tab"

From PanoTools.org Wiki
Jump to: navigation, search
(Composed actual proposal to wiki)
(References)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
==Proposal==
 
==Proposal==
 +
 +
[For complete proposal please visit: http://www.google-melange.com and follow 'Hugin speed test tab']
 +
 
Generally performance is the key issue for any panorama stitcher and manipulation software like Hugin[1]. Also these days end user computational platforms are shifting towards tablet PCs, pads and smart phones etc. With advancement of these technologies, today, we have very diverse hardware and software specifications. In order to chose right hardware for Hugin one needs to know the performance per different hardware (with different operating systems installed).  
 
Generally performance is the key issue for any panorama stitcher and manipulation software like Hugin[1]. Also these days end user computational platforms are shifting towards tablet PCs, pads and smart phones etc. With advancement of these technologies, today, we have very diverse hardware and software specifications. In order to chose right hardware for Hugin one needs to know the performance per different hardware (with different operating systems installed).  
 
            
 
            
 
In order to know the performance of Hugin, one possible solution (as quoted on launchpad.net[2]) would be to create a system that will offer “Speed Test” tab on Hugin’s GUI.   
 
In order to know the performance of Hugin, one possible solution (as quoted on launchpad.net[2]) would be to create a system that will offer “Speed Test” tab on Hugin’s GUI.   
This system should automatically download the batch set of images and .pto[3] files from server and should do automated stitching tests. On successfully completion of these local tests it should upload the test results with determined hardware platform, Operating System, running process finger-printing [4], Hugin client identification (including MAC address, public IP, time-stamp etc). Then server should do analysis in detail of all the uploaded data by Hugin clients. Finally consolidated performance reports will be generated using Web-UI which will help entire community or users to choose right hardware.  
+
This system should automatically download the batch set of images and .pto[3] files from server and should do automated stitching tests. On successfully completion of these local tests it should upload the test results with determined hardware platform, Operating System, running process finger-printing [4], Hugin client identification (including MAC address, public IP, time-stamp etc). Then server should do analysis in detail of all the uploaded data by Hugin clients. Finally consolidated performance reports will be generated using Web-UI which will help entire community or users to choose right hardware.
  
 
==Proof Of Concept (POC) system diagram==       
 
==Proof Of Concept (POC) system diagram==       
===A. Hugin Speed Test - Brief class diagram [5]===
+
===A. Hugin Speed Test - Brief class diagram ===
 +
[[image:HuginSpeedTestClass.png|center|thumb|800px|]]
  
 
====Description====  
 
====Description====  
Line 14: Line 18:
  
 
On server side, multi-threaded server will parse this response and will log into database per client identification. These row data will be processed by server side analytic engine to generate reports which will help community or users to choose best hardware. These reports might help for benchmarking Hugin on different platform.         
 
On server side, multi-threaded server will parse this response and will log into database per client identification. These row data will be processed by server side analytic engine to generate reports which will help community or users to choose best hardware. These reports might help for benchmarking Hugin on different platform.         
===B. Hugin Speed Test - Brief sequence diagram [6]===
+
 
 +
===B. Hugin Speed Test - Brief sequence diagram ===
 +
[[image:HuginSpeedTestSequence.png|center|thumb|800px|]]
 +
 
 
====Description====
 
====Description====
 
Sequence diagram[6] shows clear flow of activities across proposed system.
 
Sequence diagram[6] shows clear flow of activities across proposed system.
  
==Programming languages and skills needed== C, C++, PHP, XML (library for XML parser), Bash or Shell scripting, HTML, Ajax (basic), Mysql (library api in C).   
+
==Plan Of Execution==
 +
{| class="wikitable"
 +
|-
 +
! Date
 +
! Plan (Life is good!)
 +
! Backup Plan (Life is bad!)
 +
|-
 +
| April 25 - May 23
 +
|
 +
* Set development environment (Already done!)
 +
* Read Wiki
 +
* Get to know community and mentors and keep tweaking proposed system specifications
 +
* Play with Hugin code-base mostly relevent to proposed task
 +
* Get ready with code snippets for later use
 +
|
 +
* Read wiki
 +
* Get to know primary mentor 
 +
|-
 +
| May 23 - June 20
 +
|
 +
* Start building Hugin client core
 +
* Implement proposed client operations and try to get a initial test of proposed system
 +
* Build XML core engine at server side
 +
* Take mentors review 
 +
|
 +
* At least complete Hugin client core for proposed system and only perform nominal proposed operations
 +
|-
 +
| June 20 - July 11
 +
|
 +
* Extend batch tasks screening test cases,
 +
* Extend server side XML core to send valid XML responses upon upload of test results,
 +
* Take mentors review and prepare midterm milestone. 
 +
|
 +
* On server side try to complete XML parsing.
 +
|-
 +
| July 11 - August 1
 +
|
 +
* Focus on server side to see how does server perform when multiple Hugin clients uploads the test results,
 +
* Start working on reporting,
 +
|
 +
* Go for single threaded XML server
 +
|-
 +
| August 1 - August 15
 +
|
 +
* Build Client and server side UI,
 +
* Update Hugin’s help file for new tab,
 +
* Write test cases and update wiki
 +
* Do server side reports tweaks if any.
 +
|
 +
* Complete client side UI.
 +
|-
 +
| August 15+
 +
|
 +
* Start creating patches and submit to Google.
 +
* Start looking for a gift to send to mentor :P
 +
|
 +
* Try to complete most of proposed task though GSoC 11 is finished.
 +
 
 +
|}
 +
 
 +
==Programming languages and skills needed==  
 +
C, C++, PHP, XML (library for XML parser), Bash or Shell scripting, HTML, Ajax (basic), Mysql (library api in C).   
 +
 
 +
==Some interesting test results ==
 +
===Test task===
 +
To stitch [[image:Chess-1.jpg|center|thumb|300px|]] and [[image:Chess-2.jpg|center|thumb|300px|]] using two different machines (Intel Core2 Duo Vs Atom ) and capture some performance points
 +
 
 +
===Test result===
 +
Resultant: [[image:Chess-1-2.jpg|center|thumb|600px|]]
 +
===Overall performance[5]===
 +
====CPU usage====
 +
[[image:CPU-usage.jpg|center|thumb|800px|]]
 +
====Memory usage====
 +
[[image:Memory-usage.jpg|center|thumb|800px|]]
 +
====Disk-usage====
 +
[[image:Disk-read-usage.jpg|center|thumb|800px|]]
 +
[[image:Disk-write-usage.jpg|center|thumb|800px|]]
  
 +
===Test summary===
 +
These results shows that hardware configuration plays a very vital role on Hugin's performance. Fine grained performance measurement per function should help Hugin to identify the expensiveness of various operations.
 +
   
 +
==References==
 +
* [1] Hugin - Panorama Photo stitcher Software, http://hugin.sourceforge.net/, 4th April 2011
 +
* [2] Possible google summer code 2011 Hugin-task, https://blueprints.launchpad.net/hugin/+spec/speed-test-tab, 4th April 2011
 +
* [3] Hugin file type, http://filext.com/file-extension/PTO, 4th April, 2011
 +
* [4] OS | Process finger prints detected by nmap, http://nmap.org/nmap-os-fingerprints, 4th April 2011
 +
* [5] All graphs are plotted using Gnuplot, http://www.gnuplot.info/, 16 April 2011 
  
 
[[Category:Software:Platform:Linux]]
 
[[Category:Software:Platform:Linux]]
 
[[Category:Software:Hugin]]
 
[[Category:Software:Hugin]]
 
[[Category:Community:Project]]
 
[[Category:Community:Project]]

Latest revision as of 03:59, 19 April 2011

Hugin Speed Test Tab

Proposal

[For complete proposal please visit: http://www.google-melange.com and follow 'Hugin speed test tab']

Generally performance is the key issue for any panorama stitcher and manipulation software like Hugin[1]. Also these days end user computational platforms are shifting towards tablet PCs, pads and smart phones etc. With advancement of these technologies, today, we have very diverse hardware and software specifications. In order to chose right hardware for Hugin one needs to know the performance per different hardware (with different operating systems installed).

In order to know the performance of Hugin, one possible solution (as quoted on launchpad.net[2]) would be to create a system that will offer “Speed Test” tab on Hugin’s GUI. This system should automatically download the batch set of images and .pto[3] files from server and should do automated stitching tests. On successfully completion of these local tests it should upload the test results with determined hardware platform, Operating System, running process finger-printing [4], Hugin client identification (including MAC address, public IP, time-stamp etc). Then server should do analysis in detail of all the uploaded data by Hugin clients. Finally consolidated performance reports will be generated using Web-UI which will help entire community or users to choose right hardware.

Proof Of Concept (POC) system diagram

A. Hugin Speed Test - Brief class diagram

HuginSpeedTestClass.png

Description

Per shown in class diagram[5], proposed system is divided into two parts namely client side Hugin speed tester and server side Hugin test results (Web). At client side, Hugin will execute tasks given by server. This task need not be same for all clients. Tasks fetched might be small, medium or large one. For example machine which has limited computation resource should not be asked to stitch batch of 20 high resolution images with size more than 20 MB per image etc. Client will be doing self screening test before fetching either small, medium or large task. Vice-versa will be applicable for clients with high computation resource. Upon completion of task(s) clients will send results to server in XML event response if there is any Internet connectivity.

On server side, multi-threaded server will parse this response and will log into database per client identification. These row data will be processed by server side analytic engine to generate reports which will help community or users to choose best hardware. These reports might help for benchmarking Hugin on different platform.

B. Hugin Speed Test - Brief sequence diagram

HuginSpeedTestSequence.png

Description

Sequence diagram[6] shows clear flow of activities across proposed system.

Plan Of Execution

Date Plan (Life is good!) Backup Plan (Life is bad!)
April 25 - May 23
  • Set development environment (Already done!)
  • Read Wiki
  • Get to know community and mentors and keep tweaking proposed system specifications
  • Play with Hugin code-base mostly relevent to proposed task
  • Get ready with code snippets for later use
  • Read wiki
  • Get to know primary mentor
May 23 - June 20
  • Start building Hugin client core
  • Implement proposed client operations and try to get a initial test of proposed system
  • Build XML core engine at server side
  • Take mentors review
  • At least complete Hugin client core for proposed system and only perform nominal proposed operations
June 20 - July 11
  • Extend batch tasks screening test cases,
  • Extend server side XML core to send valid XML responses upon upload of test results,
  • Take mentors review and prepare midterm milestone.
  • On server side try to complete XML parsing.
July 11 - August 1
  • Focus on server side to see how does server perform when multiple Hugin clients uploads the test results,
  • Start working on reporting,
  • Go for single threaded XML server
August 1 - August 15
  • Build Client and server side UI,
  • Update Hugin’s help file for new tab,
  • Write test cases and update wiki
  • Do server side reports tweaks if any.
  • Complete client side UI.
August 15+
  • Start creating patches and submit to Google.
  • Start looking for a gift to send to mentor :P
  • Try to complete most of proposed task though GSoC 11 is finished.

Programming languages and skills needed

C, C++, PHP, XML (library for XML parser), Bash or Shell scripting, HTML, Ajax (basic), Mysql (library api in C).

Some interesting test results

Test task

To stitch
Chess-1.jpg
and
Chess-2.jpg
using two different machines (Intel Core2 Duo Vs Atom ) and capture some performance points

Test result

Resultant:
Chess-1-2.jpg

Overall performance[5]

CPU usage

CPU-usage.jpg

Memory usage

Memory-usage.jpg

Disk-usage

Disk-read-usage.jpg
Disk-write-usage.jpg

Test summary

These results shows that hardware configuration plays a very vital role on Hugin's performance. Fine grained performance measurement per function should help Hugin to identify the expensiveness of various operations.

References