Skip to content

Commit

Permalink
refactor: move benches to a seperate crate (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra authored Dec 19, 2023
1 parent 9509a86 commit c9a8ab3
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 14 deletions.
21 changes: 21 additions & 0 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "benches"
version = "0.1.0"
edition = "2021"
description = "Benchmarks for the Mun compiler and runtime"

[dependencies]

[dev-dependencies]
criterion = { version = "0.5.1", default-features = false }
mlua = { package = "mlua", version = "0.9.2", default-features = false, features = ["vendored", "luajit"] }
wasmer = { version = "4.2.4", default-features = false, features = ["sys-default"] }
mun_runtime = { path = "../crates/mun_runtime", default-features = false }
mun_compiler = { path = "../crates/mun_compiler", default-features = false }

[[bench]]
name = "benchmarks"
harness = false

[workspace]
# Empty workspace
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions benches/benches/wasm-sources/empty/LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../../LICENSE-APACHE
1 change: 1 addition & 0 deletions benches/benches/wasm-sources/empty/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../../LICENSE-MIT
1 change: 1 addition & 0 deletions benches/benches/wasm-sources/fibonacci/LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../../LICENSE-APACHE
1 change: 1 addition & 0 deletions benches/benches/wasm-sources/fibonacci/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../../LICENSE-MIT
3 changes: 3 additions & 0 deletions benches/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
13 changes: 3 additions & 10 deletions crates/mun_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories = ["game-development", "mun"]
[dependencies]
mun_abi = { version = "0.4.0", path = "../mun_abi" }
mun_libloader = { version = "0.4.0", path = "../mun_libloader" }
mun_capi_utils = { version = "0.4.0", path = "../mun_capi_utils"}
mun_capi_utils = { version = "0.4.0", path = "../mun_capi_utils" }
mun_memory = { version = "0.4.0", path = "../mun_memory" }
mun_project = { version = "0.4.0", path = "../mun_project" }
itertools = { version = "0.12.0", default-features = false, features = ["use_alloc"] }
Expand All @@ -28,14 +28,7 @@ seq-macro = { version = "0.3.5", default-features = false }
thiserror = { version = "1.0.51", default-features = false }

[dev-dependencies]
mun_compiler = { path="../mun_compiler" }
mun_compiler = { path = "../mun_compiler" }
mun_test = { path = "../mun_test" }
criterion = { version = "0.4", default-features = false }
mlua = { package = "mlua", version = "0.8", default-features = false, features = ["vendored", "luajit"] }
tempfile = { version = "3", default-features = false }
termcolor = { version = "1.4", default-features = false }
wasmer = { version = "3.3.0", default-features = false, features = ["sys-default"] }

[[bench]]
name = "benchmarks"
harness = false
termcolor = { version = "1.1", default-features = false }

This file was deleted.

1 change: 0 additions & 1 deletion crates/mun_runtime/benches/wasm-sources/empty/LICENSE-MIT

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c9a8ab3

Please sign in to comment.