mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-12-26 23:29:23 +00:00
Run both cpu types in cpu benchmark
This commit is contained in:
parent
9f8f73f530
commit
6ac568742e
@ -57,9 +57,12 @@ if (isCpu!T)
|
||||
|
||||
void main()
|
||||
{
|
||||
// auto milliExpected = (61886766.0 / 1020484.0) * 1000;
|
||||
auto milliExpected = (64508206.0 / 1020484.0) * 1000;
|
||||
auto r = benchmark!(
|
||||
auto nmosExpected = (61886766.0 / 1020484.0) * 1000;
|
||||
auto cmosExpected = (64508206.0 / 1020484.0) * 1000;
|
||||
auto r1 = benchmark!(
|
||||
run_benchmark!(CPU!("6502", BreakRunner, BreakRunner)))(1);
|
||||
writeln("NMOS: ", nmosExpected / r1[0].to!("msecs", int));
|
||||
auto r2 = benchmark!(
|
||||
run_benchmark!(CPU!("65C02", BreakRunner, BreakRunner)))(1);
|
||||
writeln(milliExpected / r[0].to!("msecs", int));
|
||||
writeln("CMOS: ", cmosExpected / r2[0].to!("msecs", int));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user