Files
swift-collections/Benchmarks/Libraries/Heap.json
T
Karoy Lorentey cc69069676 [benchmark] Review and extend Heap benchmarks (#76)
* [benchmark] Review and extend Heap benchmarks

* FoundationBenchmark only supports Apple platforms

* Rewrite CFBinaryHeap benchmarks in pure Swift
2021-08-07 14:41:02 -07:00

84 lines
1.9 KiB
JSON

{
"kind": "group",
"title": "Heap Benchmarks",
"directory": "Results",
"contents": [
{
"kind": "group",
"title": "Heap Operations",
"contents": [
{
"kind": "chart",
"title": "operations",
"tasks": [
"Heap<Int> init from range",
"Heap<Int> insert",
"Heap<Int> insert(contentsOf:)",
"Heap<Int> popMax",
"Heap<Int> popMin"
]
},
{
"kind": "chart",
"title": "initializers",
"tasks": [
"Heap<Int> init from range",
"Heap<Int> init from buffer"
]
},
{
"kind": "chart",
"title": "insert",
"tasks": [
"Heap<Int> insert",
"Heap<Int> insert(contentsOf:)"
]
},
{
"kind": "chart",
"title": "remove",
"tasks": [
"Heap<Int> popMax",
"Heap<Int> popMin"
]
}
]
},
{
"kind": "group",
"title": "Heap vs std::priority_queue",
"directory": "Heap + priority_queue",
"contents": [
{
"kind": "chart",
"title": "initializers",
"tasks": [
"std::priority_queue<intptr_t> construct from buffer",
"Heap<Int> init from buffer",
]
},
{
"kind": "chart",
"title": "insert",
"tasks": [
"std::priority_queue<intptr_t> push",
"CFBinaryHeapAddValue",
"CFBinaryHeapAddValue, reserving capacity",
"Heap<Int> insert"
]
},
{
"kind": "chart",
"title": "pop",
"tasks": [
"std::priority_queue<intptr_t> pop",
"CFBinaryHeapRemoveMinimumValue",
"Heap<Int> popMin",
"Heap<Int> popMax"
]
},
]
}
]
}