forked from nextapps-de/flexsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (113 loc) · 3.25 KB
/
index.html
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
<html lang="en">
<head>
<title>Benchmark of Web Templating Engines (Non-Keyed)</title>
<style>
body{
font-family: Arial, Helvetica, sans-serif;
font-weight: 300;
line-height: 26px;
font-size: 100%;
background-color: #222;
color: #bbb;
}
h1{
padding-top: 10px;
}
input, select{
padding: 5px 10px;
}
#benchmarks td{
text-align: right;
}
#benchmarks td:first-of-type{
text-align: left;
}
body.modes #benchmarks th:nth-last-child(1),
body.modes #benchmarks td:nth-last-child(1),
body.modes #benchmarks th:nth-last-child(2),
body.modes #benchmarks td:nth-last-child(2){
display:none;
}
</style>
</head>
<body>
<h1>Benchmark of Full-Text-Search Libraries (Stress Test)</h1>
<table>
<tr>
<td>
<input type="button" id="start" click="start" value="Start">
</td>
<td> </td>
<td>
Mode:
<select id="mode" change="mode">
<option value>Simple</option>
<option disabled>Advanced</option>
</select>
</td>
<td> </td>
<td>
Duration:
<select id="duration">
<option value="0.1">100 ms</option>
<option value="0.5">500 ms</option>
<option value="1">1 sec</option>
<option value="3">3 sec</option>
<option value="5" selected>5 sec</option>
<option value="10">10 sec</option>
<option value="30">30 sec</option>
</select>
</td>
<td> </td>
<td>
Repeat:
<select id="repeat">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="5">5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</td>
<td> </td>
<td>
<input type="checkbox" id="keep" checked> keep best run
</td>
</tr>
</table>
<hr>
<table id="benchmarks" cellpadding="5" cellspacing="5">
<thead>
<tr>
<th>Library</th>
<th hidden>Size</th>
<th>Memory *</th>
<!--
<th>Add</th>
<th>Update</th>
<th>Remove</th>
-->
<th>Query (Single Term)</th>
<th>Query (Multi Term)</th>
<th>Query (Long)</th>
<th>Query (Dupes)</th>
<th>Query (Not Found)</th>
<th>Index</th>
<th>Score</th>
</tr>
</thead>
<tbody id="result"></tbody>
</table>
<br>
* To measure memory you have to run in Chrome browser.<br><br>
<b>Single Tests:</b>
<ul id="lib"></ul>
<iframe id="iframe" hidden></iframe>
<script src="https://rawcdn.githack.com/nextapps-de/mikado/0.7.4/dist/mikado.min.js"></script>
<script src="tpl/row.js"></script>
<script src="tpl/lib.js"></script>
<script src="index.js"></script>
</body>
</html>