├── .gitignore ├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── libraries │ ├── Maven__net_sf_jopt_simple_jopt_simple_4_6.xml │ ├── Maven__org_apache_commons_commons_math3_3_2.xml │ ├── Maven__org_jetbrains_annotations_13_0.xml │ ├── Maven__org_jetbrains_kotlin_kotlin_stdlib_1_2_30.xml │ └── Maven__org_openjdk_jmh_jmh_core_1_20.xml ├── misc.xml ├── modules.xml ├── scopes │ └── scope_settings.xml ├── uiDesigner.xml ├── vcs.xml └── workspace.xml ├── README.md ├── benchmarks.iml ├── commands.txt ├── pom.xml ├── report ├── benchmarks.baseline.json ├── benchmarks.json ├── jquery.dynatable.css ├── jquery.dynatable.js ├── report.html ├── report.js └── report_java.html ├── src └── main │ ├── java │ └── org │ │ └── kotlinacademy │ │ └── PrimitivesJavaBenchmark.java │ └── kotlin │ └── org │ └── kotlinacademy │ ├── DataModel.kt │ ├── InlineFilterBenchmark.kt │ ├── InlineRepeatBenchmark.kt │ ├── PrimitiveArraysBenchmark.kt │ └── SequencesBenchmark.kt └── zdf-win.txt /.gitignore: -------------------------------------------------------------------------------- 1 | target/** 2 | results/** 3 | *.bat 4 | *.log 5 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | kotlin-benchmarks -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_sf_jopt_simple_jopt_simple_4_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_2_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjdk_jmh_jmh_core_1_20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 119 | 120 | 121 | 122 | SizedBenchmark 123 | 20 124 | 125 | 126 | 127 | 129 | 130 | 149 | 150 | 151 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | ', { 1219 | type: 'search', 1220 | id: 'dynatable-query-search-' + obj.element.id, 1221 | 'data-dynatable-query': 'search', 1222 | value: settings.dataset.queries.search 1223 | }), 1224 | $searchSpan = $('', { 1225 | id: 'dynatable-search-' + obj.element.id, 1226 | 'class': 'dynatable-search', 1227 | text: 'Search: ' 1228 | }).append($search); 1229 | 1230 | $search 1231 | .bind(settings.inputs.queryEvent, function() { 1232 | obj.queries.runSearch($(this).val()); 1233 | }) 1234 | .bind('keypress', function(e) { 1235 | if (e.which == 13) { 1236 | obj.queries.runSearch($(this).val()); 1237 | e.preventDefault(); 1238 | } 1239 | }); 1240 | return $searchSpan; 1241 | }; 1242 | 1243 | this.attach = function() { 1244 | var $target = settings.inputs.searchTarget ? $(settings.inputs.searchTarget) : obj.$element; 1245 | $target[settings.inputs.searchPlacement](this.create()); 1246 | }; 1247 | }; 1248 | 1249 | // provide a public function for selecting page 1250 | function PaginationPage(obj, settings) { 1251 | this.initOnLoad = function() { 1252 | return settings.features.paginate; 1253 | }; 1254 | 1255 | this.init = function() { 1256 | var pageUrl = window.location.search.match(new RegExp(settings.params.page + '=([^&]*)')); 1257 | // If page is present in URL parameters and pushState is enabled 1258 | // (meaning that it'd be possible for dynatable to have put the 1259 | // page parameter in the URL) 1260 | if (pageUrl && settings.features.pushState) { 1261 | this.set(pageUrl[1]); 1262 | } else { 1263 | this.set(1); 1264 | } 1265 | }; 1266 | 1267 | this.set = function(page) { 1268 | settings.dataset.page = parseInt(page, 10); 1269 | } 1270 | }; 1271 | 1272 | function PaginationPerPage(obj, settings) { 1273 | var _this = this; 1274 | 1275 | this.initOnLoad = function() { 1276 | return settings.features.paginate; 1277 | }; 1278 | 1279 | this.init = function() { 1280 | var perPageUrl = window.location.search.match(new RegExp(settings.params.perPage + '=([^&]*)')); 1281 | 1282 | // If perPage is present in URL parameters and pushState is enabled 1283 | // (meaning that it'd be possible for dynatable to have put the 1284 | // perPage parameter in the URL) 1285 | if (perPageUrl && settings.features.pushState) { 1286 | // Don't reset page to 1 on init, since it might override page 1287 | // set on init from URL 1288 | this.set(perPageUrl[1], true); 1289 | } else { 1290 | this.set(settings.dataset.perPageDefault, true); 1291 | } 1292 | 1293 | if (settings.features.perPageSelect) { 1294 | this.attach(); 1295 | } 1296 | }; 1297 | 1298 | this.create = function() { 1299 | var $select = $('