SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
Analysing	
  Performance	
  of	
  XML	
  Data	
  
Binding	
  Solutions	
  for	
  SOS	
  Applications	
  
                       Alain	
  Tamayo,	
  Carlos	
  Granell,	
  Joaquín	
  Huerta	
  	
  
                Geospatial	
  Technologies	
  Research	
  Group,	
  Universitat	
  Jaume	
  I,	
  Spain	
  	
  

                                                     SWE	
  2011,	
  Oct	
  6-­‐7,	
  Banff,	
  Alberta,	
  Canada	
  
1	
  .	
  Motivation	
  



                                                                                                                  SOS-­‐based	
  applications	
  are	
  
                                                                                                                  commonplace	
  in	
  server,	
  web	
  and	
  
                                                                                                                  desktop	
  environments.	
  




                                                                                                                   It’s	
  just	
  a	
  matter	
  of	
  time	
  they	
  
                                                                                                                   become	
  commonplace	
  in	
  mobile	
  
                                                                                                                   devices	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     2	
  
2	
  .	
  Motivation	
  

        SOS	
  protocols	
  are	
  based	
  in	
  large	
  
        schemas	
  that	
  describes	
  the	
  structure	
  
        of	
  exchanged	
  messages	
  in	
  XML	
  format	
  
        (+700	
  types,	
  +80	
  schema	
  files)	
  

            •  Low-­‐Level	
  APIs:	
  
                •  Tree	
  APIs:	
  DOM	
  
                •  Streaming	
  APIs:	
  SAX,	
  StaX,	
  …	
  
            •  XML	
  Data	
  Binding:	
  XMLBeans,	
  JAXB,	
  
               XBinder,	
  …	
  

              Using	
  low-­‐level	
  APIs	
  in	
  the	
  presence	
  of	
  large	
  schemas	
  is	
  
              time-­‐consuming	
  and	
  error-­‐prone.	
  
              Using	
  XML	
  data	
  binding	
  is	
  advised,	
  but	
  frequently	
  
              generated	
  code	
  needs	
  more	
  computational	
  resources.	
  

Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     3	
  
3	
  .	
  Objectives	
  


                •  To	
  analyse	
  to	
  what	
  extent	
  the	
  use	
  of	
  XML	
  data	
  binding	
  solutions	
  is	
  a	
  
                   problem	
  in	
  SOS	
  applications	
  running	
  in	
  different	
  platforms	
  (Windows	
  
                   7	
  and	
  Android):	
  
                        •  Execution	
  speed	
  (without	
  including	
  storage	
  or	
  network	
  transfer	
  
                           times).	
  
                           •  Memory	
  consumption	
  	
  
                           •  Size	
  of	
  generated	
  code	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     4	
  
4	
  .	
  Experimental	
  Setup	
  

              •  4	
  datasets	
  of	
  real	
  SOS	
  data:	
  	
  
                      •  CAPS	
  (capabilities	
  files)	
  
                          •  SD	
  (Sensor	
  description	
  files)	
  
                          •  OBS	
  (Observation	
  files)	
  
                          •  MEA	
  (Measurement	
  files)	
  
              •  4	
  XML	
  data	
  binding	
  tools:	
  
                      •  XMLBeans	
  (PC)	
  
                          •  JAXB	
  (PC)	
  
                          •  XBinder	
  (PC	
  and	
  Mobile)	
  
                          •  DBMG	
  (PC	
  and	
  Mobile)	
  
              •  2	
  Hardware	
  platforms:	
  
                      •  HTC	
  Desire	
  Android	
  Phone	
  (1	
  GHz	
  CPU,	
  576	
  RAM)	
  
                          •  Windows	
  7	
  PC	
  (Intel	
  Quad	
  Core	
  i7	
  2.8	
  GHz	
  CPU,	
  8GB	
  	
  RAM)	
  


Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     5	
  
