Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MySQL/bench/   (MySQL Server Version 8.1-8.4©)  Datei vom 12.11.2025 mit Größe 640 B image not shown  

Quelle  benchmarkX.cpp

  Sprache: C
 

// g++ -fopenmp -I .. -O3 -DNDEBUG -finline-limit=1000 benchmarkX.cpp -o b && time ./b

#include <iostream>

#include <Eigen/Core>

using namespace std;
using namespace Eigen;

#ifndef MATTYPE
#define MATTYPE MatrixXLd
#endif

#ifndef MATSIZE
#define MATSIZE 400
#endif

#ifndef REPEAT
#define REPEAT 100
#endif

int main(int argc, char *argv[])
{
 MATTYPE I = MATTYPE::Ones(MATSIZE,MATSIZE);
 MATTYPE m(MATSIZE,MATSIZE);
 for(int i = 0; i < MATSIZE; i++) for(int j = 0; j < MATSIZE; j++)
 {
  m(i,j) = (i+j+1)/(MATSIZE*MATSIZE);
 }
 for(int a = 0; a < REPEAT; a++)
 {
  m = I + 0.0001 * (m + m*m);
 }
 cout << m(0,0) << endl;
 return 0;
}

Messung V0.5 in Prozent
C=97 H=95 G=95

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






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.