OSDN Git Service

[libc] revamp memory function benchmark
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 17 Dec 2020 13:16:14 +0000 (13:16 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 17 Dec 2020 13:23:33 +0000 (13:23 +0000)
commitdeae7e982a3b08996455e2cdfdc5062bf37895a3
treea14cdf5898139d9f32a6a159c9b09fe81545dbfe
parente7a3c4c11e84ba99c3682ae6cf20c398f16cf3f5
[libc] revamp memory function benchmark

The benchmarking infrastructure can now run in two modes:
 - Sweep Mode: which generates a ramp of size values (same as before),
 - Distribution Mode: allows the user to select a distribution for the size paramater that is representative from production.

The analysis tool has also been updated to handle both modes.

Differential Revision: https://reviews.llvm.org/D93210
20 files changed:
libc/benchmarks/CMakeLists.txt
libc/benchmarks/JSON.cpp
libc/benchmarks/JSON.h
libc/benchmarks/JSONTest.cpp
libc/benchmarks/LibcBenchmark.h
libc/benchmarks/LibcMemoryBenchmark.cpp
libc/benchmarks/LibcMemoryBenchmark.h
libc/benchmarks/LibcMemoryBenchmarkMain.cpp
libc/benchmarks/LibcMemoryBenchmarkMain.h [deleted file]
libc/benchmarks/LibcMemoryBenchmarkTest.cpp
libc/benchmarks/Memcmp.cpp [deleted file]
libc/benchmarks/Memcpy.cpp [deleted file]
libc/benchmarks/MemorySizeDistributions.cpp
libc/benchmarks/Memset.cpp [deleted file]
libc/benchmarks/RATIONALE.md
libc/benchmarks/README.md
libc/benchmarks/configuration_big.json [deleted file]
libc/benchmarks/configuration_small.json [deleted file]
libc/benchmarks/libc-benchmark-analysis.py3 [new file with mode: 0644]
libc/benchmarks/render.py3 [deleted file]