Skip to content

Commit

Permalink
refactor: move benches to a seperate crate
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Dec 19, 2023
1 parent b14c0d0 commit e30a611
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 11 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!");
}
7 changes: 0 additions & 7 deletions crates/mun_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,5 @@ thiserror = { version = "1.0.38", default-features = false }
[dev-dependencies]
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.1", default-features = false }
wasmer = { version = "3.0.2", default-features = false, features = ["sys-default"] }

[[bench]]
name = "benchmarks"
harness = 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 e30a611

Please sign in to comment.