Changeset d5caf79 in mainline for uspace/app/perf/malloc/malloc2.c


Ignore:
Timestamp:
2018-12-28T13:56:05Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
980611d5
Parents:
c7de81b
git-author:
Vojtech Horky <vojtech.horky@…> (2018-12-28 13:54:23)
git-committer:
Vojtech Horky <vojtech.horky@…> (2018-12-28 13:56:05)
Message:

perf: hide more benchmark implementation

It is much easier to maintain the benchmark if all the definitions etc.
are in a single file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/perf/malloc/malloc2.c

    rc7de81b rd5caf79  
    2929#include <stdlib.h>
    3030#include <stdio.h>
     31#include "../benchlist.h"
    3132#include "../perf.h"
    3233
    33 bool bench_malloc2(stopwatch_t *stopwatch, uint64_t niter,
     34static bool runner(stopwatch_t *stopwatch, uint64_t niter,
    3435    char *error, size_t error_size)
    3536{
     
    6768        return true;
    6869}
     70
     71benchmark_t bench_malloc2 = {
     72        .name = "malloc2",
     73        .desc = "User-space memory allocator benchmark, allocate many small blocks",
     74        .entry = &runner,
     75        .setup = NULL,
     76        .teardown = NULL
     77};
Note: See TracChangeset for help on using the changeset viewer.