浏览代码

+ slowcpu define

florian 3 年之前
父节点
当前提交
ff64dacf25
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      tests/bench/bdiv.pp

+ 8 - 0
tests/bench/bdiv.pp

@@ -24,7 +24,15 @@ function GetRealTime : Real;
 {$pop}
 
 const
+{$if defined(cpuarm) or defined(cpuavr) or defined(cpui8086) or defined(cpum68k) or defined(cpumips) or defined(cpuz80)}
+  {$define slowcpu}
+{$endif}
+
+{$ifdef slowcpu}
+  ITERATIONS = 32768;
+{$else slowcpu}
   ITERATIONS = 524288;
+{$endif slowcpu}
   INTERNAL_LOOPS = 64;
 
 { TTestAncestor }