Analysis of the Benchmark while Extracting Data from Database or XML File for Different Platforms

Similar documents
A NET Refresher

Department of Computer Applications

Microsoft Visual Basic 2005: Reloaded

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Introduction to.net Framework

Introduction to Web Development with Microsoft Visual Studio 2010

Discovering Computers 2008

Introduction to Web Development with Microsoft Visual Studio 2010

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

Top 40.NET Interview Questions & Answers

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

Building Windows Applications with.net. Allan Laframboise Shelly Gill

ASP.NET Web Forms Programming Using Visual Basic.NET

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

Program Contents: DOTNET TRAINING IN CHENNAI

Overview of the Microsoft.NET Framework

Introduction to.net Framework Week 1. Tahir Nawaz

Creating a Service Platform for.net. Clement Escoffier PhD Student University of Grenoble

CIS 3260 Intro. to Programming with C#

C#.NET Course Content

Introduction to.net. The path. The Distributed Group University of Seville Spain - España. Introduction The elements of.net. Assessments Conclusions

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

10267 Introduction to Web Development with Microsoft Visual Studio 2010

.NET. Inf 5040, Outline. Gyrd Brændeland, Sharath Babu Musunoori, Åshild Grønstad Solheim

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

Data-Driven Services With Silverlight 2: Data Access And Web Services For Rich Internet Applications By John Papa

DE Introduction to Web Development with Microsoft Visual Studio 2010

.NET FRAMEWORK. Visual C#.Net

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

.Net Interview Questions

Saikat Banerjee Page 1

Prof. Dr. Hanspeter Mössenböck Institute for System Software Johannes Kepler University Linz

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

.Net. Course Content ASP.NET

C# Syllabus. MS.NET Framework Introduction

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

Choosing a Development Tool

Yoon Joong Kim. Department of computer Engineering Hanbat National University

SOLVING PROBLEMS ON THE TEACHING METHODS OF LINEAR ALGEBRA THROUGH TECHNOLOGY PLATFORM DOT.NET

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks)

DOT NET SYLLABUS FOR 6 MONTHS

.NET-6Weeks Project Based Training

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

.NET CLR Framework. Unmanaged Hosts - Assembly Access

VALLIAMMAI ENGINEERING COLLEGE

Getting Started with Visual Studio.NET

Apex TG India Pvt. Ltd.

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

Mitchell Bosecke, Greg Burlet, David Dietrich, Peter Lorimer, Robin Miller

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1


4. กก ( Web-based Technology ) (System Development Life Cycle : SDLC) ก ก ก

The integration of the database with Microsoft. NET Framework

Image Spam. Introduction. Project description:

Fundamental C# Programming

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

.NET 4.6 MICROSOFT CURRICULUM MICROSOFT.NET 2015 (4.6)

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE

AC I Sem 5_TYCS. ASP.NET application codes can be written in any of the following languages:

Keywords: Interactive electronic technical manuals; GJB6600; XML markup language; Automatic control equipment

Introduction To Web Architecture

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

DOT NET Syllabus (6 Months)

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008

ADVANCED AUTOMATED ADMINISTRATION WITH WINDOWS POWERSHELL

C#.NET TRAINING / /

Microsoft..NET Framework. Overview

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

Introduction to Mobile Development

Getting Started with EPiServer 4

Yoon Joong Kim. Department of computer Engineering Hanbat National University

How to use PDFlib Products with the.net Framework

Naresh Information Technologies

UNIT 1 PART A PART B

What s it for? What s the.net Micro Framework? How it Works. .NET Micro Framework Context 6/29/ :44 AM. Microsoft.NET on a TINY Footprint device

Contents. Microsoft is a registered trademark of Microsoft Corporation. TRAVERSE is a registered trademark of Open Systems Holdings Corp.

Unit 1: Visual Basic.NET and the.net Framework

SilkPerformer NET Explorer Help

Getting started 7. Setting properties 23

LabWare 7. Why LabWare 7?

Developing Web Applications Using Microsoft Visual Studio 2008

