Skip to content

Commit

Permalink
various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemaster committed May 7, 2013
1 parent 15c0732 commit 7a56cf9
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 164 deletions.
10 changes: 5 additions & 5 deletions bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <stdio.h>
#include <iostream>
#include <sstream>
#define BENCH_SIZE ( (1024) )
#define ROUNDS 40*64*512
#define BENCH_SIZE ( (1024*16*2) )
#define ROUNDS 3000

/* SEQUENTIAL BENCH
int main( int argc, char** argv )
Expand Down Expand Up @@ -48,12 +48,12 @@ void pc_bench_worker( int pro, int con, char* (*do_alloc)(int s), void (*do_free

for( int r = 0; r < ROUNDS; ++r )
{
for( size_t x = 0; x < 4*4 ; ++x )
for( size_t x = 0; x < BENCH_SIZE/4 ; ++x )
{
uint32_t p = rand() % buffers[pro].size();
if( !buffers[pro][p] )
{
uint64_t si = 32;// +rand()%(1024); //4000;//32 + rand() % (1<<16);
uint64_t si = 10000;//16 +rand()%(1024); //4000;//32 + rand() % (1<<16);
total_alloc += si;
int64_t* r = (int64_t*)do_alloc( si );
// block_header* bh = ((block_header*)r)-1;
Expand All @@ -68,7 +68,7 @@ void pc_bench_worker( int pro, int con, char* (*do_alloc)(int s), void (*do_free
buffers[pro][p] = r;
}
}
for( size_t x = 0; x < 4*4 ; ++x )
for( size_t x = 0; x < BENCH_SIZE/4 ; ++x )
{
uint32_t p = rand() % buffers[con].size();
assert( p < buffers[con].size() );
Expand Down
Loading

1 comment on commit 7a56cf9

@cryptowarriorr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi
i noticed you deleted you telegram account recently
why?
i am still waiting the letter and when it arrives how can i contact you?
please contact me at @AmbrogioOrfeu on telegram

Please sign in to comment.