DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • Enriching Kafka Applications With Contextual Data
  • Develop Hands-Free Weather Alerts To Ensure Safe Backpacking
  • Creating Scalable OpenAI GPT Applications in Java
  • How To Integrate Microsoft Team With Cypress Cloud
  1. DZone
  2. Coding
  3. JavaScript
  4. Revenge of the Timers

Revenge of the Timers

John Resig user avatar by
John Resig
·
Feb. 21, 08 · News
Like (0)
Save
Tweet
Share
3.75K Views

Join the DZone community and get the full member experience.

Join For Free

after my earlier post on analyzing javascript timer performance a lot has changed, especially in firefox 3. an excellent patch landed the other day which is giving us some excellent performance improvements - not the least of which is related to timers.

if you remember from before i took a look at how responsive javascript timers were on osx in firefox 2, safari 3, firefox 3, and opera 9. the conclusion, at least for me, was that firefox 3's timers were much improved over firefox 2's, but could stand some improvement.

i filed a couple bugs, relating to the matter:

  • timers dropping to 0ms
  • timers return erratic results
  • base timer rate has increased

and to my delight this new patch completely resolves all of them. let's take a quick peak at the results. these are the results of doing setinterval(fn, 0); in firefox 2, safari 3, firefox 3, and opera 9. firefox 3 is in the bottom-left corner, note the improvement.

before

after

the change in quality is startling. it's easy to say that firefox 3 and safari 3 are quite comparable now, in terms of overall timer quality and, if nothing else, a major improvement over the timers in firefox 2.

if you want to try this improvement for yourself feel free to download a nightly of firefox 3 and head on over to the timer test page , i think you'll be quite pleased.

Patch (computing) Opera (web browser) JavaScript POST (HTTP) Testing IT Download

Published at DZone with permission of John Resig. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Enriching Kafka Applications With Contextual Data
  • Develop Hands-Free Weather Alerts To Ensure Safe Backpacking
  • Creating Scalable OpenAI GPT Applications in Java
  • How To Integrate Microsoft Team With Cypress Cloud

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: