mirror of
https://github.com/boostorg/hana.git
synced 2026-01-31 20:22:10 +00:00
31 lines
559 B
JSON
31 lines
559 B
JSON
<%
|
|
def benchmark(variant)
|
|
time_compilation("#{variant}.erb.cpp", (0...150).step(5))
|
|
end
|
|
%>
|
|
|
|
{
|
|
"title": {
|
|
"text": "Compile-time behavior of creating a map"
|
|
},
|
|
"xAxis": {
|
|
"title": { "text": "Size of the map" }
|
|
},
|
|
"series": [
|
|
{
|
|
"name": "baseline",
|
|
"data": <%= benchmark("baseline") %>
|
|
}, {
|
|
"name": "hana::map",
|
|
"data": <%= benchmark("hana_map") %>
|
|
}
|
|
|
|
<% if cmake_bool("@Boost_FOUND@") %>
|
|
, {
|
|
"name": "fusion::map",
|
|
"data": <%= benchmark("fusion_map") %>
|
|
}
|
|
<% end %>
|
|
]
|
|
}
|