An Implementation of Self-Testing. Edgars Diebelis Prof. Dr. Janis Bicevskis

Course Outline. Advanced Automated Administration with Windows PowerShell Course 10962: 3 days Instructor Led

20486-Developing ASP.NET MVC 4 Web Applications

Introduction to Microsoft.NET Programming Using Microsoft Visual Studio 2008 (C#) Course Overview. Prerequisites. Audience.

Team Developer and.net

Getting started 7. Setting properties 23

Crystal Reports XI Release 2

Cookbook for using SQL Server DTS 2000 with.net

Vb Net Tutorial For Beginners Visual Studio 2010 Create Web Service

Programming with XML in the Microsoft.NET Framework

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

Discovering Computers Chapter 13 Programming Languages and Program Development

Using SQL Server in C#

Transcription:

Analysis of the Benchmark while Extracting Data from Database or XML File for Different Platforms Ognian Nakov, Desislava Petrova Abstract: The purpose of the research is the comparison between the extracting time of the Database Management System (DMS) and XML files for two different platforms -.NET Framework 1.1 and.net Framework 2.0. The two latest versions of the Microsoft database server are used as Database Management System SQL Server 2000 and SQL Server 2005. The extraction from the XML file is performed in two different ways by SAX and DOM parser. The fact, that the typical for Java SAX parser is not realized in.net, is taken into account, but with some approximation the consecutive reading of elements of the XML file can be used. A special application is developed for testing. The business layout of the application is presented by two web services, respectively working on ASP.NET 2.0 and on ASP.NET 1.1. Keywords: XML, ASP.NET,.NET Framework, SQL Server, web applications, SAX, DOM parser INTRODUCTION The purpose of the research is the comparison between the extracting time of the Database Management System (DMS) and XML files for two different platforms -.NET Framework 1.1 and.net Framework 2.0, using ASP.NET. ASP.NET is development platform, supported by.net Framework, suited for developing web applications. Figure 1 ASP.NET Execution Model is started, when a client sends a request for Web page for the first time. The process starts with sending of an HTTP GET request to the server from the client browser. The request is accepted, processed and directed by IIS to the necessary page, hosted on the server. ASP.NET parser interprets the code of the application, performs all necessary actions for the creating of the page. If the code hasn t been compiled to Dynamic Link Library (DLL), ASP.NET calls the compiler. The compiler compiles it into Microsoft Intermediate Language (MSIL). MSIL instructions are loaded and executed from The Common Language Runtime (CLR) environment. As a result, an HTML code is generated and sent back to the client browser. Compiling of the script blocks to MSIL instructions leads to higher efficiency. The MSIL code is additionally compiled to machine code, using JIT compiler (just-in-time). JIT compiler compiles each code section when it is called, instead of compiling the whole application at once. As a result,.net application starts faster. Once compiled, the code is saved until application is stopped. Therefore it is not necessary to compile the block of code each time it is called. Because of this process, it is expected, that the execution of the MSIL code will be nearly as fast as the execution of the machine code of the relevant platform. JIT compilation - IIIB.20-1 -

supports early and late binding and handles the types during the execution. That s why MSIL code is more secure and insured against programmer s mistakes. The ASP.NET 2.0 web application code, in contrast to ASP.NET 1.1, is not compiled to assembly during the development of the site, but during its first request. The compiled code is cached by the ASP.NET 2.0 environment and reused in next execution. If a file, that is responsible for the program logic, is changed, this cached compiled code is not valid anymore and the compilation is done again. This strategy ensures higher efficiency and easier development and support of the web applications. It is only necessary to change the determined file and save it. Changes take place immediately. The same strategy is actual for the ASPX application code. The difference between the two versions of the ASP.NET application can be seen on figure 2. Create Compile Publish Visual Studio Modify the.net Application Re-Compile DLLs Publish Code to Web Server Visual Studio Modify the.net Application No Need to Re-Compile Publish Code to Web Server Figure 2 RESEARCH SETTINGS The two latest versions of the Microsoft database server are used as Database Management System SQL Server 2000 and SQL Server 2005. In each server a table with test information is used. The number of records in each table is 20300. The structure of the tables is represented on figure 3. - IIIB.20-2 -

Figure 3 The XML file, used for the tests, contains the same information as the tables of the database. Each column from the tables is determined with one element from the XML file. The figure below illustrates an example of the representation of one record. Figure 4 The extraction from the XML file is performed in two different ways by SAX and DOM parser. The fact, that the typical for Java SAX parser is not realized in.net, is taken into account, but with some approximation the consecutive reading of elements of the XML file can be used. A special application is developed for testing. It can accumulate the results from the tests, so that an average value to be formed. Two tables, shown on figure 5, are used. One of the tables is a dictionary, containing definitions for each possible kind of measurements. The second contains the values from all measurements. Figure 5 The business layout of the application is presented by two web services, respectively working on ASP.NET 2.0 and on ASP.NET 1.1. Figure 6 presents the application architecture. - IIIB.20-3 -

Figure 6 RESULTS The results from the researches are summarized in the next chart: Figure 7 ANALYSYS AND CONCLUSIONS Results show, that the minimum time for extracting of the test data is in the case of searching in a database system. In most cases the timings of the two SQL servers are equal and most probably the diversions come from differences in the transitory load of the test system. It also can be seen that the database react equally on the work with.net Framework - IIIB.20-4 -

1.0 and.net Framework 2.0, which means both development environments are well optimized for work with the tested database servers. Extracting of data from XML file is times slowlier. The tests are again accomplished on the two development environments -.NET Framework 1.0 and.net Framework 2.0. The purpose of this test was to check if the announced from Microsoft increasing of the efficiency is real. The two methods of using SAX parser and DOM parser can be applied in different scenarios. DOM parsers are appropriate for fewer amounts of data. If necessary the data can be loaded once and researched many times, because the whole XML document is loaded in the memory as DOM tree. Working this way is convenient requests can be easily written using the XPATH language. But if this decision is chosen, the data will increase about ten times in the DOM tree. There are many cases, where the needed data is voluminous, so the variant of using DOM trees is excluded. It can be seen from the charts, that searching with DOM parser is even faster than the searching in database systems. The timings are below 1 ms, so they are visualized with 0 on the charts. It is also obvious that the time for preparation of the document in this case is more than the time for searching in database system. The usage of SAX parsers is established on consecutive reading of the file till the information is found. So the searching time depends on the size of data, its structure and the searching algorithm. In our case we don t know where in the file is the requested information, so the whole file should be read. Additional time for loading the file is not necessary, but again the time for searching is at least 2-3 times more than the time when Database Management System is used. The whole document is not loaded in the operational memory, when using SAX parsers, so it is appropriate for working with huge arrays, if the operation is not real time or repeated very often. In conclusion, undoubtedly, it is better to use Database Management Systems, because they have best data-extracting timings. The DMS have enlarging and flexible enough types system, especially the new SQL Server 2005. Huge advantages of the DMS are the entiretycontrol systems and assurance of the data, which are not available when working with XML files. REFERENCES [1] Jeffrey Rihter, Applied Microsoft.NET Framework Programming, SoftPress, 2002. [2] Angshuman Chakraborti, Microsoft.NET Framework Professional Projects, Duo Design OOD, 2003. [3] MOC for Managing a Microsoft Windows Server 2003 Environment, Microsoft Press, 2003. [4] MOC for Developing Microsoft ASP.NET 2.0 Web Applications, Microsoft Press, 2005. [5] Introducing Microsoft ASP.NET 2.0, Microsoft Press, 2005. [6] MSDN Library Visual Studio.NET 2003. ABOUT THE AUTHORS Assoc.Prof. Ognian Nakov PhD, Technical University of Sofia, Phone: +359 2 965 3613, E-mail: nakov@tu-sofia.bg Assistant Prof. Desislava Petrova, Technical University of Sofia, Phone: +359 2 965 2588, E-mail: d_petrova@tu-sofia.bg - IIIB.20-5 -