MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_str

Function parse_str

perro_source/build_pipeline/perro_static_pipeline/src/lib.rs:559–563  ·  view source on GitHub ↗
(text: &'static str)

Source from the content-addressed store, hash-verified

557 let start = Instant::now();
558 let mut refs = Vec::with_capacity(ITEM_COUNT * ITERATIONS);
559 for _ in 0..ITERATIONS {
560 for hash in hashes {
561 refs.push(black_box(lookup(black_box(*hash))));
562 }
563 }
564 let lookup_elapsed = start.elapsed();
565
566 let start = Instant::now();

Calls 2

iterMethod · 0.45
as_bytesMethod · 0.45