memory benchmark + app exit code test + thread scheduler observations.

This commit is contained in:
Vahagn Khachatryan
2013-09-19 18:34:43 +04:00
parent d45f136252
commit 13281ad9b9
4 changed files with 680 additions and 5 deletions

View File

@@ -83,7 +83,8 @@ void test_steps( F f , char * p, const size_t c, char * nm )
#endif
static const size_t GB = 1024L*1024L*1024L;
static const size_t L3CACHE = 4*1024*1024;
static const size_t MB = 1024L*1024L;
static const size_t L3CACHE = 20*MB;
class tests
{
@@ -101,7 +102,7 @@ public:
std::vector<duration_type> res;
public:
tests( size_t _ws = GB )
tests( size_t _ws = 4*GB )
: workset(_ws)
, cnt(workset/sizeof(elem_type))
, mem((elem_type*)malloc( workset ))