Skip to content

Commit 00e4231

Browse files
committed
Add Rust implementation of the micro benchmark
1 parent 268f878 commit 00e4231

File tree

5 files changed

+510
-1
lines changed

5 files changed

+510
-1
lines changed

test/perf/micro/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ benchmarks/java.csv: java/src/main/java/PerfBLAS.java
123123
benchmarks/scala.csv: scala/src/main/scala/perf.scala scala/build.sbt
124124
cd scala; for t in 1 2 3 4 5; do sbt run; done >../$@
125125

126+
benchmarks/rust.csv: rust/src/main.rs rust/Cargo.toml rust/Cargo.lock
127+
cd rust; for t in 1 2 3 4 5; do cargo run -q --release; done >../$@
128+
126129
BENCHMARKS = \
127130
benchmarks/c.csv \
128131
benchmarks/fortran.csv \
@@ -135,7 +138,8 @@ BENCHMARKS = \
135138
benchmarks/matlab.csv \
136139
benchmarks/octave.csv \
137140
benchmarks/python.csv \
138-
benchmarks/r.csv
141+
benchmarks/r.csv \
142+
benchmarks/rust.csv
139143

140144
# These were formerly listed in BENCHMARKS, but I can't get them to run
141145
# 2017-09-27 johnfgibson

test/perf/micro/rust/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

test/perf/micro/rust/Cargo.lock

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/perf/micro/rust/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "julia-bench"
3+
publish = false
4+
description = "Rust implementation of the micro benchmark"
5+
version = "0.1.0"
6+
7+
[dependencies]
8+
blas = { version = "0.15.4", features = ["openblas"] }
9+
mersenne_twister = "1.1.0"
10+
num = "0.1.39"
11+
rand = "0.3.15"

0 commit comments

Comments
 (0)