forked from apache/druid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating bytebuffercollections from Metamarkets. (apache#3647)
* Migrating bytebuffercollections from Metamarkets. * resolving code conflicts and removing <p> from bytebuffer-collections.
- Loading branch information
Showing
113 changed files
with
7,286 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 145 additions & 0 deletions
145
bytebuffer-collections/benchmarks/io.druid.collections.bitmap.RangeBitmapBenchmarkTest.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
<!-- | ||
~ Licensed to Metamarkets Group Inc. (Metamarkets) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. Metamarkets licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | ||
<title>Benchmark results for methods in class RangeBitmapBenchmarkTest</title> | ||
|
||
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | ||
<script type="text/javascript"> | ||
google.load("jquery", "1.4.2"); | ||
google.load('visualization', '1', {packages: ['linechart', 'table']}); | ||
|
||
|
||
</script> | ||
|
||
<style type="text/css"> | ||
#content { | ||
width: 800px ; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
#chart { | ||
width: 600px; | ||
height: 400px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-bottom: 10px; | ||
display: block; | ||
} | ||
|
||
ul.expander { | ||
display: inline; | ||
margin-left: 0; | ||
padding-left: 0; | ||
font-size: .8em; | ||
} | ||
|
||
ul.expander li { | ||
margin-left: 0; | ||
list-style: none; | ||
display: inline; | ||
} | ||
|
||
ul.expander li:before { | ||
content: "\25BA\0020"; // 25B8 | ||
} | ||
|
||
ul.expander li.expanded:before { | ||
content: "\25BC\0020"; // 25BE | ||
} | ||
|
||
|
||
</style> | ||
|
||
<script type="text/javascript"> | ||
var chart; | ||
|
||
function drawData(data, labelColumn) { | ||
var labelColumns = [0, 1, 2]; | ||
labelColumns.splice(labelColumn, 1); | ||
|
||
var view = new google.visualization.DataView(data); | ||
view.hideColumns(labelColumns); | ||
|
||
chart.draw(view, { | ||
titleY: "Round time [s]", | ||
|
||
}); | ||
} | ||
|
||
function visualize(jsonData, className) { | ||
var data = new google.visualization.DataTable(jsonData); | ||
|
||
var table = new google.visualization.Table(document.getElementById('raw-data')); | ||
table.draw(data, { | ||
sort: "event", | ||
}); | ||
|
||
google.visualization.events.addListener(table, 'sort', | ||
function(event) { | ||
if (event.column >= 0 && event.column <= 2) { | ||
drawData(data, event.column); | ||
} | ||
} | ||
); | ||
|
||
chart = new google.visualization.LineChart(document.getElementById('chart')); | ||
drawData(data, 01); | ||
} | ||
|
||
var data; | ||
function receiveJsonpData(jsonpData) { | ||
data = jsonpData; | ||
} | ||
|
||
google.setOnLoadCallback(function() { | ||
visualize(data, "RangeBitmapBenchmarkTest"); | ||
|
||
$("#properties").click(function () { | ||
$(this).toggleClass("expanded"); | ||
$("#proplist").slideToggle(); | ||
}); | ||
}); | ||
|
||
|
||
</script> | ||
</head> | ||
|
||
<body style="font-family: Arial; margin: 30px;"> | ||
<div id="content"> | ||
<h1>Benchmark results for methods in class RangeBitmapBenchmarkTest</h1> | ||
|
||
<div id="chart"></div> | ||
<div id="raw-data"></div> | ||
|
||
<div> | ||
<ul class="expander"> | ||
<li id="properties"><a href="#">Properties</a></li> | ||
</ul> | ||
<pre id="proplist" style="display: none; background-color: #e0e0e0;">Shows historical runs: 20</pre> | ||
</div> | ||
</div> | ||
|
||
<script src="RangeBitmapBenchmarkTest.jsonp"></script> | ||
</body> | ||
</html> |
22 changes: 22 additions & 0 deletions
22
bytebuffer-collections/benchmarks/io.druid.collections.bitmap.RangeBitmapBenchmarkTest.jsonp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
receiveJsonpData({ | ||
"cols": [ | ||
{"label": "Run", "type": "string"}, | ||
{"label": "Custom key", "type": "string"}, | ||
{"label": "Timestamp", "type": "string"}, | ||
{"label": "timeConciseUnion", "type": "string"} , | ||
{"label": "timeGenericConciseIntersection", "type": "string"} , | ||
{"label": "timeGenericConciseUnion", "type": "string"} , | ||
{"label": "timeGenericRoaringIntersection", "type": "string"} , | ||
{"label": "timeGenericRoaringUnion", "type": "string"} , | ||
{"label": "timeImmutableRoaringUnion", "type": "string"} , | ||
{"label": "timeOffheapConciseUnion", "type": "string"} , | ||
{"label": "timeOffheapRoaringUnion", "type": "string"} , | ||
{"label": "timeRoaringUnion", "type": "string"} ], | ||
"rows": [ | ||
{"c": [{"v": "5"}, {"v": "0.00001"}, {"v": "2014-11-04 14:03:04.268"}, {"v": 80.304}, {"v": 79.758}, {"v": 65.896}, {"v": 0.008}, {"v": 0.278}, {"v": 0.596}, {"v": 70.89}, {"v": 0.275}, {"v": 0.202}]}, | ||
{"c": [{"v": "1"}, {"v": "0.0001"}, {"v": "2014-11-04 13:32:21.752"}, {"v": 30.843}, {"v": 30.863}, {"v": 32.306}, {"v": 0.012}, {"v": 0.272}, {"v": 0.546}, {"v": 32.727}, {"v": 0.327}, {"v": 0.158}]}, | ||
{"c": [{"v": "2"}, {"v": "0.0010"}, {"v": "2014-11-04 13:41:55.608"}, {"v": 3.801}, {"v": 3.441}, {"v": 3.421}, {"v": 0.019}, {"v": 0.272}, {"v": 0.524}, {"v": 3.76}, {"v": 0.271}, {"v": 0.171}]}, | ||
{"c": [{"v": "3"}, {"v": "0.0100"}, {"v": "2014-11-04 13:45:36.077"}, {"v": 0.341}, {"v": 0.541}, {"v": 0.628}, {"v": 0.025}, {"v": 0.276}, {"v": 0.576}, {"v": 0.352}, {"v": 0.276}, {"v": 0.263}]}, | ||
{"c": [{"v": "4"}, {"v": "0.1000"}, {"v": "2014-11-04 13:49:27.509"}, {"v": 0.051}, {"v": 0.062}, {"v": 0.046}, {"v": 0.039}, {"v": 0.295}, {"v": 0.47}, {"v": 0.045}, {"v": 0.299}, {"v": 0.181}]}, | ||
{"c": [{"v": "38"}, {"v": "0.25000"}, {"v": "2014-11-04 15:22:42.446"}, {"v": 0.036}, {"v": 0.041}, {"v": 0.04}, {"v": 0.052}, {"v": 0.179}, {"v": 0.391}, {"v": 0.042}, {"v": 0.18}, {"v": 0.105}]} | ||
]}); |
Oops, something went wrong.