Coder Social home page Coder Social logo

jliu312 / scimark-junkyard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mork-optimization/scimark

0.0 0.0 0.0 885 KB

SciMark2 for junkyard project; SciMark 2 is a Java benchmark for scientific and numerical computing. It measures several computational kernels and reports a composite score in approximate Mflops (Millions of floating point operations per second).

License: Other

Java 8.80% Shell 0.01% HTML 82.89% JavaScript 3.87% CSS 4.43%

scimark-junkyard's Introduction

SciMark 2: Java Numerical Benchmark

What

SciMark 2 is a composite Java benchmark measuring the performance of numerical kernels occurring in scientific and engineering applications.
It consists of five kernels which typify computational routines commonly found in numeric codes: Fast Fourier Transforms (FFTs), Jacobi Successive Over-relaxation (SOR), Sparse matrix-multiply, Monte Carlo integration, and dense LU matrix factorization.

This is a maintained copy of the original software available at https://math.nist.gov/scimark2/index.html

Original authors

Roldan Pozo, Bruce Miller

See the following page for more details: https://math.nist.gov/scimark2/credits.html

Usage

Requires Java 11 to execute, and Maven for compiling from sources.

Get it

Download latest release from the following link https://github.com/rmartinsanta/scimark/releases/

or compile from source (requires maven):

git clone https://github.com/rmartinsanta/scimark
cd scimark
mvn clean package

Executable will be at target/scimark-version.jar.

Executing standalone

Execute standard benchmark using:

java -jar scimark.jar

or large benchmark using -large switch:

java -jar scimark.jar -large

In a few seconds, a similar output to this will appear:

SciMark 2.0a

Composite Score: 2179.5331097294147
FFT (1024): 1421.5490160647023
SOR (100x100):   1549.6220481439555
Monte Carlo : 956.5629209220217
Sparse matmult (N=1000, nz=5000): 1698.373753314555
LU (100x100): 5271.557810201838

java.vendor: AdoptOpenJDK
java.version: 11.0.6
os.arch: x86_64
os.name: Mac OS X
os.version: 10.16

Process finished with exit code 0

Standard benchmark uses small datasets that should be small enough to fit in CPU caches. Large benchmark should not fit in cache so CPU-RAM performance is also measured in the benchmark.

As a library

Available at maven central: https://search.maven.org/artifact/es.urjc.etsii.grafo/scimark/2.1.1/jar

Example for Maven project

<dependency>
    <groupId>es.urjc.etsii.grafo</groupId>
    <artifactId>scimark</artifactId>
    <version>2.1.1</version>
</dependency>

Example usage:

var benchmarkResult = ScimarkAPI.runBenchmark(); // Optionally set a seed, large run, or custom config
double score = benchmarkResult.getScore();

The benchmark may fail under rare circunstances, throwing BenchmarkException and a message explaining why.

scimark-junkyard's People

Contributors

rmartinsanta avatar jliu312 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.