Rust native benchmark: drop unused dependencies

Also, drop the commented-out beginnings of a `plotters-gtk4` version. I
can't use `plotters-gtk4` on my machine because it requires GTK 4.14 or
higher, and Ubuntu 22.04 is still at GTK 4.6.
This commit is contained in:
Aaron Fenyes 2024-08-19 13:12:50 -07:00
parent eeb0f00534
commit 8cb73f88d0
2 changed files with 0 additions and 8 deletions

View File

@ -7,11 +7,9 @@ edition = "2021"
[dependencies]
cairo-rs = "0.20.1"
gtk = { package = "gtk4", version = "0.9.0" }
##minifb = "0.27.0"
nalgebra = "0.33.0"
plotters = "0.3.6"
plotters-cairo = "0.7.0"
##plotters-gtk4 = { git = "https://github.com/baarkerlounger/plotters-gtk4.git", branch = "patch-1" }
[profile.release]
opt-level = "s" # optimize for small code size

View File

@ -26,10 +26,8 @@ use gtk::{
DrawingArea,
Label,
Orientation,
/*Picture,*/
Scale
};
/*use plotters_gtk4::Paintable;*/
use std::time::Instant;
mod engine;
@ -40,10 +38,6 @@ fn main() -> glib::ExitCode {
.build();
app.connect_activate(|app| {
/* run time is typically 77 ms, but at one point i was consistently
getting more like 260 ms. it's not clear what was causing that. building
from scratch seemed to give the short run time, and waiting a while
since the last build might also have had some effect */
const TIME_RES: usize = 100;
let start_time = Instant::now();
let eigval_series = engine::rand_eigval_series(60, TIME_RES);