Let's benchmark malloc
[WebKit-https.git] / PerformanceTests / ChangeLog
index 6e5c07d..4277c4a 100644 (file)
@@ -1,3 +1,95 @@
+2014-04-02  Geoffrey Garen  <ggaren@apple.com>
+
+        Let's benchmark malloc
+        https://bugs.webkit.org/show_bug.cgi?id=131118
+
+        Reviewed by Mark Hahnenberg.
+
+        I want to replace fastMalloc with something faster (fasterMalloc?).
+        I wrote these benchmarks to test / drive development.
+
+        * MallocBench: Added.
+        * MallocBench/MallocBench: Added.
+        * MallocBench/MallocBench.xcodeproj: Added.
+        * MallocBench/MallocBench.xcodeproj/project.pbxproj: Added.
+        * MallocBench/MallocBench/Benchmark.cpp: Added.
+        (allocateHeap):
+        (deallocateHeap):
+        (Benchmark::Benchmark):
+        (Benchmark::printBenchmarks):
+        (Benchmark::runOnce):
+        (Benchmark::run):
+        (Benchmark::printReport):
+        (Benchmark::currentTimeMS):
+        (Benchmark::currentMemoryBytes):
+        * MallocBench/MallocBench/Benchmark.h: Added.
+        (Benchmark::Memory::Memory):
+        (Benchmark::Memory::operator-):
+        (Benchmark::isValid):
+        * MallocBench/MallocBench/CPUCount.cpp: Added.
+        (cpuCount):
+        * MallocBench/MallocBench/CPUCount.h: Added.
+        * MallocBench/MallocBench/CommandLine.cpp: Added.
+        (CommandLine::printUsage):
+        * MallocBench/MallocBench/CommandLine.h: Added.
+        (CommandLine::isValid):
+        (CommandLine::benchmarkName):
+        (CommandLine::isParallel):
+        (CommandLine::heapSize):
+        (CommandLine::measureHeap):
+        * MallocBench/MallocBench/Interpreter.cpp: Added.
+        (Interpreter::Interpreter):
+        (Interpreter::~Interpreter):
+        (Interpreter::run):
+        * MallocBench/MallocBench/Interpreter.h: Added.
+        * MallocBench/MallocBench/balloon.cpp: Added.
+        (benchmark_balloon):
+        * MallocBench/MallocBench/balloon.h: Added.
+        * MallocBench/MallocBench/big.cpp: Added.
+        (benchmark_big):
+        * MallocBench/MallocBench/big.h: Added.
+        * MallocBench/MallocBench/churn.cpp: Added.
+        (HeapDouble::operator new):
+        (HeapDouble::operator delete):
+        (HeapDouble::HeapDouble):
+        (HeapDouble::operator+=):
+        (benchmark_churn):
+        * MallocBench/MallocBench/churn.h: Added.
+        * MallocBench/MallocBench/crash.ops: Added.
+        * MallocBench/MallocBench/facebook.cpp: Added.
+        (benchmark_facebook):
+        * MallocBench/MallocBench/facebook.h: Added.
+        * MallocBench/MallocBench/facebook.ops: Added.
+        * MallocBench/MallocBench/fragment.cpp: Added.
+        (validate):
+        (benchmark_fragment):
+        (benchmark_fragment_iterate):
+        * MallocBench/MallocBench/fragment.h: Added.
+        * MallocBench/MallocBench/list.cpp: Added.
+        (benchmark_list_allocate):
+        (benchmark_list_traverse):
+        * MallocBench/MallocBench/list.h: Added.
+        * MallocBench/MallocBench/main.cpp: Added.
+        (main):
+        * MallocBench/MallocBench/mbmalloc.cpp: Added.
+        * MallocBench/MallocBench/mbmalloc.h: Added.
+        * MallocBench/MallocBench/medium.cpp: Added.
+        (benchmark_medium):
+        * MallocBench/MallocBench/medium.h: Added.
+        * MallocBench/MallocBench/message.cpp: Added.
+        (benchmark_message_one):
+        (benchmark_message_many):
+        * MallocBench/MallocBench/message.h: Added.
+        * MallocBench/MallocBench/realloc.cpp: Added.
+        (benchmark_realloc):
+        * MallocBench/MallocBench/realloc.h: Added.
+        * MallocBench/MallocBench/tree.cpp: Added.
+        (benchmark_tree_allocate):
+        (benchmark_tree_traverse):
+        (benchmark_tree_churn):
+        * MallocBench/MallocBench/tree.h: Added.
+        * MallocBench/run-malloc-benchmarks: Added.
+
 2014-03-29  Mark Lam  <mark.lam@apple.com>
 
         LongSpider 3d-morph result check is inappropriate.