"Source: Text/System/Par.text";
"Line: 3336";
"Date: Mon May 29 16:04:52 2023";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/System/Par.text, line: 3336
// Example: H5E35 ()
print "Example: H5E35";
ei := GetEchoInput();
SetEchoInput(true);
SetNthreads(1); // SERIAL (NO PARALLELISM)
X := Random(MatrixRing(GF(5), 10000));
time P := X*X; // serial only, so prints CPU time (seconds)
T := Time(); P := X*X; Time(T); // same as what time statement prints
SetNthreads(8); // PARALLEL (8 POSIX THREADS)
time P := X*X;  // parallel, so real time shown by [r] (seconds)
T := Time(); P := X*X; Time(T); // same as what time statement prints
SetEchoInput(ei);
