-
Notifications
You must be signed in to change notification settings - Fork 0
/
templat.xml
294 lines (275 loc) · 9.99 KB
/
templat.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<?xml version="1.0"?>
<fest:template xmlns:fest="http://fest.mail.ru" context_name="json">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
</head>
<body>
<table width="800">
<tbody>
<tr>
<td width="200">
<table bgcolor="#000000" border="0" cellpadding="4" cellspacing="2" width="100%">
<tbody>
<tr><td bgcolor="#ffffff"><h1>Lebowski benchmark</h1></td></tr>
</tbody>
</table>
</td>
<fest:foreach iterate="json.adverts" index="i">
<td valign="top" width="200">
<table bgcolor="#000000" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<td>
<font color="#ffffff"><b><fest:value>json.adverts[i].title</fest:value></b></font>
</td>
</tr>
<tr>
<td bgcolor="#ffffff">
<small>
<a>
<fest:attributes>
<fest:attribute name="href"><fest:value>json.adverts[i].url</fest:value></fest:attribute>
</fest:attributes>
<fest:value>json.adverts[i].text</fest:value>
</a>
</small>
</td>
</tr>
</tbody>
</table>
</td>
</fest:foreach>
</tr>
<tr valign="top">
<td width="200">
<fest:if test="json.sections">
<table cellpadding="3" width="100%">
<tbody>
<fest:foreach iterate="json.sections" index="i">
<tr>
<td>
<fest:attributes>
<fest:attribute name="bgcolor">
<fest:choose>
<fest:when test="i%2">
<fest:text>#dddddd</fest:text>
</fest:when>
<fest:otherwise>
<fest:text>#eeeeee</fest:text>
</fest:otherwise>
</fest:choose>
</fest:attribute>
</fest:attributes>
<font color="#ffffff">
<b>
<a>
<fest:attributes>
<fest:attribute name="href">
http://lb/section.html?id=<fest:value>json.sections[i].id</fest:value>
</fest:attribute>
</fest:attributes>
<fest:value>json.sections[i].title</fest:value>
</a>
<fest:if test="json.sections[i].rip">
<font color="#999999">R.I.P.</font>
</fest:if>
</b>
</font>
</td>
</tr>
</fest:foreach>
</tbody>
</table>
</fest:if>
<p>
<b>Users</b>: <fest:value>json.total</fest:value><br/>
<b>Online</b>: <fest:value>(json.online||false).length</fest:value><br/>
<small>
<i>
<fest:foreach iterate="json.online" index="i">
<a>
<fest:attributes>
<fest:attribute name="href">
http://lb/user.html?id=<fest:value>i</fest:value>
</fest:attribute>
</fest:attributes>
<fest:value>json.online[i].name</fest:value>
</a>
<fest:value>" "</fest:value>
</fest:foreach>
</i>
</small>
</p>
</td>
<td colspan="3" width="400">
<fest:foreach iterate="json.news" index="i">
<b>
<fest:value>json.news[i].time+' '+json.news[i].title</fest:value>
</b>
<br/>
<small>
<fest:value>json.news[i].text</fest:value>
<a>
<fest:attributes>
<fest:attribute name="href">
http://lb/news.html?id=<fest:value>json.news[i].id</fest:value>
</fest:attribute>
</fest:attributes>
[ read full story ]
</a>
</small>
<br/>
</fest:foreach>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<hr/>
<small><i>This test based on "Big Lebowski" test by Alexey A. Rybak, 2005.<br/>
Please send all questions and suggestions to <b>reki@reki.ru</b></i></small>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<!--
var bench_vars = {
adverts : [
{
"title" : "Walter",
"text" : "You see what happens, Larry?",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
},
{
"title" : "Walter",
"text" : "I don't roll on Shabbos!",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
},
{
"title" : "Blond Thug",
"text" : "Where's the money, Lebowski?",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
},
{
"title" : "Nihilist",
"text" : "We believe in nothing, Lebowski.",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
},
{
"title" : "Walter",
"text" : "Is this your homework, Larry?",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
},
{
"title" : "Nihilist",
"text" : "Ve vant ze money, Lebowski",
"url" : "http://www.imdb.com/title/tt0118715/quotes"
}
],
sections : [
{
"id" : 1234,
"title" : "The Dude",
"rip" : 0
},
{
"id" : 2345,
"title" : "Walter Sobchak",
"rip" : 0
},
{
"id" : 3456,
"title" : "Donny",
"rip" : 1
},
{
"id" : 4567,
"title" : "Maude Lebowski",
"rip" : 0
},
{
"id" : 5678,
"title" : "The Big Lebowski",
"rip" : 0
},
{
"id" : 6789,
"title" : "Brandt",
"rip" : 0
},
{
"id" : 7890,
"title" : "Jesus Quintana",
"rip" : 0
}
],
"total" : 654329,
"online" : [
{ "name" : "true" },
{ "name" : "false" },
{ "name" : "short" },
{ "name" : "long" },
{ "name" : "apha" },
{ "name" : "omega" },
{ "name" : "drag" },
{ "name" : "drop" },
{ "name" : "make" },
{ "name" : "clean" },
{ "name" : "east" },
{ "name" : "west" },
{ "name" : "up" },
{ "name" : "down" },
{ "name" : "sun" },
{ "name" : "rain" },
{ "name" : "secondary" },
{ "name" : "main" }
],
"news" : [
{
"time" : "03:45",
"id" : 987,
"title" : "The Stranger",
"text" : "See, they call Los Angeles the \"City Of Angels\"; but I didn't find it to be that, exactly. But I'll allow it as there are s ome nice folks there. 'Course I ain't never been to London, and I ain't never seen France. And I ain't never seen no queen in her damned undies, so the feller says. But I'll tell you what - after seeing Los Angeles, and this here story I'm about to unfold, well, I guess I seen somethin' every bit as stupefyin' as you'd seen in any of them other places. And in English , too. So I can die with a smile on my face, without feelin' like the good Lord gypped me. Now this here story I'm about to unfold took place in the early '90s - just about the time of our conflict with Sad'm and the I-raqis. I only mention it be cause sometimes there's a man..."
},
{
"time" : "03:48",
"id" : 876,
"title" : "The Stranger",
"text" : "...I won't say a hero, 'cause, what's a hero? Sometimes, there's a man. And I'm talkin' about the Dude here - the Dude from Los Angeles. Sometimes, there's a man, well, he's the man for his time and place. He fits right in there. And that's the Dude. The Dude, from Los Angeles. And even if he's a lazy man - and the Dude was most certainly that. Quite possibly the laziest in all of Los Angeles County, which would place him high in the runnin' for laziest worldwide. Sometimes there's a man , sometimes, there's a man. Well, I lost my train of thought here. But... aw, hell. I've done introduced it enough."
},
{
"time" : "03:50",
"id" : 765,
"title" : "Walter Sobchak",
"text" : "Donny was a good bowler, and a good man. He was one of us. He was a man who loved the outdoors... and bowling, and as a surfer he explored the beaches of Southern California, from La Jolla to Leo Carrillo and... up to... Pismo. He died, like so many young men of his generation, he died before his time. In your wisdom, Lord, you took him, as you took so many bright flowering young men at Khe Sanh, at Langdok, at Hill 364. These young men gave their lives. And so would Donny. Donny, who loved bowling. And so, Theodore Donald Karabotsos, in accordance with what we think your dying wishes might well have been, we commit your final mortal remains to the bosom of the Pacific Ocean, which you loved so well. Good night, sweet prince."
},
{
"time" : "03:52",
"id" : 654,
"title" : "The Dude",
"text" : "God damn you Walter! You fuckin' asshole! Everything's a fuckin' travesty with you, man! And what was all that shit about Vietnam? What the FUCK, has anything got to do with Vietnam? What the fuck are you talking about?"
},
{
"time" : "03:57",
"id" : 543,
"title" : "Jesus Quintana",
"text" : "What's this day of rest shit? What's this bullshit? I don't fuckin' care! It don't matter to Jesus. But you're not foolin'me, man. You might fool the fucks in the league office, but you don't fool Jesus. This bush league psyche-out stuff. Laughable, man - ha ha! I would have fucked you in the ass Saturday. I fuck you in the ass next Wednesday instead. Wooo! You gotadate Wednesday, baby!"
},
{
"time" : "03:59",
"id" : 432,
"title" : "Jesus Quintana",
"text" : "Let me tell you something, pendejo. You pull any of your crazy shit with us, you flash a piece out on the lanes, I'll take it away from you, stick it up your ass and pull the fucking trigger 'til it goes \"click.\""
},
{
"time" : "04:01",
"id" : 321,
"title" : "The Dude",
"text" : "Let me explain something to you. Um, I am not \"Mr. Lebowski\". You're Mr. Lebowski. I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing."
}
]
};
-->
</fest:template>