mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-24 12:44:59 -07:00
move remaining parts of frontend to xxhash, eliminate blake2; sketch out test program for debug string performance testing
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#include <windows.h>
|
||||
|
||||
DWORD thread_entry_point(void *p)
|
||||
{
|
||||
for(int i = 0; i < 100000; i += 1)
|
||||
{
|
||||
OutputDebugString("this is a test\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
HANDLE threads[] =
|
||||
{
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
CreateThread(0, 0, thread_entry_point, 0, 0, 0),
|
||||
};
|
||||
for(int i = 0; i < sizeof(threads)/sizeof(threads[0]); i += 1)
|
||||
{
|
||||
WaitForSingleObject(threads[i], INFINITE);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user