Files
brenden 682afacd30 Add native self-hosted instance connection to fluxer_desktop
Trimmed monorepo checkout (fluxer_desktop + packages/voice_engine_v2 +
tools/ci) with a "Connect to a Different Server" menu item and popout
that lets the desktop app switch to any self-hosted Fluxer instance,
plus fixes for well-known discovery on single-domain self-hosted
deployments and a false-positive ERR_ABORTED on same-origin client
redirects during the switch. Defaults to chat.fluxr.chat and uses an
isolated userData directory from the official build.
2026-07-01 18:22:43 -04:00

23 lines
542 B
Rust

#[macro_use]
extern crate criterion;
extern crate tract_linalg;
use criterion::Criterion;
fn ssigmoid(c: &mut Criterion, n: usize) {
c.bench_function(&format!("ssigmoid_{n}"), move |be| {
let mut s = (0..n).map(|i| i as f32 / 10.0).collect::<Vec<f32>>();
let op = &(tract_linalg::ops().sigmoid_f32)();
be.iter(|| op.run(&mut s));
});
}
fn bs(c: &mut Criterion) {
ssigmoid(c, 4);
ssigmoid(c, 8);
ssigmoid(c, 128);
ssigmoid(c, 1024);
}
criterion_group!(benches, bs);
criterion_main!(benches);