summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs')
-rw-r--r--tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs b/tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs
new file mode 100644
index 0000000000..a0baa6fac6
--- /dev/null
+++ b/tests/src/JIT/Performance/CodeQuality/SciMark/Constants.cs
@@ -0,0 +1,51 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+/// <license>
+/// This is a port of the SciMark2a Java Benchmark to C# by
+/// Chris Re (cmr28@cornell.edu) and Werner Vogels (vogels@cs.cornell.edu)
+///
+/// For details on the original authors see http://math.nist.gov/scimark2
+///
+/// This software is likely to burn your processor, bitflip your memory chips
+/// anihilate your screen and corrupt all your disks, so you it at your
+/// own risk.
+/// </license>
+
+
+namespace SciMark2
+{
+ public class Constants
+ {
+ public const double RESOLUTION_DEFAULT = 2.0; /*secs*/
+ public const double RESOLUTION_TINY = 0.02; /*secs*/
+ public const int RANDOM_SEED = 101010;
+
+ // default: small (cache-contained) problem sizes
+ //
+ public const int FFT_SIZE = 1024; // must be a power of two
+ public const int SOR_SIZE = 100; // NxN grid
+ public const int SPARSE_SIZE_M = 1000;
+ public const int SPARSE_SIZE_nz = 5000;
+ public const int LU_SIZE = 100;
+
+ // large (out-of-cache) problem sizes
+ //
+ public const int LG_FFT_SIZE = 1048576; // must be a power of two
+ public const int LG_SOR_SIZE = 1000; // NxN grid
+ public const int LG_SPARSE_SIZE_M = 100000;
+ public const int LG_SPARSE_SIZE_nz = 1000000;
+ public const int LG_LU_SIZE = 1000;
+
+ // tiny problem sizes (used to mainly to preload network classes
+ // for applet, so that network download times
+ // are factored out of benchmark.)
+ //
+ public const int TINY_FFT_SIZE = 16; // must be a power of two
+ public const int TINY_SOR_SIZE = 10; // NxN grid
+ public const int TINY_SPARSE_SIZE_M = 10;
+ public const int TINY_SPARSE_SIZE_N = 10;
+ public const int TINY_SPARSE_SIZE_nz = 50;
+ public const int TINY_LU_SIZE = 10;
+ }
+}