MCPcopy Create free account
hub / github.com/evilsocket/cake / cache_new

Function cache_new

cake-core/benches/bench_cache.rs:7–12  ·  view source on GitHub ↗
(bencher: divan::Bencher)

Source from the content-addressed store, hash-verified

5
6#[divan::bench]
7fn cache_new(bencher: divan::Bencher) {
8 let cfg = test_config();
9 bencher.bench_local(move || {
10 Cache::new(true, DType::F32, &cfg, &Device::Cpu).unwrap()
11 });
12}
13
14#[divan::bench(args = [1, 8, 32])]
15fn cache_cosine(bencher: divan::Bencher, seq_len: usize) {

Callers

nothing calls this directly

Calls 1

test_configFunction · 0.70

Tested by

no test coverage detected