2022-03-05 21:56:23 +00:00
|
|
|
#[cfg(windows)]
|
|
|
|
fn main() {
|
2023-04-26 12:14:55 +00:00
|
|
|
let mut res = winresource::WindowsResource::new();
|
2022-05-25 03:28:10 +00:00
|
|
|
res.set("ProductName", "Nushell");
|
|
|
|
res.set("FileDescription", "Nushell");
|
|
|
|
res.set("LegalCopyright", "Copyright (C) 2022");
|
|
|
|
res.set_icon("assets/nu_logo.ico");
|
|
|
|
res.compile()
|
|
|
|
.expect("Failed to run the Windows resource compiler (rc.exe)");
|
2022-03-05 21:56:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(not(windows))]
|
Tango migration (#12469)
# Description
This PR migrates the benchmark suit to Tango. Its different compared to
other framework because it require 2 binaries, to run to do A/B
benchmarking, this is currently limited to Linux, Max, (Windows require
rustc nightly flag), by switching between two suits it can reduce noise
and run the code "almost" concurrently. I have have been in contact with
the maintainer, and bases this on the dev branch, as it had a newer API
simular to criterion. This framework compared to Divan also have a
simple file dump system if we want to generate graphs, do other analysis
on later. I think overall this crate is very nice, a lot faster to
compile and run then criterion, that's for sure.
2024-05-05 15:53:48 +00:00
|
|
|
fn main() {
|
|
|
|
// Tango uses dynamic linking, to allow us to dynamically change between two bench suit at runtime.
|
|
|
|
// This is currently not supported on non nightly rust, on windows.
|
|
|
|
println!("cargo:rustc-link-arg-benches=-rdynamic");
|
2024-07-10 23:05:24 +00:00
|
|
|
println!("cargo:rerun-if-changed=scripts/build.rs");
|
Tango migration (#12469)
# Description
This PR migrates the benchmark suit to Tango. Its different compared to
other framework because it require 2 binaries, to run to do A/B
benchmarking, this is currently limited to Linux, Max, (Windows require
rustc nightly flag), by switching between two suits it can reduce noise
and run the code "almost" concurrently. I have have been in contact with
the maintainer, and bases this on the dev branch, as it had a newer API
simular to criterion. This framework compared to Divan also have a
simple file dump system if we want to generate graphs, do other analysis
on later. I think overall this crate is very nice, a lot faster to
compile and run then criterion, that's for sure.
2024-05-05 15:53:48 +00:00
|
|
|
}
|