5	
  –	
  Execution	
  Speed	
  (CAPS	
  Dataset)	
  

              Mobile	
  Scenario	
                                                                                PC	
  Scenario	
  




            The	
  execution	
  times	
  for	
  the	
  mobile	
  phone	
  were	
  about	
  60	
  times	
  slower	
  than	
  
            for	
  the	
  personal	
  computer.	
  
            XML	
  processing	
  code	
  does	
  not	
  seem	
  to	
  be	
  a	
  bottleneck	
  for	
  PCs.	
  
            High	
  processing	
  times	
  for	
  mobiles	
  	
  raises	
  the	
  question	
  if	
  the	
  current	
  SOS	
  
            protocol	
  is	
  appropriate	
  for	
  being	
  implemented	
  in	
  these	
  devices.	
  XML	
  is	
  a	
  
            verbose	
  format.	
  
Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     6	
  
6	
  –	
  Execution	
  Speed	
  (SD	
  Dataset)	
  


              •  SD	
  dataset:	
  	
  
                  •  SensorML	
  files	
  used	
  to	
  be	
  small	
  (<20KB).	
  As	
  	
  a	
  consequence,	
  the	
  
                        execution	
  times	
  were	
  not	
  high.	
  
              •  OBS	
  and	
  MEA	
  datasets:	
  
                  •  Observation	
  files	
  contains	
  about	
  7	
  times	
  more	
  observation	
  values	
  
                        than	
  measurement	
  files	
  of	
  the	
  same	
  size.	
  As	
  a	
  consequence,	
  we	
  
                        recommend	
  to	
  use	
  the	
  former	
  in	
  	
  mobile	
  device	
  SOS	
  clients.	
  
                  •  Observation	
  files	
  represent	
  observation	
  values	
  inside	
  a	
  xsd:anyType	
  
                        element	
  that	
  is	
  not	
  mapped	
  successfully	
  by	
  some	
  XML	
  data	
  binding	
  
                        tools.	
  Additionally,	
  	
  as	
  the	
  “block”	
  of	
  observation	
  values	
  is	
  
                        represented	
  as	
  a	
  String	
  	
  the	
  application	
  code	
  must	
  parse	
  this	
  
                        information	
  again.	
  
                  	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     7	
  
7	
  –	
  Execution	
  Speed	
  (Parsers	
  –	
  CAPS	
  Dataset)	
  
                                                    PC	
  Scenario	
  




 Small	
  files	
  
 (<100KB)	
  




 Large	
  files	
  
 (>100KB)	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     8	
  
8	
  –	
  Execution	
  Speed	
  (Parsers	
  –	
  CAPS	
  Dataset)	
  

              Mobile	
  Scenario	
  




            Writing	
  XML	
  processing	
  code	
  using	
  a	
  manual	
  approach	
  do	
  not	
  necessarily	
  
            produce	
  a	
  code	
  that	
  is	
  much	
  faster	
  than	
  code	
  generated	
  by	
  some	
  tools.	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     9	
  
9	
  –	
  Memory	
  Consumption	
  (CAPS	
  dataset)	
  


            Small	
  files	
  (<100KB)	
                                                                            Large	
  files	
  (>100KB)	
  




          JAXB	
  and	
  XMLBeans	
  show	
  higher	
  memory	
  consumption,	
  but	
  it	
  does	
  not	
  
          seem	
  to	
  represent	
  a	
  problem	
  for	
  a	
  desktop	
  or	
  server	
  application.	
  


Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     10	
  
10	
  –	
  Size	
  of	
  Generated	
  Code	
  



                                                                                                    Code	
  generated	
  based	
  on	
  large	
  schemas	
  
                                                                                                    usually	
  has	
  a	
  large	
  size.	
  	
  
                                                                                                    	
  
                                                                                                    Customised	
  code	
  fits	
  better	
  the	
  limitations	
  of	
  
                                                                                                    mobile	
  devices.	
  
                                                                                                    	
  
                                                                                                    Customised	
  code	
  does	
  not	
  necessarily	
  	
  has	
  to	
  
                                                                                                    be	
  written	
  manually.	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     11	
  
