Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Javascript of FireFox 49 runs more slowly than FireFox 37 about 2 - 3 times

  • Nema odgovora
  • 2 ima ovaj problem
  • 1 view
more options

Hi all,

I have a problem about performance of java-script of FF 49. I run same a java-script source code on a same Windows machine. However, FF 49 runs more slowly than FF 37 about 2-3 times although my source code uses basic java-script APIs.

Environment:

+ Windows version: 
   ++ Windows 7 Enterprise 64 bit
+ Firefox version: 
   ++ Firefox 37.0b7
   ++ Firefox 49.0.2
+ Test page: https://www.amazon.com/R-J-Enterprises-DC-0-RD-Covers-Price/dp/B002N73Y4W/ref=sr_1_6?ie=UTF8&qid=1430145955&sr=8-6&keywords=rj45+jack+dust+cover

+ Java-script Source code :

var nTotal = 0; var dBegin = new Date(); var list = document.getElementsByTagName('div'); var dBegin = new Date(); for( var nTimes = 0 ; nTimes < 1 ; nTimes++){ for(var i = 0 ; i < list.length ; i++){ var element = list[i]; do{ nTotal++; element = element.parentNode; }while(element != undefined && element != null ); } } var dEnd = new Date(); console.log("[" + Math.abs(dEnd - dBegin) +"] : Number of div " + list.length + " ; total element = " + nTotal);

I also attach my result. Could you refer them for more details.

I have researched on google but not found any useful information about my issue. Could you help to support me about this issue? It is so urgent!

Thanks in advance!

Tan

Hi all, I have a problem about performance of java-script of FF 49. I run same a java-script source code on a same Windows machine. However, FF 49 runs more slowly than FF 37 about 2-3 times although my source code uses basic java-script APIs. Environment: + Windows version: ++ Windows 7 Enterprise 64 bit + Firefox version: ++ Firefox 37.0b7 ++ Firefox 49.0.2 + Test page: https://www.amazon.com/R-J-Enterprises-DC-0-RD-Covers-Price/dp/B002N73Y4W/ref=sr_1_6?ie=UTF8&qid=1430145955&sr=8-6&keywords=rj45+jack+dust+cover + Java-script Source code : var nTotal = 0; var dBegin = new Date(); var list = document.getElementsByTagName('div'); var dBegin = new Date(); for( var nTimes = 0 ; nTimes < 1 ; nTimes++){ for(var i = 0 ; i < list.length ; i++){ var element = list[i]; do{ nTotal++; element = element.parentNode; }while(element != undefined && element != null ); } } var dEnd = new Date(); console.log("[" + Math.abs(dEnd - dBegin) +"] : Number of div " + list.length + " ; total element = " + nTotal); I also attach my result. Could you refer them for more details. I have researched on google but not found any useful information about my issue. Could you help to support me about this issue? It is so urgent! Thanks in advance! Tan
Priloženi snimci ekrana