Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

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

  • Няма отговори
  • 2 имат този проблем
  • 1 изглед
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
Прикачени екранни снимки