11	
  -­‐	
  Conclusions	
  


            We	
  have	
  presented	
  a	
  study	
  to	
  measure	
  the	
  influence	
  of	
  XML	
  processing	
  
            code	
  in	
  the	
  performance	
  of	
  desktop	
  and	
  mobile	
  SOS	
  applications.	
  	
  
            	
  
            The	
  results	
  have	
  shown	
  that	
  XML	
  processing	
  does	
  not	
  seem	
  to	
  be	
  a	
  
            bottleneck	
  in	
  PC	
  applications.	
  On	
  the	
  other	
  hand,	
  the	
  opposite	
  happens	
  in	
  
            mobile	
  devices	
  where	
  the	
  time	
  needed	
  to	
  process	
  large	
  XML	
  files	
  is	
  very	
  
            high	
  due	
  to	
  their	
  associated	
  resource	
  constraints.	
  




Analysing	
  Performance	
  of	
  XML	
  Data	
  Binding	
  Solutions	
  for	
  SOS	
  Applications	
     12	
  
¿?	
  
Thank	
  you	
  for	
  your	
  attention	
  

Más contenido relacionado

Similar a Analysing Performance of XML Data Binding Solutions for SOS Applications

Elastic Caching for a Smarter Planet - Make Every Transaction Count
Elastic Caching for a Smarter Planet - Make Every Transaction CountElastic Caching for a Smarter Planet - Make Every Transaction Count
Elastic Caching for a Smarter Planet - Make Every Transaction Count
Yakura Coffee
 
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Apigee | Google Cloud
 
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
Sam Ramji
 
Common MongoDB Use Cases
Common MongoDB Use CasesCommon MongoDB Use Cases
Common MongoDB Use Cases
DATAVERSITY
 

Similar a Analysing Performance of XML Data Binding Solutions for SOS Applications (20)

Building Standards-Based Geoprocessing Mobile Clients
Building Standards-Based Geoprocessing Mobile ClientsBuilding Standards-Based Geoprocessing Mobile Clients
Building Standards-Based Geoprocessing Mobile Clients
 
Elastic Caching for a Smarter Planet - Make Every Transaction Count
Elastic Caching for a Smarter Planet - Make Every Transaction CountElastic Caching for a Smarter Planet - Make Every Transaction Count
Elastic Caching for a Smarter Planet - Make Every Transaction Count
 
Performance Testing in a Mobile World
Performance Testing in a Mobile WorldPerformance Testing in a Mobile World
Performance Testing in a Mobile World
 
moveMountainIEEE
moveMountainIEEEmoveMountainIEEE
moveMountainIEEE
 
Mse unit5
Mse unit5Mse unit5
Mse unit5
 
Generated REST Gateways for Mobile Applications
Generated REST Gateways for Mobile ApplicationsGenerated REST Gateways for Mobile Applications
Generated REST Gateways for Mobile Applications
 
kumarResume
kumarResumekumarResume
kumarResume
 
DDS-to-JSON and DDS Real-time Data Storage with MongoDB
DDS-to-JSON and DDS Real-time Data Storage with MongoDBDDS-to-JSON and DDS Real-time Data Storage with MongoDB
DDS-to-JSON and DDS Real-time Data Storage with MongoDB
 
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
 
UnConference for Georgia Southern Computer Science March 31, 2015
UnConference for Georgia Southern Computer Science March 31, 2015UnConference for Georgia Southern Computer Science March 31, 2015
UnConference for Georgia Southern Computer Science March 31, 2015
 
Skeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile PerformanceSkeuomorphs, Databases, and Mobile Performance
Skeuomorphs, Databases, and Mobile Performance
 
Ispn
IspnIspn
Ispn
 
gfs-sosp2003
gfs-sosp2003gfs-sosp2003
gfs-sosp2003
 
