/MemoryAllocatorBenchmark

memory allocator performance tester

Primary LanguageC++

Memory Allocator Benchmark

Usage

  • open MemoryAllocatorBenchmark.sln
  • build with x64 platform and Release.
  • execute just batch file for benchmark.

$ bin\MemoryAllocatorBenchmark.bat

Benchmark

  • Because of memory allocators may has a memory pool, it is so different between first allocations and second allocations.

  • it tests to execute processes several times.

  • it tests several times allocations to measure the differences between first allocation and second allocation.

  • Defaults

  • Variable block size : 8bytes ~ 32K bytes

  • Mulith-thread : 4 threads

  • count of allocations/deallocations : 10000

  • method of allocation : run sequentially, run concurrently

Environment

  • Windows
  • C++
  • Visual Studio 2015

Extras

  • it uses high_resolution_clock of C++11 to measure the performance.

Enhancement Requests

  • support more memory allocators
  • support more Operating Systems
  • support more IDEs