VirtualBox

Changeset 74537 in vbox for trunk/src


Ignore:
Timestamp:
Sep 30, 2018 3:45:51 PM (6 years ago)
Author:
vboxsync
Message:

NemRawBench-1: Updates. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/NemRawBench-1.cpp

    r74536 r74537  
    171171
    172172
    173 char *formatNum(uint64_t uNum, int cchWidth, char *pszDst, size_t cbDst)
     173char *formatNum(uint64_t uNum, unsigned cchWidth, char *pszDst, size_t cbDst)
    174174{
    175175    char szTmp[64 + 22];
     
    177177    size_t cchTmp = _snprintf(szTmp, sizeof(szTmp) - 22, "%I64u", uNum);
    178178#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);
    180180#endif
    181181    size_t cSeps  = (cchTmp - 1) / 3;
     
    12641264         */
    12651265        ioportTest(cFactor);
    1266 #ifndef RT_OS_LINUX
    12671266        cpuidTest(cFactor);
    1268 #endif
    12691267        mmioTest(cFactor);
    1270 
    12711268
    12721269        printf("tstNemMini-1: done\n");
     
    12841281 *
    12851282 * - 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)
    12881286 *
    12891287 * - Windows 1803 updated as per 2018-09-28; 3.4GHz AMD Threadripper 1950X:
     
    12961294 *     65 245   CPUID instructions per second (400 001 exits in 6 130 720 600 ns)
    12971295 *     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 *
    12981309 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette