Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/testing/talos/talos/tests/svgx/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 4 kB image not shown  

Quellcode-Bibliothek hixie-004.xml

  Sprache: XML
 

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  viewBox="0 0 100 100" width="400" height="400">
<!--
This test attempts to test how fast batches of individually transformed 'image'
elements can be created, added to the document and repainted. The time required
for each new batch is expected to increase since the previous batches are not
removed from the document.
-->

 <script type="text/javascript">
  var start = new Date();
 </script>
 <text x="10" y="15" font-weight="900" font-size="5">SVG Performance test.</text>
 <text x="10" y="95" font-weight="900" font-size="5">Test not started.</text>
 <rect x="0" y="0" height="100" width="100" stroke="black" fill="none"/>
 <script type="text/javascript"><![CDATA[
  var svg = document.getElementsByTagNameNS('http://www.w3.org/2000/svg''svg')[0];
  var t = document.getElementsByTagNameNS('http://www.w3.org/2000/svg''text')[1];

  var Xs = new Array(96592309240654779107745,
    271343525546124421115184249503069,
    953649468554261556189240416685747,
    66137229485761467036234741332208,
    2609758108985485298122655481922,
    34831365772340566513548110532593,
    61147);

  var Ys = new Array(42809330543376562793780,
    801999318922234227812619806626773,
    1869104288100994788264649607104829,
    2526337384244274549698119.567105379,
    5632987873681280422482699434719,
    694541641392584357726433275896648,
    80170);

  var Ss = new Array(5313188785144212,
    2643151261573664725353,
    5281216432483588222856,
    4853623236358724886461,
    867478377842282873);

  var Rs = new Array(15714237133498315821434353,
    1962929622512435568305315190146274167,
    1322982722662652821399260323233111270,
    16517758350322137163802061382035532310,
    3092601533091511895217032615765412892,
    9619625031312522663245158196716996224,
    222273372633130257551713473195483189,
    281797513822313823869);

  var maxPerBlock = Xs.length / 50;
  var maxBlocks = Xs.length / maxPerBlock;
  var count = 0;
  var rAF = window.requestAnimationFrame || window.mozRequestAnimationFrame;

  function runTest() {
    for (var subcount = 0; subcount < maxPerBlock; subcount += 1) {
      var index = count * maxPerBlock + subcount;
      var newI = document.createElementNS('http://www.w3.org/2000/svg''image');
      newI.setAttribute('x', Xs[index] - (99 / Ss[index]) / 2);
      newI.setAttribute('y', Ys[index] - (195 / Ss[index]) / 2);
      newI.setAttribute('height'195 / Ss[index]);
      newI.setAttribute('width'99 / Ss[index]);
      newI.setAttributeNS('http://www.w3.org/1999/xlink''href''images/smallcats.gif');
      newI.setAttribute('transform''translate(50, 50) rotate(' + Rs[index] + ') translate(-50, -50)');
      newI.appendChild(document.createTextNode(index)); // 'TEST'));
      svg.insertBefore(newI, t);
    }
    ++count;
    if (count < maxBlocks) {
      rAF(runTest);
      t.firstChild.data = 'Test in progress... ' + count + ' of ' + maxBlocks;
    } else {
      var end = new Date();
      var elapsed = (end - start) / 1000;
      t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.';
      if (window.tpRecordTime) window.tpRecordTime(end - start, start);
      if (parent.reportResults) parent.reportResults(end - start, start);
    }
  }
  addEventListener("load", function() {
    TalosContentProfiler.subtestStart("hixie-004.xml loaded", true).then(() => {
      rAF(runTest);
    });
  });
 ]]></script>
 <script type="text/javascript" xlink:href="resource://talos-powers/TalosContentProfiler.js"></script>
</svg>

Messung V0.5 in Prozent
C=94 H=94 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:  (vorverarbeitet am  2026-08-25) ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.