Skip to content

Commit a8ef082

Browse files
committed
Update Rust micro benchmark
- use ndarray crate for randmatstat and randmatmul by default - enable direct BLAS use with a cargo feature - provide rust-toolchain override file - fix trace calculation in randmatstat - other code refactors
1 parent 00e4231 commit a8ef082

File tree

6 files changed

+411
-186
lines changed

6 files changed

+411
-186
lines changed

test/perf/micro/rust/Cargo.lock

Lines changed: 127 additions & 56 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: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
[package]
22
name = "julia-bench"
33
publish = false
4-
description = "Rust implementation of the micro benchmark"
54
version = "0.1.0"
65

76
[dependencies]
8-
blas = { version = "0.15.4", features = ["openblas"] }
7+
itertools = "0.7.1"
98
mersenne_twister = "1.1.0"
10-
num = "0.1.39"
9+
num = "0.1.37"
1110
rand = "0.3.15"
11+
12+
[dependencies.blas]
13+
features = ["openblas"]
14+
version = "0.18.1"
15+
optional = true
16+
17+
[dependencies.blas-sys]
18+
version = "0.6.9"
19+
features = ["openblas"]
20+
21+
[dependencies.ndarray]
22+
features = ["blas"]
23+
version = "0.10.12"
24+
25+
[features]
26+
default = []
27+
direct_blas = ["blas"]

test/perf/micro/rust/rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nightly-2017-10-28

0 commit comments

Comments
 (0)