| By Andreas Grabner | Article Rating: |
|
| April 15, 2011 03:00 PM EDT | Reads: |
3,111 |
I am currently working on a blog where I am going to explain how to do cross-browser testing and performance analysis using dynaTrace. Before I am going to blog that How-To I want to share with you one thing that I have noticed when executing my tests in Internet Explorer 8 and Firefox 3.6. Test execution times are very different – but – this is not because one browser is slower than the other. It is because Selenium has different synchronization mechanisms in IE and FF to e.g: wait for a page to be loaded.
My Environment
I run a simple test on the latest 2.0 Beta build of Selenium. The test executes the following steps:
- Opens the homepage of my test application
- Enters username and password and hits the Submit Button
- Then clicks through 3 different pages by clicking on standard links
Execution Times over Time
I executed this test multiple times. In every test iteration I first execute the test on Internet Explorer 8 and then on Firefox 3.6. I use dynaTrace AJAX Premium Extensions to track performance on all these test executions. Looking at the Test Automation View allows me to compare different metrics, over time and also across the two browsers. The following screenshot shows the execution time of the test scenario of the last 6 test iteration in both IE and FF. The green line represents IE with an execution time that is about 1.5s slower than FF.
Execution Time of this test is about 1.5 seconds slower on Internet Explorer than Firefox - but - it is not because IE is slower
So – looking at the execution time alone would let me assume that IE is just so much slower than Firefox. But – that is actually not the case.
Detailed Timeline Analysis
dynaTrace allows me to compare two tests. I can compare Network Downloads, Rendering Activity, JavaScript and DOM Executions or any Server-Side activity that these tests executed. The first view that I get to see is the Timeline Comparison. When we compare the test timeline of both tests we see this big gap in Internet Explorer where nothing really happens:
We can compare the test executed in IE with the one in FF side-by-side discovering this big time gap where Selenium just waits
What this really tells us is that looking at execution times of tests is not good idea when we want to compare performance of tests across browsers. It seems Selenium has different ways to wait for certain events to happen. Depending on the browser this can have a significant impact on execution time.
Does this mean we can’t do performance tests with Selenium?
No – we can do performance tests – but – we need to look at different metrics. The dynaTrace AJAX Edition calculates a lot of KPIs such as Time Spent in JavaScript, Time Spent in Network Downloads, Number of Resources, Size of Resources, … – these are the metrics that are more interesting for us. With dynaTrace AJAX Premium I can also compare these results between browsers for my test. This is now showing me a much better picture – in fact – it seems the JavaScript code runs faster in IE than in FF:
It is important to compare other metrics than just overall test execution times when you want to compare cross browser performance
Watch out for my How-To blog. In the meantime you can make yourself familiar with the free dynaTrace AJAX and the Premium Extensions.
Related reading:
- How to use your Selenium Tests for automated JavaScript/AJAX Performance Analysis With more than 3 million downloads, Selenium is the world’s...
- Antivirus Add-On for IE to cause 5 times slower page load times The dynaTrace AJAX Community has been really active lately –...
- dynaTrace AJAX Edition 3.0 released – FREE Next Generation Browser Diagnostics – PART I // With its latest release, dynaTrace updates its Product Suite...
- dynaTrace Firefox Closed Beta Program started We had quite a number of people showing interest in...
- Automate Cross-Browser Web 2.0 Performance Optimization: An E-Commerce Perspective This Wednesday, March 23rd at Noon ET / 9AM PT...
Published April 15, 2011 Reads 3,111
Copyright © 2011 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Andreas Grabner
Andreas has over a decade of experience as an architect and developer, and currently works as a senior performance architect and technology strategist for dynaTrace Software, where he influences product strategy and works closely with customers in implementing performance management solutions across the application life cycle. He is a regular speaker at software conferences, writes for a number of technology publications, and blogs at http://blog.dynatrace.com
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- NetArt Chooses Open-Xchange to Enter into Cloud Application Business
- Rackspace Starts the Great OpenStack Migration
- Cloud Expo: Architect Full Performance Potential of IaaS Cloud Services
- Hot Tech Firms at the 2012 DoDIIS Conference
- Dell and Morphlabs Partner on SSD Cloud
- Microsoft Sets Up an Open Source Subsidiary
- Piston to Integrate Cloud Foundry & OpenStack
- Dell Buys Mainframe Modernizer in Cloud Push
- Informatica Upgrades Its iPaaS
- Inktank to Commercialize Ceph Big Storage
- Video Streaming Outside The Firewall Market Shares, Strategies, and Forecasts, Worldwide, 2012 to 2018
- Red Hat Executive Appointed to Technology Services Industry Association (TSIA) Support Services Advisory Board
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- What Kind of Software Company Should You Work For?
- NetArt Chooses Open-Xchange to Enter into Cloud Application Business
- Rackspace Starts the Great OpenStack Migration
- TeamDrive 3.0 Unveiled at CeBIT: Brings Enterprise-Grade Security to Cloud File Sharing on the iPhone, iPad and Android
- Cloud Expo: Architect Full Performance Potential of IaaS Cloud Services
- Sorting Through the APM Clutter
- Hot Tech Firms at the 2012 DoDIIS Conference
- Swisscom Floats Red Hat Cloud
- Dell and Morphlabs Partner on SSD Cloud
- Microsoft Sets Up an Open Source Subsidiary
- The i-Technology Right Stuff
- Linux.SYS-CON.com Exclusive: Linus Discloses *Real* Fathers of Linux
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- A Closer Look at Damn Small Linux
- Linus' Top Ten SCO Barbs
- SCO CEO Posts Open Letter to the Open Source Community
- Netscape Co-Founder's 12 Reasons for Growth of Open Source
- Where Are RIA Technologies Headed in 2008?
- *POINT - COUNTERPOINT SPECIAL* What's Wrong with the Open Source Community?
- Introducing "Cooperative Linux" - Linux for Windows, No Less
- Linux.SYS-CON.com Exclusive: What Would UserLinux Look Like?
- Why Recovering a Deleted Ext3 File Is Difficult . . .




















