Changeset 3bd74758 in mainline for uspace/app/perf/malloc/malloc2.def


Ignore:
Timestamp:
2018-12-28T09:32:11Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c7de81b
Parents:
8ee106b
Message:

perf: huge refactoring

The overall aim of this refactoring was to remove duplicate code in all
benchmarks that was responsible (a) for computing proper workload size
and (b) for computing final statistics.

After the refactoring, the actual benchmark code is quite short and
takes care of the actual work only.

The harness code was factored out into perf.c that is now responsible
for computing the workload size and then runs the actual benchmark.

As an extra feature, we pass stopwatch_t into the benchmark code that is
only responsible for starting/stopping. Duration is then queried outside
the benchmark code.

File:
1 edited

Legend:

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

    r8ee106b r3bd74758  
    22        "malloc2",
    33        "User-space memory allocator benchmark, allocate many small blocks",
    4         &bench_malloc2
     4        &bench_malloc2,
     5        NULL, NULL
    56},
Note: See TracChangeset for help on using the changeset viewer.