| 1 |
<!DOCTYPE html> |
| 2 |
|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
|
| 5 |
<head> |
| 6 |
|
| 7 |
<meta charset="utf-8" /> |
| 8 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 9 |
<meta name="generator" content="pandoc" /> |
| 10 |
|
| 11 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 12 |
|
| 13 |
<meta name="author" content="Michel Lang" /> |
| 14 |
|
| 15 |
<meta name="date" content="2018-05-14" /> |
| 16 |
|
| 17 |
<title>Benchmark</title> |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
<style type="text/css">code{white-space: pre;}</style> |
| 22 |
<style type="text/css"> |
| 23 |
a.sourceLine { display: inline-block; line-height: 1.25; } |
| 24 |
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } |
| 25 |
a.sourceLine:empty { height: 1.2em; position: absolute; } |
| 26 |
.sourceCode { overflow: visible; } |
| 27 |
code.sourceCode { white-space: pre; position: relative; } |
| 28 |
div.sourceCode { margin: 1em 0; } |
| 29 |
pre.sourceCode { margin: 0; } |
| 30 |
@media screen { |
| 31 |
div.sourceCode { overflow: auto; } |
| 32 |
} |
| 33 |
@media print { |
| 34 |
code.sourceCode { white-space: pre-wrap; } |
| 35 |
a.sourceLine { text-indent: -1em; padding-left: 1em; } |
| 36 |
} |
| 37 |
pre.numberSource a.sourceLine |
| 38 |
{ position: relative; } |
| 39 |
pre.numberSource a.sourceLine:empty |
| 40 |
{ position: absolute; } |
| 41 |
pre.numberSource a.sourceLine::before |
| 42 |
{ content: attr(data-line-number); |
| 43 |
position: absolute; left: -5em; text-align: right; vertical-align: baseline; |
| 44 |
border: none; pointer-events: all; |
| 45 |
-webkit-touch-callout: none; -webkit-user-select: none; |
| 46 |
-khtml-user-select: none; -moz-user-select: none; |
| 47 |
-ms-user-select: none; user-select: none; |
| 48 |
padding: 0 4px; width: 4em; |
| 49 |
color: #aaaaaa; |
| 50 |
} |
| 51 |
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } |
| 52 |
div.sourceCode |
| 53 |
{ } |
| 54 |
@media screen { |
| 55 |
a.sourceLine::before { text-decoration: underline; } |
| 56 |
} |
| 57 |
code span.al { color: #ff0000; font-weight: bold; } /* Alert */ |
| 58 |
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ |
| 59 |
code span.at { color: #7d9029; } /* Attribute */ |
| 60 |
code span.bn { color: #40a070; } /* BaseN */ |
| 61 |
code span.bu { } /* BuiltIn */ |
| 62 |
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ |
| 63 |
code span.ch { color: #4070a0; } /* Char */ |
| 64 |
code span.cn { color: #880000; } /* Constant */ |
| 65 |
code span.co { color: #60a0b0; font-style: italic; } /* Comment */ |
| 66 |
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ |
| 67 |
code span.do { color: #ba2121; font-style: italic; } /* Documentation */ |
| 68 |
code span.dt { color: #902000; } /* DataType */ |
| 69 |
code span.dv { color: #40a070; } /* DecVal */ |
| 70 |
code span.er { color: #ff0000; font-weight: bold; } /* Error */ |
| 71 |
code span.ex { } /* Extension */ |
| 72 |
code span.fl { color: #40a070; } /* Float */ |
| 73 |
code span.fu { color: #06287e; } /* Function */ |
| 74 |
code span.im { } /* Import */ |
| 75 |
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ |
| 76 |
code span.kw { color: #007020; font-weight: bold; } /* Keyword */ |
| 77 |
code span.op { color: #666666; } /* Operator */ |
| 78 |
code span.ot { color: #007020; } /* Other */ |
| 79 |
code span.pp { color: #bc7a00; } /* Preprocessor */ |
| 80 |
code span.sc { color: #4070a0; } /* SpecialChar */ |
| 81 |
code span.ss { color: #bb6688; } /* SpecialString */ |
| 82 |
code span.st { color: #4070a0; } /* String */ |
| 83 |
code span.va { color: #19177c; } /* Variable */ |
| 84 |
code span.vs { color: #4070a0; } /* VerbatimString */ |
| 85 |
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ |
| 86 |
</style> |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
<style type="text/css">body { |
| 91 |
background-color: #fff; |
| 92 |
margin: 1em auto; |
| 93 |
max-width: 700px; |
| 94 |
overflow: visible; |
| 95 |
padding-left: 2em; |
| 96 |
padding-right: 2em; |
| 97 |
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 98 |
font-size: 14px; |
| 99 |
line-height: 1.35; |
| 100 |
} |
| 101 |
#header { |
| 102 |
text-align: center; |
| 103 |
} |
| 104 |
#TOC { |
| 105 |
clear: both; |
| 106 |
margin: 0 0 10px 10px; |
| 107 |
padding: 4px; |
| 108 |
width: 400px; |
| 109 |
border: 1px solid #CCCCCC; |
| 110 |
border-radius: 5px; |
| 111 |
background-color: #f6f6f6; |
| 112 |
font-size: 13px; |
| 113 |
line-height: 1.3; |
| 114 |
} |
| 115 |
#TOC .toctitle { |
| 116 |
font-weight: bold; |
| 117 |
font-size: 15px; |
| 118 |
margin-left: 5px; |
| 119 |
} |
| 120 |
#TOC ul { |
| 121 |
padding-left: 40px; |
| 122 |
margin-left: -1.5em; |
| 123 |
margin-top: 5px; |
| 124 |
margin-bottom: 5px; |
| 125 |
} |
| 126 |
#TOC ul ul { |
| 127 |
margin-left: -2em; |
| 128 |
} |
| 129 |
#TOC li { |
| 130 |
line-height: 16px; |
| 131 |
} |
| 132 |
table { |
| 133 |
margin: 1em auto; |
| 134 |
border-width: 1px; |
| 135 |
border-color: #DDDDDD; |
| 136 |
border-style: outset; |
| 137 |
border-collapse: collapse; |
| 138 |
} |
| 139 |
table th { |
| 140 |
border-width: 2px; |
| 141 |
padding: 5px; |
| 142 |
border-style: inset; |
| 143 |
} |
| 144 |
table td { |
| 145 |
border-width: 1px; |
| 146 |
border-style: inset; |
| 147 |
line-height: 18px; |
| 148 |
padding: 5px 5px; |
| 149 |
} |
| 150 |
table, table th, table td { |
| 151 |
border-left-style: none; |
| 152 |
border-right-style: none; |
| 153 |
} |
| 154 |
table thead, table tr.even { |
| 155 |
background-color: #f7f7f7; |
| 156 |
} |
| 157 |
p { |
| 158 |
margin: 0.5em 0; |
| 159 |
} |
| 160 |
blockquote { |
| 161 |
background-color: #f6f6f6; |
| 162 |
padding: 0.25em 0.75em; |
| 163 |
} |
| 164 |
hr { |
| 165 |
border-style: solid; |
| 166 |
border: none; |
| 167 |
border-top: 1px solid #777; |
| 168 |
margin: 28px 0; |
| 169 |
} |
| 170 |
dl { |
| 171 |
margin-left: 0; |
| 172 |
} |
| 173 |
dl dd { |
| 174 |
margin-bottom: 13px; |
| 175 |
margin-left: 13px; |
| 176 |
} |
| 177 |
dl dt { |
| 178 |
font-weight: bold; |
| 179 |
} |
| 180 |
ul { |
| 181 |
margin-top: 0; |
| 182 |
} |
| 183 |
ul li { |
| 184 |
list-style: circle outside; |
| 185 |
} |
| 186 |
ul ul { |
| 187 |
margin-bottom: 0; |
| 188 |
} |
| 189 |
pre, code { |
| 190 |
background-color: #f7f7f7; |
| 191 |
border-radius: 3px; |
| 192 |
color: #333; |
| 193 |
white-space: pre-wrap; |
| 194 |
} |
| 195 |
pre { |
| 196 |
border-radius: 3px; |
| 197 |
margin: 5px 0px 10px 0px; |
| 198 |
padding: 10px; |
| 199 |
} |
| 200 |
pre:not([class]) { |
| 201 |
background-color: #f7f7f7; |
| 202 |
} |
| 203 |
code { |
| 204 |
font-family: Consolas, Monaco, 'Courier New', monospace; |
| 205 |
font-size: 85%; |
| 206 |
} |
| 207 |
p > code, li > code { |
| 208 |
padding: 2px 0px; |
| 209 |
} |
| 210 |
div.figure { |
| 211 |
text-align: center; |
| 212 |
} |
| 213 |
img { |
| 214 |
background-color: #FFFFFF; |
| 215 |
padding: 2px; |
| 216 |
border: 1px solid #DDDDDD; |
| 217 |
border-radius: 3px; |
| 218 |
border: 1px solid #CCCCCC; |
| 219 |
margin: 0 5px; |
| 220 |
} |
| 221 |
h1 { |
| 222 |
margin-top: 0; |
| 223 |
font-size: 35px; |
| 224 |
line-height: 40px; |
| 225 |
} |
| 226 |
h2 { |
| 227 |
border-bottom: 4px solid #f7f7f7; |
| 228 |
padding-top: 10px; |
| 229 |
padding-bottom: 2px; |
| 230 |
font-size: 145%; |
| 231 |
} |
| 232 |
h3 { |
| 233 |
border-bottom: 2px solid #f7f7f7; |
| 234 |
padding-top: 10px; |
| 235 |
font-size: 120%; |
| 236 |
} |
| 237 |
h4 { |
| 238 |
border-bottom: 1px solid #f7f7f7; |
| 239 |
margin-left: 8px; |
| 240 |
font-size: 105%; |
| 241 |
} |
| 242 |
h5, h6 { |
| 243 |
border-bottom: 1px solid #ccc; |
| 244 |
font-size: 105%; |
| 245 |
} |
| 246 |
a { |
| 247 |
color: #0033dd; |
| 248 |
text-decoration: none; |
| 249 |
} |
| 250 |
a:hover { |
| 251 |
color: #6666ff; } |
| 252 |
a:visited { |
| 253 |
color: #800080; } |
| 254 |
a:visited:hover { |
| 255 |
color: #BB00BB; } |
| 256 |
a[href^="http:"] { |
| 257 |
text-decoration: underline; } |
| 258 |
a[href^="https:"] { |
| 259 |
text-decoration: underline; } |
| 260 |
|
| 261 |
code > span.kw { color: #555; font-weight: bold; } |
| 262 |
code > span.dt { color: #902000; } |
| 263 |
code > span.dv { color: #40a070; } |
| 264 |
code > span.bn { color: #d14; } |
| 265 |
code > span.fl { color: #d14; } |
| 266 |
code > span.ch { color: #d14; } |
| 267 |
code > span.st { color: #d14; } |
| 268 |
code > span.co { color: #888888; font-style: italic; } |
| 269 |
code > span.ot { color: #007020; } |
| 270 |
code > span.al { color: #ff0000; font-weight: bold; } |
| 271 |
code > span.fu { color: #900; font-weight: bold; } code > span.er { color: #a61717; background-color: #e3d2d2; } |
| 272 |
</style> |
| 273 |
|
| 274 |
</head> |
| 275 |
|
| 276 |
<body> |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
<h1 class="title toc-ignore">Benchmark</h1> |
| 282 |
<h4 class="author"><em>Michel Lang</em></h4> |
| 283 |
<h4 class="date"><em>2018-05-14</em></h4> |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
<p>This small benchmark compares the performance of the base64 encoding/decoding in package <code>base64url</code> with the implementations in the packages <a href="https://cran.r-project.org/package=base64enc"><code>base64enc</code></a> and <a href="https://cran.r-project.org/package=openssl"><code>openssl</code></a>.</p> |
| 288 |
<div id="encoding-of-a-single-string" class="section level2"> |
| 289 |
<h2>Encoding of a single string</h2> |
| 290 |
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw">library</span>(base64url)</a> |
| 291 |
<a class="sourceLine" id="cb1-2" data-line-number="2"><span class="kw">library</span>(base64enc)</a> |
| 292 |
<a class="sourceLine" id="cb1-3" data-line-number="3"><span class="kw">library</span>(openssl)</a> |
| 293 |
<a class="sourceLine" id="cb1-4" data-line-number="4"><span class="kw">library</span>(microbenchmark)</a> |
| 294 |
<a class="sourceLine" id="cb1-5" data-line-number="5"></a> |
| 295 |
<a class="sourceLine" id="cb1-6" data-line-number="6">x =<span class="st"> "plain text"</span></a> |
| 296 |
<a class="sourceLine" id="cb1-7" data-line-number="7"><span class="kw">microbenchmark</span>(</a> |
| 297 |
<a class="sourceLine" id="cb1-8" data-line-number="8"> <span class="dt">base64url =</span> <span class="kw">base64_urlencode</span>(x),</a> |
| 298 |
<a class="sourceLine" id="cb1-9" data-line-number="9"> <span class="dt">base64enc =</span> <span class="kw">base64encode</span>(<span class="kw">charToRaw</span>(x)),</a> |
| 299 |
<a class="sourceLine" id="cb1-10" data-line-number="10"> <span class="dt">openssl =</span> <span class="kw">base64_encode</span>(x)</a> |
| 300 |
<a class="sourceLine" id="cb1-11" data-line-number="11">)</a></code></pre></div> |
| 301 |
<pre><code>## Unit: nanoseconds |
| 302 |
## expr min lq mean median uq max neval |
| 303 |
## base64url 408 461.5 853.52 698.0 782.5 20430 100 |
| 304 |
## base64enc 1199 1367.0 3114.89 1865.0 1983.5 139937 100 |
| 305 |
## openssl 13188 13536.0 15256.11 13749.5 14081.5 135871 100</code></pre> |
| 306 |
</div> |
| 307 |
<div id="decoding-of-a-single-string" class="section level2"> |
| 308 |
<h2>Decoding of a single string</h2> |
| 309 |
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">x =<span class="st"> "N0JBLlRaUTp1bi5KOW4xWStNWEJoLHRQaDZ3"</span></a> |
| 310 |
<a class="sourceLine" id="cb3-2" data-line-number="2"><span class="kw">microbenchmark</span>(</a> |
| 311 |
<a class="sourceLine" id="cb3-3" data-line-number="3"> <span class="dt">base64url =</span> <span class="kw">base64_urldecode</span>(x),</a> |
| 312 |
<a class="sourceLine" id="cb3-4" data-line-number="4"> <span class="dt">base64enc =</span> <span class="kw">rawToChar</span>(<span class="kw">base64decode</span>(x)),</a> |
| 313 |
<a class="sourceLine" id="cb3-5" data-line-number="5"> <span class="dt">openssl =</span> <span class="kw">rawToChar</span>(<span class="kw">base64_decode</span>(x))</a> |
| 314 |
<a class="sourceLine" id="cb3-6" data-line-number="6">)</a></code></pre></div> |
| 315 |
<pre><code>## Unit: nanoseconds |
| 316 |
## expr min lq mean median uq max neval |
| 317 |
## base64url 423 485.0 1104.57 655.5 923 40442 100 |
| 318 |
## base64enc 1504 1681.5 2879.92 2225.5 2546 76432 100 |
| 319 |
## openssl 19066 19643.0 21264.27 19915.5 20281 119636 100</code></pre> |
| 320 |
</div> |
| 321 |
<div id="encoding-and-decoding-of-character-vectors" class="section level2"> |
| 322 |
<h2>Encoding and decoding of character vectors</h2> |
| 323 |
<p>Here, the task has changed from encoding/decoding a single string to processing multiple strings stored inside a character vector. First, we create a small utility function which returns <code>n</code> random strings with a random number of characters (between 1 and 32) each.</p> |
| 324 |
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1">rand =<span class="st"> </span><span class="cf">function</span>(n, <span class="dt">min =</span> <span class="dv">1</span>, <span class="dt">max =</span> <span class="dv">32</span>) {</a> |
| 325 |
<a class="sourceLine" id="cb5-2" data-line-number="2"> chars =<span class="st"> </span><span class="kw">c</span>(letters, LETTERS, <span class="kw">as.character</span>(<span class="dv">0</span><span class="op">:</span><span class="dv">9</span>), <span class="kw">c</span>(<span class="st">"."</span>, <span class="st">":"</span>, <span class="st">","</span>, <span class="st">"+"</span>, <span class="st">"-"</span>, <span class="st">"*"</span>, <span class="st">"/"</span>))</a> |
| 326 |
<a class="sourceLine" id="cb5-3" data-line-number="3"> <span class="kw">replicate</span>(n, <span class="kw">paste0</span>(<span class="kw">sample</span>(chars, <span class="kw">sample</span>(min<span class="op">:</span>max, <span class="dv">1</span>), <span class="dt">replace =</span> <span class="ot">TRUE</span>), <span class="dt">collapse =</span> <span class="st">""</span>))</a> |
| 327 |
<a class="sourceLine" id="cb5-4" data-line-number="4">}</a> |
| 328 |
<a class="sourceLine" id="cb5-5" data-line-number="5"><span class="kw">set.seed</span>(<span class="dv">1</span>)</a> |
| 329 |
<a class="sourceLine" id="cb5-6" data-line-number="6"><span class="kw">rand</span>(<span class="dv">10</span>)</a></code></pre></div> |
| 330 |
<pre><code>## [1] "zN.n9+TRe" "mVA1IX/" |
| 331 |
## [3] "1,oSisAaA8xHP" "m5U2hXC4S2MK2bGY" |
| 332 |
## [5] "G7EqegvJTC.uFwSrH0f8x5x" "G97A1-DXBw0" |
| 333 |
## [7] "XiqjqeS" "13FC3PTys/RoiG:P*YyDkaXhES/IH" |
| 334 |
## [9] "0FJopP" "fcS,PMK*JVPqrYFmZh7"</code></pre> |
| 335 |
<p>Only <code>base64url</code> is vectorized for string input, the alternative implementations need wrappers to process character vectors:</p> |
| 336 |
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1">base64enc_encode =<span class="st"> </span><span class="cf">function</span>(x) {</a> |
| 337 |
<a class="sourceLine" id="cb7-2" data-line-number="2"> <span class="kw">vapply</span>(x, <span class="cf">function</span>(x) <span class="kw">base64encode</span>(<span class="kw">charToRaw</span>(x)), <span class="ot">NA_character_</span>, <span class="dt">USE.NAMES =</span> <span class="ot">FALSE</span>)</a> |
| 338 |
<a class="sourceLine" id="cb7-3" data-line-number="3">}</a> |
| 339 |
<a class="sourceLine" id="cb7-4" data-line-number="4"></a> |
| 340 |
<a class="sourceLine" id="cb7-5" data-line-number="5">openssl_encode =<span class="st"> </span><span class="cf">function</span>(x) {</a> |
| 341 |
<a class="sourceLine" id="cb7-6" data-line-number="6"> <span class="kw">vapply</span>(x, <span class="cf">function</span>(x) <span class="kw">base64_encode</span>(x), <span class="ot">NA_character_</span>, <span class="dt">USE.NAMES =</span> <span class="ot">FALSE</span>)</a> |
| 342 |
<a class="sourceLine" id="cb7-7" data-line-number="7">}</a> |
| 343 |
<a class="sourceLine" id="cb7-8" data-line-number="8"></a> |
| 344 |
<a class="sourceLine" id="cb7-9" data-line-number="9">base64enc_decode =<span class="st"> </span><span class="cf">function</span>(x) {</a> |
| 345 |
<a class="sourceLine" id="cb7-10" data-line-number="10"> <span class="kw">vapply</span>(x, <span class="cf">function</span>(x) <span class="kw">rawToChar</span>(<span class="kw">base64decode</span>(x)), <span class="ot">NA_character_</span>, <span class="dt">USE.NAMES =</span> <span class="ot">FALSE</span>)</a> |
| 346 |
<a class="sourceLine" id="cb7-11" data-line-number="11">}</a> |
| 347 |
<a class="sourceLine" id="cb7-12" data-line-number="12"></a> |
| 348 |
<a class="sourceLine" id="cb7-13" data-line-number="13">openssl_decode =<span class="st"> </span><span class="cf">function</span>(x) {</a> |
| 349 |
<a class="sourceLine" id="cb7-14" data-line-number="14"> <span class="kw">vapply</span>(x, <span class="cf">function</span>(x) <span class="kw">rawToChar</span>(<span class="kw">base64_decode</span>(x)), <span class="ot">NA_character_</span>, <span class="dt">USE.NAMES =</span> <span class="ot">FALSE</span>)</a> |
| 350 |
<a class="sourceLine" id="cb7-15" data-line-number="15">}</a></code></pre></div> |
| 351 |
<p>The following benchmark measures the runtime to encode 1000 random strings and then decode them again:</p> |
| 352 |
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw">set.seed</span>(<span class="dv">1</span>)</a> |
| 353 |
<a class="sourceLine" id="cb8-2" data-line-number="2">x =<span class="st"> </span><span class="kw">rand</span>(<span class="dv">1000</span>)</a> |
| 354 |
<a class="sourceLine" id="cb8-3" data-line-number="3"><span class="kw">microbenchmark</span>(</a> |
| 355 |
<a class="sourceLine" id="cb8-4" data-line-number="4"> <span class="dt">base64url =</span> <span class="kw">base64_urldecode</span>(<span class="kw">base64_urlencode</span>(x)),</a> |
| 356 |
<a class="sourceLine" id="cb8-5" data-line-number="5"> <span class="dt">base64enc =</span> <span class="kw">base64enc_decode</span>(<span class="kw">base64enc_encode</span>(x)),</a> |
| 357 |
<a class="sourceLine" id="cb8-6" data-line-number="6"> <span class="dt">openssl =</span> <span class="kw">openssl_decode</span>(<span class="kw">openssl_encode</span>(x))</a> |
| 358 |
<a class="sourceLine" id="cb8-7" data-line-number="7">)</a></code></pre></div> |
| 359 |
<pre><code>## Unit: microseconds |
| 360 |
## expr min lq mean median uq max |
| 361 |
## base64url 214.031 222.0655 270.415 260.3725 311.967 441.127 |
| 362 |
## base64enc 3613.444 3974.8940 4228.395 4058.2495 4157.485 11094.540 |
| 363 |
## openssl 34166.572 35453.3810 36002.175 35794.9835 36349.533 42507.878 |
| 364 |
## neval |
| 365 |
## 100 |
| 366 |
## 100 |
| 367 |
## 100</code></pre> |
| 368 |
</div> |
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
<!-- dynamically load mathjax for compatibility with self-contained --> |
| 373 |
<script> |
| 374 |
(function () { |
| 375 |
var script = document.createElement("script"); |
| 376 |
script.type = "text/javascript"; |
| 377 |
script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; |
| 378 |
document.getElementsByTagName("head")[0].appendChild(script); |
| 379 |
})(); |
| 380 |
</script> |
| 381 |
|
| 382 |
</body> |
| 383 |
</html> |