Skip to content

Commit 2025fb2

Browse files
committed
Add Rust implementation of the micro benchmark
1 parent bd2878f commit 2025fb2

File tree

5 files changed

+510
-1
lines changed

5 files changed

+510
-1
lines changed

test/perf/micro/Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ benchmarks/java.csv: java/src/main/java/PerfBLAS.java
118118
benchmarks/scala.csv: scala/src/main/scala/perf.scala scala/build.sbt
119119
cd scala; for t in 1 2 3 4 5; do sbt run; done >../$@
120120

121+
benchmarks/rust.csv: rust/src/main.rs rust/Cargo.toml rust/Cargo.lock
122+
cd rust; for t in 1 2 3 4 5; do cargo run -q --release; done >../$@
123+
121124
BENCHMARKS = \
122125
benchmarks/c.csv \
123126
benchmarks/fortran.csv \
@@ -131,7 +134,8 @@ BENCHMARKS = \
131134
benchmarks/javascript.csv \
132135
benchmarks/mathematica.csv \
133136
benchmarks/java.csv \
134-
benchmarks/scala.csv
137+
benchmarks/scala.csv \
138+
benchmarks/rust.csv
135139

136140
benchmarks.csv: bin/collect.pl $(BENCHMARKS)
137141
@$(call PRINT_PERL, $^ >$@)

test/perf/micro/rust/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

test/perf/micro/rust/Cargo.lock

+141
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/perf/micro/rust/Cargo.toml

+11
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)