diff --git a/test/README.md b/test/README.md index 67992c5..1f795e7 100755 --- a/test/README.md +++ b/test/README.md @@ -12,4 +12,6 @@ The shell script `runModuleTest.sh` runs the module test. The test checks that i The performance test is run by the shell script `runPerformanceTest.sh`. The script assumes that the repositories for CWPack, MPack and CMP are side by side in the same folder. +The performance test is targeted to CMP v19 and MPack v1.0. + The performance test checks the duration of a number of calls by calling them 1.000.000 times. diff --git a/test/cwpack_performance_test.c b/test/cwpack_performance_test.c index edc1220..e373bf5 100644 --- a/test/cwpack_performance_test.c +++ b/test/cwpack_performance_test.c @@ -40,7 +40,7 @@ static double milliseconds(void) { #define BEFORE_PTEST(code) \ cw_pack_context_init(&pc, buffer, BUF_Length, 0);\ - cmp_init(&cc, buffer, 0, b_writer);\ + cmp_init(&cc, buffer, 0, 0, b_writer);\ mpack_writer_init(&mw, buffer, BUF_Length); \ code; \ itemSize = (int)(pc.current - pc.start); \ @@ -171,7 +171,7 @@ static void pack_test(void) unsigned int l = (unsigned int)(pc.current - pc.start); \ cw_unpack_context_init (&uc, buffer, l, 0); \ mpack_reader_init_data (&mr, buffer, l); \ - cmp_init(&cc, buffer, b_reader, 0);\ + cmp_init(&cc, buffer, b_reader, 0, 0);\ printf("Buffer filled with: %-35s\n", #code); \ }