Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/atomics/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  pause-single.js   Sprache: JAVA

 
// |jit-test| --enable-atomics-pause; skip-if: !Atomics.pause

// Call Atomics.pause with no arguments.
function noArguments() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause();
  }
}
for (let i = 0; i < 2; ++i) noArguments();

// Call Atomics.pause with the constant integer zero.
function zero() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause(0);
  }
}
for (let i = 0; i < 2; ++i) zero();

// Call Atomics.pause with an linear increasing integer.
function increasingLinear() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause(i);
  }
}
for (let i = 0; i < 2; ++i) increasingLinear();

// Call Atomics.pause with an linear decreasing integer.
function decreasingLinear() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause(-i);
  }
}
for (let i = 0; i < 2; ++i) decreasingLinear();

// Call Atomics.pause with an exponentially increasing integer.
function increasingExp() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause(2 ** Math.min(i >> 1, 10));
  }
}
for (let i = 0; i < 2; ++i) increasingExp();

// Call Atomics.pause with an exponentially decreasing integer.
function decreasingExp() {
  for (let i = 0; i < 1000; ++i) {
    Atomics.pause(-(2 ** Math.min(i >> 1, 10)));
  }
}
for (let i = 0; i < 2; ++i) decreasingExp();

Messung V0.5
C=86 H=-33 G=64

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.