- Timestamp:
- Sep 30, 2018 3:45:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/NemRawBench-1.cpp
r74536 r74537 171 171 172 172 173 char *formatNum(uint64_t uNum, intcchWidth, char *pszDst, size_t cbDst)173 char *formatNum(uint64_t uNum, unsigned cchWidth, char *pszDst, size_t cbDst) 174 174 { 175 175 char szTmp[64 + 22]; … … 177 177 size_t cchTmp = _snprintf(szTmp, sizeof(szTmp) - 22, "%I64u", uNum); 178 178 #else 179 size_t cchTmp = snprintf(szTmp, sizeof(szTmp) - 22, "%llu", uNum);179 size_t cchTmp = snprintf(szTmp, sizeof(szTmp) - 22, "%llu", (unsigned long long)uNum); 180 180 #endif 181 181 size_t cSeps = (cchTmp - 1) / 3; … … 1264 1264 */ 1265 1265 ioportTest(cFactor); 1266 #ifndef RT_OS_LINUX1267 1266 cpuidTest(cFactor); 1268 #endif1269 1267 mmioTest(cFactor); 1270 1271 1268 1272 1269 printf("tstNemMini-1: done\n"); … … 1284 1281 * 1285 1282 * - Linux 4.18.0-1-amd64 (debian); 3.4GHz AMD Threadripper 1950X: 1286 * 545108[incorrect] OUT instructions per second 1287 * 373159[incorrect] MMIO/r1 instructions per second 1283 * 455 727 OUT instructions per second (2 400 001 exits in 5 266 300 471 ns) 1284 * 1 745 014 CPUID instructions per second (1 exits in 1 375 346 658 ns) [1] 1285 * 351 767 MMIO/r1 instructions per second (2 400 001 exits in 6 822 684 544 ns) 1288 1286 * 1289 1287 * - Windows 1803 updated as per 2018-09-28; 3.4GHz AMD Threadripper 1950X: … … 1296 1294 * 65 245 CPUID instructions per second (400 001 exits in 6 130 720 600 ns) 1297 1295 * 61 642 MMIO/r1 instructions per second (400 001 exits in 6 489 013 700 ns) 1296 * 1297 * [1] CPUID causes no return to ring-3 with KVM. 1298 * 1299 * 1300 * For reference we can compare with similar testsin bs2-test1 running VirtualBox: 1301 * 1302 * - Linux 4.18.0-1-amd64 (debian); 3.4GHz AMD Threadripper 1950X; trunk/r125404: 1303 * real mode, 32-bit OUT : 1 338 471 ins/sec 1304 * real mode, 32-bit OUT-to-ring-3 : 500 337 ins/sec 1305 * real mode, CPUID : 1 566 343 ins/sec 1306 * real mode, 32-bit write : 870 671 ins/sec 1307 * real mode, 32-bit write-to-ring-3: 391 014 ins/sec 1308 * 1298 1309 */
Note:
See TracChangeset
for help on using the changeset viewer.