#include "precomp.h"#include "bench.h"#include "usrbench.h"#include "resource.h"#include "awtest.inc"#include "abtest.inc"Go to the source code of this file.
Defines | |
| #define | APIENTRY FAR PASCAL |
| #define | SETWINDOWLONGVAL 99999L |
| #define | ASSERT(expr) |
| #define | PROPCLASSNAME TEXT("PropWindow") |
| #define | WM_SYSTIMER 0x0118 |
| #define | WIDE 1 |
| #define | A1 A |
| #define | A2 A |
| #define | A1 A |
| #define | A2 W |
| #define | A1 W |
| #define | A2 A |
| #define | A1 W |
| #define | A2 W |
| #define | TEST_DEFAULT 300 |
Typedefs | |
| typedef int | INT |
| typedef char | CHAR |
Functions | |
| INT_PTR APIENTRY | FileOpenDlgProc (HWND, UINT, WPARAM, LPARAM) |
| INT_PTR APIENTRY | ClearDlg (HWND, UINT, WPARAM, LPARAM) |
| INT_PTR APIENTRY | ClearDlgNoState (HWND, UINT, WPARAM, LPARAM) |
| LRESULT APIENTRY | CreateDestroyWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| LRESULT APIENTRY | CreateDestroyWndProcW (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| void | DispErrorMsg (const char *title) |
| _int64 | BeginTimeMeasurement () |
| ULONGLONG | EndTimeMeasurement (_int64 StartTime, ULONG Iter) |
| ULONGLONG | msProfRegisterClass (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfClassGroup (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfClipboardGroup (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgDraw (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgCreate (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgCreateDestroy (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgCreateDestroyNoMenu (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgCreateDestroyNoFont (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfAvgDlgCreateDestroyEmpty (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyWindow (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyChildWindow (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfLocalAllocFree (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfGetWindowLong (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfSetWindowLong (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyListbox (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyButton (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyCombobox (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyEdit (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyStatic (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCreateDestroyScrollbar (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfListboxInsert1 (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfListboxInsert2 (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfListboxInsert3 (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfSize (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfMove (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfMenu (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfGetClientRect (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfScreenToClient (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfGetInputState (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfGetKeyState (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfGetAsyncKeyState (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfDispatchMessage (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfCallback (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfSendMessage (HDC hdc, ULONG Iter) |
| DWORD | SendMessageDiffThreadFunc (PVOID pdwData) |
| ULONGLONG | msProfSendMessageDiffThread (HDC hdc, ULONG Iter) |
| ULONGLONG | msProfUpdateWindow (HDC hDC, ULONG Iter) |
| ULONGLONG | msProfTranslateMessage (HDC hDC, ULONG Iter) |
Variables | |
| CHAR * | aszTypical [] |
| INT | NStrings = sizeof(aszTypical)/sizeof(aszTypical[0]) |
| BOOL | gfSetFocus = TRUE |
| HWND | ghwndFrame |
| HWND | ghwndMDIClient |
| HANDLE | ghinst |
| BOOL | gfPentium |
| HWND | hwndShare |
| TEST_ENTRY | gTestEntry [] |
| ULONG | gNumTests = sizeof gTestEntry / sizeof gTestEntry[0] |
| ULONG | gNumQTests = 10 |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1913 of file bench.c. Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value:
|
|
|
Definition at line 101 of file bench.c. Referenced by msProfClassGroup(), and msProfRegisterClass(). |
|
|
Definition at line 53 of file bench.c. Referenced by msProfSetWindowLong(). |
|
|
|
|
|
|
|
|
Definition at line 1433 of file bench.c. Referenced by CalcWakeMask(), DialogBox2(), DispatchMessageWorker(), DoTimer(), MLEditWndProc(), msProfMenu(), TimersProc(), xxxDispatchMessage(), xxxHandleMenuMessages(), and xxxMNLoop(). |
|
|
|
|
|
|
Definition at line 126 of file bench.c. References BOOL, FALSE, GetCycleCount(), gfPentium, gfUseCycleCount, and TRUE.
|
|
||||||||||||||||||||
|
Definition at line 1284 of file bench.c. References APIENTRY, BOOL, CheckRadioButton(), dc(), EnableWindow(), FALSE, GetDC, GetDlgItem(), gfSetFocus, ID2, ID256, IDHEIGHT, IDIN, IDPELS, IDWIDTH, INT, NULL, ReleaseDC(), SetDlgItemInt(), and TRUE. Referenced by msProfAvgDlgCreate(), msProfAvgDlgCreateDestroy(), msProfAvgDlgCreateDestroyNoFont(), msProfAvgDlgCreateDestroyNoMenu(), and msProfAvgDlgDraw().
|
|
||||||||||||||||||||
|
Definition at line 1331 of file bench.c. References APIENTRY, BOOL, dc(), FALSE, gfSetFocus, INT, and TRUE. Referenced by msProfAvgDlgCreateDestroyEmpty().
|
|
||||||||||||||||||||
|
Definition at line 609 of file bench.c. References APIENTRY, DefWindowProc(), and msg. Referenced by msProfClassGroup(), msProfCreateDestroyButton(), msProfCreateDestroyChildWindow(), msProfCreateDestroyCombobox(), msProfCreateDestroyEdit(), msProfCreateDestroyListbox(), msProfCreateDestroyScrollbar(), msProfCreateDestroyStatic(), msProfCreateDestroyWindow(), msProfDispatchMessage(), msProfGetWindowLong(), msProfListboxInsert1(), msProfListboxInsert2(), msProfListboxInsert3(), msProfRegisterClass(), msProfSendMessage(), msProfSetWindowLong(), msProfTranslateMessage(), msProfUpdateWindow(), and SendMessageDiffThreadFunc().
|
|
||||||||||||||||||||
|
Definition at line 627 of file bench.c. Referenced by msProfCallback().
|
|
|
Definition at line 72 of file bench.c.
|
|
||||||||||||
|
Definition at line 166 of file bench.c. References BOOL, CCNT_OVERHEAD, GetCycleCount(), gfPentium, and PerformanceFreq.
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
Definition at line 369 of file bench.c. References CHAR, CLEARBOX, ClearDlg(), DestroyWindow, END_TIMER_NO_RETURN, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, ShowWindow, START_TIMER, szFile, TRUE, and UpdateWindow().
|
|
||||||||||||
|
Definition at line 393 of file bench.c. References CHAR, CLEARBOX, ClearDlg(), DestroyWindow, END_TIMER_NO_RETURN, FALSE, gfSetFocus, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, START_TIMER, szFile, and TRUE.
|
|
||||||||||||
|
Definition at line 473 of file bench.c. References CHAR, ClearDlgNoState(), DestroyWindow, EMPTY, END_TIMER_NO_RETURN, FALSE, gfSetFocus, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, START_TIMER, szFile, and TRUE.
|
|
||||||||||||
|
Definition at line 446 of file bench.c. References CHAR, CLEARBOXNOFONT, ClearDlg(), DestroyWindow, END_TIMER_NO_RETURN, FALSE, gfSetFocus, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, START_TIMER, szFile, and TRUE.
|
|
||||||||||||
|
Definition at line 420 of file bench.c. References CHAR, CLEARBOXNOMENU, ClearDlg(), DestroyWindow, END_TIMER_NO_RETURN, FALSE, gfSetFocus, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, START_TIMER, szFile, and TRUE.
|
|
||||||||||||
|
Definition at line 342 of file bench.c. References CHAR, CLEARBOX, ClearDlg(), DestroyWindow, END_TIMER_NO_RETURN, FALSE, ghinst, ghwndFrame, INIT_TIMER, RETURN_STOP_TIME, ShowWindow, START_TIMER, szFile, TRUE, and UpdateWindow().
|
|
||||||||||||
|
Definition at line 1613 of file bench.c. References CreateDestroyWndProcW(), DestroyWindow, END_TIMER_NO_RETURN, ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, L, NULL, RETURN_STOP_TIME, SendMessage(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 262 of file bench.c. References CreateDestroyWndProc(), END_TIMER_NO_RETURN, GetClassInfo(), GetClassLongPtr(), ghinst, ghwndFrame, IDUSERBENCH, INIT_TIMER, NULL, PROPCLASSNAME, RegisterClass, RETURN_STOP_TIME, SetClassLongPtr(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 307 of file bench.c. References CloseClipboard, END_OVERHEAD, END_TIMER_NO_RETURN, GetClipboardData(), ghwndFrame, INIT_TIMER, OpenClipboard(), RETURN_STOP_TIME, SetClipboardData(), START_OVERHEAD, and START_TIMER.
|
|
||||||||||||
|
Definition at line 828 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 555 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 880 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 932 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 776 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1036 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 984 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 501 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1559 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, DispatchMessage(), END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, msg, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1543 of file bench.c. References END_TIMER, GetAsyncKeyState(), INIT_TIMER, and START_TIMER.
|
|
||||||||||||
|
Definition at line 1474 of file bench.c. References END_TIMER, GetClientRect(), ghwndMDIClient, INIT_TIMER, and START_TIMER.
|
|
||||||||||||
|
Definition at line 1511 of file bench.c. References END_TIMER, GetInputState(), INIT_TIMER, and START_TIMER.
|
|
||||||||||||
|
Definition at line 1527 of file bench.c. References END_TIMER, GetKeyState(), INIT_TIMER, and START_TIMER.
|
|
||||||||||||
|
Definition at line 674 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1088 of file bench.c. References aszTypical, CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NStrings, NULL, RegisterClass, RETURN_STOP_TIME, SendMessage(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1153 of file bench.c. References aszTypical, CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NStrings, NULL, RegisterClass, RETURN_STOP_TIME, SendMessage(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1217 of file bench.c. References aszTypical, CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NStrings, NULL, RegisterClass, RETURN_STOP_TIME, SendMessage(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 645 of file bench.c. References END_TIMER, INIT_TIMER, and START_TIMER.
|
|
||||||||||||
|
Definition at line 1435 of file bench.c. References DispatchMessage(), DWORD, END_TIMER_NO_RETURN, FALSE, GetParent(), ghwndMDIClient, INIT_TIMER, L, msg, NULL, PeekMessage(), PostMessage(), RETURN_STOP_TIME, SendMessage(), ShowWindow, START_TIMER, UpdateWindow(), and WM_SYSTIMER.
|
|
||||||||||||
|
Definition at line 1393 of file bench.c. References END_TIMER_NO_RETURN, FALSE, GetClientRect(), GetWindow(), ghwndMDIClient, InflateRect(), INIT_TIMER, NULL, RETURN_STOP_TIME, SetWindowPos, ShowWindow, START_TIMER, and UpdateWindow().
|
|
||||||||||||
|
Definition at line 224 of file bench.c. References CreateDestroyWndProc(), END_TIMER, ghinst, IDUSERBENCH, INIT_TIMER, NULL, PROPCLASSNAME, RegisterClass, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1491 of file bench.c. References END_TIMER, ghwndMDIClient, INIT_TIMER, ScreenToClient(), and START_TIMER.
|
|
||||||||||||
|
Definition at line 1659 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, SendMessage(), START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1752 of file bench.c. References ASSERT, DWORD, END_TIMER_NO_RETURN, FALSE, hwndShare, INIT_TIMER, NULL, PostThreadMessage(), RETURN_STOP_TIME, SendMessage(), SendMessageDiffThreadFunc(), START_TIMER, and TRUE.
|
|
||||||||||||
|
Definition at line 725 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER_NO_RETURN, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, SETWINDOWLONGVAL, START_TIMER, and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1353 of file bench.c. References END_TIMER_NO_RETURN, FALSE, GetClientRect(), GetWindow(), ghwndMDIClient, InflateRect(), INIT_TIMER, NULL, RETURN_STOP_TIME, SetWindowPos, ShowWindow, START_TIMER, and UpdateWindow().
|
|
||||||||||||
|
Definition at line 1843 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_TIMER, FALSE, GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, msg, NULL, RegisterClass, START_TIMER, TranslateMessage(), and UnregisterClass().
|
|
||||||||||||
|
Definition at line 1791 of file bench.c. References CreateDestroyWndProc(), DestroyWindow, END_OVERHEAD, END_TIMER_NO_RETURN, FALSE, GetClientRect(), GetParent(), ghinst, ghwndMDIClient, IDUSERBENCH, INIT_TIMER, NULL, RegisterClass, RETURN_STOP_TIME, START_OVERHEAD, START_TIMER, UnregisterClass(), and UpdateWindow().
|
|
|
Definition at line 1705 of file bench.c. References ASSERT, BOOL, CreateDestroyWndProc(), DestroyWindow, DispatchMessage(), DWORD, FALSE, GetDesktopWindow(), GetMessage(), GetParent(), ghinst, ghwndMDIClient, hwndShare, IDUSERBENCH, msg, NULL, RegisterClass, TRUE, and UnregisterClass(). Referenced by msProfSendMessageDiffThread().
|
|
|
Initial value:
Definition at line 93 of file bench.c. Referenced by msProfListboxInsert1(), msProfListboxInsert2(), and msProfListboxInsert3(). |
|
|
Definition at line 124 of file bench.c. Referenced by BeginTimeMeasurement(), EndTimeMeasurement(), ResultsDlgProc(), and WriteBatchResults(). |
|
|
Definition at line 100 of file bench.c. Referenced by ClearDlg(), ClearDlgNoState(), msProfAvgDlgCreateDestroy(), msProfAvgDlgCreateDestroyEmpty(), msProfAvgDlgCreateDestroyNoFont(), and msProfAvgDlgCreateDestroyNoMenu(). |
|
|
|
Definition at line 107 of file bench.c. Referenced by InitializeInstance(), msProfAvgDlgCreate(), msProfAvgDlgCreateDestroy(), msProfAvgDlgCreateDestroyEmpty(), msProfAvgDlgCreateDestroyNoFont(), msProfAvgDlgCreateDestroyNoMenu(), msProfAvgDlgDraw(), msProfClassGroup(), msProfClipboardGroup(), SaveResults(), and WinMain(). |
|
|
|
|
|
|
|
|
|
Definition at line 1922 of file bench.c. Referenced by ResultsDlgProc(), WndProc(), and WriteBatchResults(). |
|
|
Definition at line 1703 of file bench.c. Referenced by msProfSendMessageDiffThread(), and SendMessageDiffThreadFunc(). |
|
|
Definition at line 98 of file bench.c. Referenced by msProfListboxInsert1(), msProfListboxInsert2(), and msProfListboxInsert3(). |
1.3.7