gfs-sosp2003
gfs-sosp2003gfs-sosp2003
gfs-sosp2003
 
AI Scalability for the Next Decade
AI Scalability for the Next DecadeAI Scalability for the Next Decade
AI Scalability for the Next Decade
 
Common MongoDB Use Cases
Common MongoDB Use CasesCommon MongoDB Use Cases
Common MongoDB Use Cases
 
Technology
TechnologyTechnology
Technology
 
Learning from google megastore (Part-1)
Learning from google megastore (Part-1)Learning from google megastore (Part-1)
Learning from google megastore (Part-1)
 
Case Study: Synchroniztion Issues in Mobile Databases
Case Study: Synchroniztion Issues in Mobile DatabasesCase Study: Synchroniztion Issues in Mobile Databases
Case Study: Synchroniztion Issues in Mobile Databases
 
Case Study: Synchroniztion Issues in Mobile Databases
Case Study: Synchroniztion Issues in Mobile DatabasesCase Study: Synchroniztion Issues in Mobile Databases
Case Study: Synchroniztion Issues in Mobile Databases
 

Más de Cybera Inc.

Cyber Summit 2016: Technology, Education, and Democracy
Cyber Summit 2016: Technology, Education, and DemocracyCyber Summit 2016: Technology, Education, and Democracy
Cyber Summit 2016: Technology, Education, and Democracy
Cybera Inc.
 
Cyber Summit 2016: Research Data and the Canadian Innovation Challenge
Cyber Summit 2016: Research Data and the Canadian Innovation ChallengeCyber Summit 2016: Research Data and the Canadian Innovation Challenge
Cyber Summit 2016: Research Data and the Canadian Innovation Challenge
Cybera Inc.
 
Cyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
Cyber Summit 2016: Privacy Issues in Big Data Sharing and ReuseCyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
Cyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
Cybera Inc.
 

Más de Cybera Inc. (20)

Cyber Summit 2016: Technology, Education, and Democracy
Cyber Summit 2016: Technology, Education, and DemocracyCyber Summit 2016: Technology, Education, and Democracy
Cyber Summit 2016: Technology, Education, and Democracy
 
Cyber Summit 2016: Understanding Users' (In)Secure Behaviour
Cyber Summit 2016: Understanding Users' (In)Secure BehaviourCyber Summit 2016: Understanding Users' (In)Secure Behaviour
Cyber Summit 2016: Understanding Users' (In)Secure Behaviour
 
Cyber Summit 2016: Insider Threat Indicators: Human Behaviour
Cyber Summit 2016: Insider Threat Indicators: Human BehaviourCyber Summit 2016: Insider Threat Indicators: Human Behaviour
Cyber Summit 2016: Insider Threat Indicators: Human Behaviour
 
Cyber Summit 2016: Research Data and the Canadian Innovation Challenge
Cyber Summit 2016: Research Data and the Canadian Innovation ChallengeCyber Summit 2016: Research Data and the Canadian Innovation Challenge
Cyber Summit 2016: Research Data and the Canadian Innovation Challenge
 
Cyber Summit 2016: Knowing More and Understanding Less in the Age of Big Data
Cyber Summit 2016: Knowing More and Understanding Less in the Age of Big DataCyber Summit 2016: Knowing More and Understanding Less in the Age of Big Data
Cyber Summit 2016: Knowing More and Understanding Less in the Age of Big Data
 
Cyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
Cyber Summit 2016: Privacy Issues in Big Data Sharing and ReuseCyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
Cyber Summit 2016: Privacy Issues in Big Data Sharing and Reuse
 
Cyber Summit 2016: Establishing an Ethics Framework for Predictive Analytics ...
Cyber Summit 2016: Establishing an Ethics Framework for Predictive Analytics ...Cyber Summit 2016: Establishing an Ethics Framework for Predictive Analytics ...
Cyber Summit 2016: Establishing an Ethics Framework for Predictive Analytics ...
 
Cyber Summit 2016: The Data Tsunami vs The Network: How More Data Changes Eve...
Cyber Summit 2016: The Data Tsunami vs The Network: How More Data Changes Eve...Cyber Summit 2016: The Data Tsunami vs The Network: How More Data Changes Eve...
Cyber Summit 2016: The Data Tsunami vs The Network: How More Data Changes Eve...
 
Cyber Summit 2016: Issues and Challenges Facing Municipalities In Securing Data
Cyber Summit 2016: Issues and Challenges Facing Municipalities In Securing DataCyber Summit 2016: Issues and Challenges Facing Municipalities In Securing Data
Cyber Summit 2016: Issues and Challenges Facing Municipalities In Securing Data
 
Cyber Summit 2016: Using Law Responsibly: What Happens When Law Meets Technol...
Cyber Summit 2016: Using Law Responsibly: What Happens When Law Meets Technol...Cyber Summit 2016: Using Law Responsibly: What Happens When Law Meets Technol...
Cyber Summit 2016: Using Law Responsibly: What Happens When Law Meets Technol...
 
Privacy, Security & Access to Data
Privacy, Security & Access to DataPrivacy, Security & Access to Data
Privacy, Security & Access to Data
 
Do Universities Dream of Big Data
Do Universities Dream of Big DataDo Universities Dream of Big Data
Do Universities Dream of Big Data
 
Predicting the Future With Microsoft Bing
Predicting the Future With Microsoft BingPredicting the Future With Microsoft Bing
Predicting the Future With Microsoft Bing
 
Analytics 101: How to not fail at analytics
Analytics 101: How to not fail at analyticsAnalytics 101: How to not fail at analytics
Analytics 101: How to not fail at analytics
 
Are MOOC's past their peak?
Are MOOC's past their peak?Are MOOC's past their peak?
Are MOOC's past their peak?
 
Opening the doors of the laboratory
Opening the doors of the laboratoryOpening the doors of the laboratory
Opening the doors of the laboratory
 
Open City - Edmonton
Open City - EdmontonOpen City - Edmonton
Open City - Edmonton
 
Unlocking the power of healthcare data
Unlocking the power of healthcare dataUnlocking the power of healthcare data
Unlocking the power of healthcare data
 
Checking in on Healthcare Data Analytics
Checking in on Healthcare Data AnalyticsChecking in on Healthcare Data Analytics
Checking in on Healthcare Data Analytics
 
Open access and open data: international trends and strategic context
Open access and open data: international trends and strategic contextOpen access and open data: international trends and strategic context
Open access and open data: international trends and strategic context
 

Último

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Analysing Performance of XML Data Binding Solutions for SOS Applications

  • 1. Analysing  Performance  of  XML  Data   Binding  Solutions  for  SOS  Applications   Alain  Tamayo,  Carlos  Granell,  Joaquín  Huerta     Geospatial  Technologies  Research  Group,  Universitat  Jaume  I,  Spain     SWE  2011,  Oct  6-­‐7,  Banff,  Alberta,  Canada  
  • 2. 1  .  Motivation   SOS-­‐based  applications  are   commonplace  in  server,  web  and   desktop  environments.   It’s  just  a  matter  of  time  they   become  commonplace  in  mobile   devices   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   2  
  • 3. 2  .  Motivation   SOS  protocols  are  based  in  large   schemas  that  describes  the  structure   of  exchanged  messages  in  XML  format   (+700  types,  +80  schema  files)   •  Low-­‐Level  APIs:   •  Tree  APIs:  DOM   •  Streaming  APIs:  SAX,  StaX,  …   •  XML  Data  Binding:  XMLBeans,  JAXB,   XBinder,  …   Using  low-­‐level  APIs  in  the  presence  of  large  schemas  is   time-­‐consuming  and  error-­‐prone.   Using  XML  data  binding  is  advised,  but  frequently   generated  code  needs  more  computational  resources.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   3  
  • 4. 3  .  Objectives   •  To  analyse  to  what  extent  the  use  of  XML  data  binding  solutions  is  a   problem  in  SOS  applications  running  in  different  platforms  (Windows   7  and  Android):   •  Execution  speed  (without  including  storage  or  network  transfer   times).   •  Memory  consumption     •  Size  of  generated  code   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   4  
  • 5. 4  .  Experimental  Setup   •  4  datasets  of  real  SOS  data:     •  CAPS  (capabilities  files)   •  SD  (Sensor  description  files)   •  OBS  (Observation  files)   •  MEA  (Measurement  files)   •  4  XML  data  binding  tools:   •  XMLBeans  (PC)   •  JAXB  (PC)   •  XBinder  (PC  and  Mobile)   •  DBMG  (PC  and  Mobile)   •  2  Hardware  platforms:   •  HTC  Desire  Android  Phone  (1  GHz  CPU,  576  RAM)   •  Windows  7  PC  (Intel  Quad  Core  i7  2.8  GHz  CPU,  8GB    RAM)   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   5  
  • 6. 5  –  Execution  Speed  (CAPS  Dataset)   Mobile  Scenario   PC  Scenario   The  execution  times  for  the  mobile  phone  were  about  60  times  slower  than   for  the  personal  computer.   XML  processing  code  does  not  seem  to  be  a  bottleneck  for  PCs.   High  processing  times  for  mobiles    raises  the  question  if  the  current  SOS   protocol  is  appropriate  for  being  implemented  in  these  devices.  XML  is  a   verbose  format.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   6  
  • 7. 6  –  Execution  Speed  (SD  Dataset)   •  SD  dataset:     •  SensorML  files  used  to  be  small  (<20KB).  As    a  consequence,  the   execution  times  were  not  high.   •  OBS  and  MEA  datasets:   •  Observation  files  contains  about  7  times  more  observation  values   than  measurement  files  of  the  same  size.  As  a  consequence,  we   recommend  to  use  the  former  in    mobile  device  SOS  clients.   •  Observation  files  represent  observation  values  inside  a  xsd:anyType   element  that  is  not  mapped  successfully  by  some  XML  data  binding   tools.  Additionally,    as  the  “block”  of  observation  values  is   represented  as  a  String    the  application  code  must  parse  this   information  again.     Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   7  
  • 8. 7  –  Execution  Speed  (Parsers  –  CAPS  Dataset)   PC  Scenario   Small  files   (<100KB)   Large  files   (>100KB)   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   8  
  • 9. 8  –  Execution  Speed  (Parsers  –  CAPS  Dataset)   Mobile  Scenario   Writing  XML  processing  code  using  a  manual  approach  do  not  necessarily   produce  a  code  that  is  much  faster  than  code  generated  by  some  tools.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   9  
  • 10. 9  –  Memory  Consumption  (CAPS  dataset)   Small  files  (<100KB)   Large  files  (>100KB)   JAXB  and  XMLBeans  show  higher  memory  consumption,  but  it  does  not   seem  to  represent  a  problem  for  a  desktop  or  server  application.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   10  
  • 11. 10  –  Size  of  Generated  Code   Code  generated  based  on  large  schemas   usually  has  a  large  size.       Customised  code  fits  better  the  limitations  of   mobile  devices.     Customised  code  does  not  necessarily    has  to   be  written  manually.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   11  
  • 12. 11  -­‐  Conclusions   We  have  presented  a  study  to  measure  the  influence  of  XML  processing   code  in  the  performance  of  desktop  and  mobile  SOS  applications.       The  results  have  shown  that  XML  processing  does  not  seem  to  be  a   bottleneck  in  PC  applications.  On  the  other  hand,  the  opposite  happens  in   mobile  devices  where  the  time  needed  to  process  large  XML  files  is  very   high  due  to  their  associated  resource  constraints.   Analysing  Performance  of  XML  Data  Binding  Solutions  for  SOS  Applications   12  
  • 13. ¿?   Thank  you  for  your  attention