diff options
author | frsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731> | 2009-02-15 09:09:56 +0000 |
---|---|---|
committer | frsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731> | 2009-02-15 09:09:56 +0000 |
commit | 9b95875d85fb802f6dd0fc1fe0544bef4be1fbc5 (patch) | |
tree | 550a7b042aac8b976f3677e783f89b61807b070f | |
parent | 7c427400a7071f0cb251edd102430945e142033f (diff) | |
download | msgpack-python-9b95875d85fb802f6dd0fc1fe0544bef4be1fbc5.tar.gz |
lang/c/msgpack: reverted c/bench.c
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@52 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
-rw-r--r-- | c/bench.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -98,9 +98,9 @@ static void pack_append_buffer(void* user, const unsigned char* b, unsigned int static const unsigned int TASK_INT_NUM = 1<<24; -//static const unsigned int TASK_STR_LEN = 1<<15; +static const unsigned int TASK_STR_LEN = 1<<15; //static const unsigned int TASK_INT_NUM = 1<<20; -static const unsigned int TASK_STR_LEN = 1<<12; +//static const unsigned int TASK_STR_LEN = 1<<12; static const char* TASK_STR_PTR; @@ -284,7 +284,6 @@ void bench_msgpack(void) msgpack_unpack_reset(mupk); - /* puts("----"); puts("pack string"); reset_timer(); @@ -317,7 +316,6 @@ void bench_msgpack(void) sec = show_timer(); printf("%f MB/s\n", len / sec / 1024 / 1024); - */ msgpack_unpack_free(mupk); @@ -332,7 +330,7 @@ int main(int argc, char* argv[]) TASK_STR_PTR = str; bench_msgpack(); -// bench_json(); + bench_json(); return 0; } |