Skip to content

Commit

Permalink
Add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Jun 8, 2020
1 parent b46ea5b commit e2b6041
Show file tree
Hide file tree
Showing 9 changed files with 315 additions and 7 deletions.
206 changes: 206 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ rustc_version = "0.2"
[dev-dependencies]
anyhow = "1.0"
blake3 = "0.3"
criterion = "0.3"
test-utils = { path = "tests/lib/test-utils" }
wasmer-engine-dummy = { path = "tests/lib/engine-dummy" }

Expand Down Expand Up @@ -107,3 +108,7 @@ llvm = [

# [profile.release]
# lto = "fat"

[[bench]]
name = "static_and_dynamic_functions"
harness = false
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: bench

# uname only works in *Unix like systems
ifneq ($(OS), Windows_NT)
ARCH := $(shell uname -m)
Expand Down Expand Up @@ -61,6 +63,12 @@ tests-spec-update-testsuite:
test:
cargo test --release $(compiler_features)

bench:
cargo bench --features "cranelift,singlepass,llvm,jit" $(compiler_features)

check-bench:
cargo check --benches --features "cranelift,singlepass,llvm,jit" $(compiler_features)

release:
cargo build --release $(compiler_features)

Expand Down
Loading

0 comments on commit e2b6041

Please sign in to comment.