Changeset e131833c in mainline


Ignore:
Timestamp:
2018-11-18T00:30:10Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc41772
Parents:
1edd6d0
Message:

Two simple memory allocation benchmarks.

Location:
uspace/app/perf
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/perf/Makefile

    r1edd6d0 re131833c  
    3636        perf.c \
    3737        ipc/ns_ping.c \
    38         ipc/ping_pong.c
     38        ipc/ping_pong.c \
     39        malloc/malloc1.c \
     40        malloc/malloc2.c
    3941
    4042include $(USPACE_PREFIX)/Makefile.common
  • uspace/app/perf/ipc/ns_ping.c

    r1edd6d0 re131833c  
    8080        uint64_t dsmp[NUM_SAMPLES];
    8181
    82         printf("Benchmark ns server ping time\n");
    8382        printf("Warm up and determine work size...\n");
    8483
  • uspace/app/perf/ipc/ping_pong.c

    r1edd6d0 re131833c  
    8383        const char *msg;
    8484
    85         printf("Benchmark IPC test server ping time\n");
    8685        rc = ipc_test_create(&test);
    8786        if (rc != EOK)
  • uspace/app/perf/perf.c

    r1edd6d0 re131833c  
    4141
    4242benchmark_t benchmarks[] = {
     43#include "ipc/ns_ping.def"
    4344#include "ipc/ping_pong.def"
    44 #include "ipc/ns_ping.def"
     45#include "malloc/malloc1.def"
     46#include "malloc/malloc2.def"
    4547        { NULL, NULL, NULL }
    4648};
  • uspace/app/perf/perf.h

    r1edd6d0 re131833c  
    4646} benchmark_t;
    4747
     48extern const char *bench_malloc1(void);
     49extern const char *bench_malloc2(void);
    4850extern const char *bench_ns_ping(void);
    4951extern const char *bench_ping_pong(void);
Note: See TracChangeset for help on using the changeset viewer.