progress, still some TODO's before we can start running instructions. need to finish up the initial IO/mem then port the old assembler to DSAv2
This commit is contained in:
@@ -4,7 +4,7 @@ use criterion::{
|
||||
};
|
||||
use std::time::Duration;
|
||||
|
||||
use dsa::RandomAccessMemory;
|
||||
use dsa::{Page, RandomAccessMemory};
|
||||
|
||||
type PhysAddr = u32;
|
||||
|
||||
@@ -139,7 +139,7 @@ fn run_write_page(
|
||||
addrs: &[PhysAddr],
|
||||
implementations: &mut [(&str, Box<dyn RandomAccessMemory>)],
|
||||
) {
|
||||
let page_data = [0xABu8; 4096];
|
||||
let page_data = Page::from([0xABu8; 4096]);
|
||||
group.throughput(Throughput::Bytes(addrs.len() as u64 * 4096));
|
||||
for (name, mem) in implementations.iter_mut() {
|
||||
group.bench_with_input(BenchmarkId::new(*name, ""), addrs, |b, addrs| {
|
||||
|
||||
Reference in New Issue
Block a user