2019-01-11 20:37:23 +01:00
<!DOCTYPE html>
2019-10-13 09:31:58 +02:00
<!-- Generated by pkgdown: do not edit by hand --> < html lang = "en" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< meta charset = "utf-8" >
2019-01-11 20:37:23 +01:00
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > Benchmarks • AMR (for R)< / title >
2019-10-13 09:31:58 +02:00
<!-- favicons --> < link rel = "icon" type = "image/png" sizes = "16x16" href = "../favicon-16x16.png" >
2019-01-11 20:37:23 +01:00
< link rel = "icon" type = "image/png" sizes = "32x32" href = "../favicon-32x32.png" >
2019-10-13 09:31:58 +02:00
< link rel = "apple-touch-icon" type = "image/png" sizes = "180x180" href = "../apple-touch-icon.png" >
< link rel = "apple-touch-icon" type = "image/png" sizes = "120x120" href = "../apple-touch-icon-120x120.png" >
< link rel = "apple-touch-icon" type = "image/png" sizes = "76x76" href = "../apple-touch-icon-76x76.png" >
< link rel = "apple-touch-icon" type = "image/png" sizes = "60x60" href = "../apple-touch-icon-60x60.png" >
<!-- jquery --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity = "sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin = "anonymous" > < / script > <!-- Bootstrap --> < link href = "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/flatly/bootstrap.min.css" rel = "stylesheet" crossorigin = "anonymous" >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity = "sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin = "anonymous" > < / script > <!-- Font Awesome icons --> < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity = "sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin = "anonymous" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity = "sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin = "anonymous" >
<!-- clipboard.js --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity = "sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin = "anonymous" > < / script > <!-- headroom.js --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity = "sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity = "sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin = "anonymous" > < / script > <!-- pkgdown --> < link href = "../pkgdown.css" rel = "stylesheet" >
< script src = "../pkgdown.js" > < / script > <!-- docsearch --> < script src = "../docsearch.js" > < / script > < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.1/docsearch.min.css" integrity = "sha256-QOSRU/ra9ActyXkIBbiIB144aDBdtvXBcNc3OTNuX/Q=" crossorigin = "anonymous" >
2019-01-11 20:37:23 +01:00
< link href = "../docsearch.css" rel = "stylesheet" >
2019-10-13 09:31:58 +02:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity = "sha256-4HLtjeVgH0eIB3aZ9mLYF6E8oU5chNdjU6p6rrXpl9U=" crossorigin = "anonymous" > < / script > < link href = "../extra.css" rel = "stylesheet" >
< script src = "../extra.js" > < / script > < meta property = "og:title" content = "Benchmarks" >
< meta property = "og:description" content = "" >
< meta property = "og:image" content = "https://msberends.gitlab.io/AMR/logo.png" >
< meta name = "twitter:card" content = "summary" >
<!-- mathjax --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity = "sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity = "sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin = "anonymous" > < / script > <!-- [if lt IE 9]>
2019-01-11 20:37:23 +01:00
< script src = "https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js" > < / script >
< script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js" > < / script >
<![endif]-->
2019-10-13 09:31:58 +02:00
< / head >
< body >
2019-01-11 20:37:23 +01:00
< div class = "container template-article" >
2019-10-13 09:31:58 +02:00
< header > < div class = "navbar navbar-default navbar-fixed-top" role = "navigation" >
2019-01-11 20:37:23 +01:00
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#navbar" aria-expanded = "false" >
< span class = "sr-only" > Toggle navigation< / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< span class = "navbar-brand" >
< a class = "navbar-link" href = "../index.html" > AMR (for R)< / a >
2019-12-22 11:43:38 +01:00
< span class = "version label label-default" data-toggle = "tooltip" data-placement = "bottom" title = "Latest development version" > 0.9.0.9006< / span >
2019-01-11 20:37:23 +01:00
< / span >
< / div >
< div id = "navbar" class = "navbar-collapse collapse" >
< ul class = "nav navbar-nav" >
2019-10-13 09:31:58 +02:00
< li >
2019-01-11 20:37:23 +01:00
< a href = "../index.html" >
< span class = "fa fa-home" > < / span >
Home
< / a >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" >
< span class = "fa fa-question-circle" > < / span >
How to
< span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" role = "menu" >
2019-10-13 09:31:58 +02:00
< li >
2019-01-11 20:37:23 +01:00
< a href = "../articles/AMR.html" >
< span class = "fa fa-directions" > < / span >
Conduct AMR analysis
< / a >
< / li >
< li >
2019-02-14 10:23:51 +01:00
< a href = "../articles/resistance_predict.html" >
2019-01-11 20:37:23 +01:00
< span class = "fa fa-dice" > < / span >
Predict antimicrobial resistance
< / a >
< / li >
2019-05-23 16:58:59 +02:00
< li >
< a href = "../articles/MDR.html" >
< span class = "fa fa-skull-crossbones" > < / span >
Determine multi-drug resistance (MDR)
< / a >
< / li >
2019-01-29 00:06:50 +01:00
< li >
< a href = "../articles/WHONET.html" >
< span class = "fa fa-globe-americas" > < / span >
Work with WHONET data
< / a >
< / li >
2019-02-14 15:18:17 +01:00
< li >
< a href = "../articles/SPSS.html" >
< span class = "fa fa-file-upload" > < / span >
Import data from SPSS/SAS/Stata
< / a >
< / li >
2019-01-11 20:37:23 +01:00
< li >
< a href = "../articles/EUCAST.html" >
< span class = "fa fa-exchange-alt" > < / span >
Apply EUCAST rules
< / a >
< / li >
< li >
2019-02-14 10:23:51 +01:00
< a href = "../reference/mo_property.html" >
2019-01-11 20:37:23 +01:00
< span class = "fa fa-bug" > < / span >
Get properties of a microorganism
< / a >
< / li >
< li >
2019-05-10 16:44:59 +02:00
< a href = "../reference/ab_property.html" >
2019-01-11 20:37:23 +01:00
< span class = "fa fa-capsules" > < / span >
Get properties of an antibiotic
< / a >
< / li >
< li >
< a href = "../articles/benchmarks.html" >
< span class = "fa fa-shipping-fast" > < / span >
Other: benchmarks
< / a >
< / li >
< / ul >
< / li >
< li >
< a href = "../reference/" >
< span class = "fa fa-book-open" > < / span >
Manual
< / a >
< / li >
< li >
< a href = "../authors.html" >
< span class = "fa fa-users" > < / span >
Authors
< / a >
< / li >
< li >
< a href = "../news/" >
< span class = "far fa far fa-newspaper" > < / span >
Changelog
< / a >
< / li >
< / ul >
2019-10-13 09:31:58 +02:00
< ul class = "nav navbar-nav navbar-right" >
< li >
2019-01-11 20:37:23 +01:00
< a href = "https://gitlab.com/msberends/AMR" >
< span class = "fab fa fab fa-gitlab" > < / span >
Source Code
< / a >
< / li >
< li >
< a href = "../LICENSE-text.html" >
< span class = "fa fa-book" > < / span >
Licence
< / a >
< / li >
< / ul >
2019-10-13 09:31:58 +02:00
< form class = "navbar-form navbar-right hidden-xs hidden-sm" role = "search" >
2019-01-11 20:37:23 +01:00
< div class = "form-group" >
< input type = "search" class = "form-control" name = "search-input" id = "search-input" placeholder = "Search..." aria-label = "Search for..." autocomplete = "off" >
2019-10-13 09:31:58 +02:00
< / div >
2019-01-11 20:37:23 +01:00
< / form >
2019-10-13 09:31:58 +02:00
< / div >
<!-- /.nav - collapse -->
< / div >
<!-- /.container -->
< / div >
<!-- /.navbar -->
2019-01-11 20:37:23 +01:00
2019-09-23 13:53:50 +02:00
2019-10-13 09:31:58 +02:00
< / header > < div class = "row" >
2019-01-11 20:37:23 +01:00
< div class = "col-md-9 contents" >
< div class = "page-header toc-ignore" >
< h1 > Benchmarks< / h1 >
< h4 class = "author" > Matthijs S. Berends< / h4 >
2019-12-22 11:43:38 +01:00
< h4 class = "date" > 22 December 2019< / h4 >
2019-01-11 20:37:23 +01:00
< div class = "hidden name" > < code > benchmarks.Rmd< / code > < / div >
< / div >
2019-10-13 09:31:58 +02:00
< p > One of the most important features of this package is the complete microbial taxonomic database, supplied by the < a href = "http://catalogueoflife.org" > Catalogue of Life< / a > . We created a function < code > < a href = "../reference/as.mo.html" > as.mo()< / a > < / code > that transforms any user input value to a valid microbial ID by using intelligent rules combined with the taxonomic tree of Catalogue of Life.< / p >
< p > Using the < code > microbenchmark< / code > package, we can review the calculation performance of this function. Its function < code > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark()< / a > < / code > runs different input expressions independently of each other and measures their time-to-result.< / p >
< 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" > < a href = "https://rdrr.io/r/base/library.html" > library< / a > < / span > (microbenchmark)< / a >
< a class = "sourceLine" id = "cb1-2" data-line-number = "2" > < span class = "kw" > < a href = "https://rdrr.io/r/base/library.html" > library< / a > < / span > (AMR)< / a > < / code > < / pre > < / div >
2019-12-20 15:05:58 +01:00
< p > In the next test, we try to ‘ coerce’ different input values into the microbial code of < em > Staphylococcus aureus< / em > . Coercion is a computational process of forcing output based on an input. For microorganism names, coercing user input to taxonomically valid microorganism names is crucial to ensure correct interpretation and to enable grouping based on taxonomic properties.< / p >
2019-12-20 21:06:39 +01:00
< p > The actual result is the same every time: it returns its microorganism code < code > B_STPHY_AURS< / code > (< em > B< / em > stands for < em > Bacteria< / em > , the taxonomic kingdom).< / p >
2019-03-06 14:39:02 +01:00
< p > But the calculation time differs a lot:< / p >
2019-10-13 09:31:58 +02:00
< div class = "sourceCode" id = "cb2" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb2-1" data-line-number = "1" > S.aureus < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< / a >
< a class = "sourceLine" id = "cb2-2" data-line-number = "2" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "sau"< / span > ), < span class = "co" > # WHONET code< / span > < / a >
< a class = "sourceLine" id = "cb2-3" data-line-number = "3" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "stau"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-4" data-line-number = "4" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "STAU"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-5" data-line-number = "5" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "staaur"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-6" data-line-number = "6" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "STAAUR"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-7" data-line-number = "7" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "S. aureus"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-8" data-line-number = "8" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "S aureus"< / span > ),< / a >
< a class = "sourceLine" id = "cb2-9" data-line-number = "9" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "Staphylococcus aureus"< / span > ), < span class = "co" > # official taxonomic name< / span > < / a >
< a class = "sourceLine" id = "cb2-10" data-line-number = "10" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "Staphylococcus aureus (MRSA)"< / span > ), < span class = "co" > # additional text< / span > < / a >
< a class = "sourceLine" id = "cb2-11" data-line-number = "11" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "Sthafilokkockus aaureuz"< / span > ), < span class = "co" > # incorrect spelling< / span > < / a >
< a class = "sourceLine" id = "cb2-12" data-line-number = "12" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "MRSA"< / span > ), < span class = "co" > # Methicillin Resistant S. aureus< / span > < / a >
< a class = "sourceLine" id = "cb2-13" data-line-number = "13" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "VISA"< / span > ), < span class = "co" > # Vancomycin Intermediate S. aureus< / span > < / a >
< a class = "sourceLine" id = "cb2-14" data-line-number = "14" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "VRSA"< / span > ), < span class = "co" > # Vancomycin Resistant S. aureus< / span > < / a >
< a class = "sourceLine" id = "cb2-15" data-line-number = "15" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "dv" > 22242419< / span > ), < span class = "co" > # Catalogue of Life ID< / span > < / a >
2019-09-01 13:16:57 +02:00
< a class = "sourceLine" id = "cb2-16" data-line-number = "16" > < span class = "dt" > times =< / span > < span class = "dv" > 10< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb2-17" data-line-number = "17" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (S.aureus, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 2< / span > )< / a >
2019-09-01 13:16:57 +02:00
< a class = "sourceLine" id = "cb2-18" data-line-number = "18" > < span class = "co" > # Unit: milliseconds< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb2-19" data-line-number = "19" > < span class = "co" > # expr min lq mean median uq max neval< / span > < / a >
< a class = "sourceLine" id = "cb2-20" data-line-number = "20" > < span class = "co" > # as.mo("sau") 9.1 9.3 15 9.8 13.0 34 10< / span > < / a >
< a class = "sourceLine" id = "cb2-21" data-line-number = "21" > < span class = "co" > # as.mo("stau") 33.0 34.0 40 35.0 39.0 60 10< / span > < / a >
< a class = "sourceLine" id = "cb2-22" data-line-number = "22" > < span class = "co" > # as.mo("STAU") 33.0 34.0 51 35.0 57.0 150 10< / span > < / a >
< a class = "sourceLine" id = "cb2-23" data-line-number = "23" > < span class = "co" > # as.mo("staaur") 8.8 9.2 16 10.0 13.0 43 10< / span > < / a >
< a class = "sourceLine" id = "cb2-24" data-line-number = "24" > < span class = "co" > # as.mo("STAAUR") 9.3 9.4 23 9.7 10.0 120 10< / span > < / a >
< a class = "sourceLine" id = "cb2-25" data-line-number = "25" > < span class = "co" > # as.mo("S. aureus") 10.0 10.0 16 11.0 12.0 41 10< / span > < / a >
< a class = "sourceLine" id = "cb2-26" data-line-number = "26" > < span class = "co" > # as.mo("S aureus") 10.0 10.0 28 12.0 35.0 110 10< / span > < / a >
< a class = "sourceLine" id = "cb2-27" data-line-number = "27" > < span class = "co" > # as.mo("Staphylococcus aureus") 4.6 4.8 10 4.9 5.2 56 10< / span > < / a >
< a class = "sourceLine" id = "cb2-28" data-line-number = "28" > < span class = "co" > # as.mo("Staphylococcus aureus (MRSA)") 660.0 670.0 700 680.0 710.0 770 10< / span > < / a >
< a class = "sourceLine" id = "cb2-29" data-line-number = "29" > < span class = "co" > # as.mo("Sthafilokkockus aaureuz") 330.0 350.0 370 370.0 390.0 430 10< / span > < / a >
< a class = "sourceLine" id = "cb2-30" data-line-number = "30" > < span class = "co" > # as.mo("MRSA") 9.2 9.2 14 9.4 9.5 35 10< / span > < / a >
< a class = "sourceLine" id = "cb2-31" data-line-number = "31" > < span class = "co" > # as.mo("VISA") 20.0 20.0 26 21.0 23.0 45 10< / span > < / a >
< a class = "sourceLine" id = "cb2-32" data-line-number = "32" > < span class = "co" > # as.mo("VRSA") 20.0 21.0 30 22.0 44.0 47 10< / span > < / a >
< a class = "sourceLine" id = "cb2-33" data-line-number = "33" > < span class = "co" > # as.mo(22242419) 19.0 20.0 43 20.0 28.0 130 10< / span > < / a > < / code > < / pre > < / div >
2019-10-13 09:31:58 +02:00
< p > < img src = "benchmarks_files/figure-html/unnamed-chunk-5-1.png" width = "562.5" > < / p >
2019-02-27 11:36:12 +01:00
< p > In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second. The second input is the only one that has to be looked up thoroughly. All the others are known codes (the first one is a WHONET code) or common laboratory codes, or common full organism names like the last one. Full organism names are always preferred.< / p >
2019-09-20 14:18:29 +02:00
< p > To achieve this speed, the < code > as.mo< / code > function also takes into account the prevalence of human pathogenic microorganisms. The downside is of course that less prevalent microorganisms will be determined less fast. See this example for the ID of < em > Methanosarcina semesiae< / em > (< code > B_MTHNSR_SEMS< / code > ), a bug probably never found before in humans:< / p >
2019-10-13 09:31:58 +02:00
< div class = "sourceCode" id = "cb3" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb3-1" data-line-number = "1" > M.semesiae < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "metsem"< / span > ),< / a >
2019-12-20 15:05:58 +01:00
< a class = "sourceLine" id = "cb3-2" data-line-number = "2" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "METSEM"< / span > ),< / a >
< a class = "sourceLine" id = "cb3-3" data-line-number = "3" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "M. semesiae"< / span > ),< / a >
< a class = "sourceLine" id = "cb3-4" data-line-number = "4" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "M. semesiae"< / span > ),< / a >
< a class = "sourceLine" id = "cb3-5" data-line-number = "5" > < span class = "kw" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > (< span class = "st" > "Methanosarcina semesiae"< / span > ),< / a >
< a class = "sourceLine" id = "cb3-6" data-line-number = "6" > < span class = "dt" > times =< / span > < span class = "dv" > 10< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb3-7" data-line-number = "7" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (M.semesiae, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 4< / span > )< / a >
2019-09-20 12:33:05 +02:00
< a class = "sourceLine" id = "cb3-8" data-line-number = "8" > < span class = "co" > # Unit: milliseconds< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb3-9" data-line-number = "9" > < span class = "co" > # expr min lq mean median uq< / span > < / a >
< a class = "sourceLine" id = "cb3-10" data-line-number = "10" > < span class = "co" > # as.mo("metsem") 1469.000 1482.000 1515.000 1507.000 1545.000< / span > < / a >
< a class = "sourceLine" id = "cb3-11" data-line-number = "11" > < span class = "co" > # as.mo("METSEM") 1435.000 1452.000 1490.000 1479.000 1520.000< / span > < / a >
< a class = "sourceLine" id = "cb3-12" data-line-number = "12" > < span class = "co" > # as.mo("M. semesiae") 10.840 11.090 16.220 11.150 11.600< / span > < / a >
< a class = "sourceLine" id = "cb3-13" data-line-number = "13" > < span class = "co" > # as.mo("M. semesiae") 10.670 10.820 20.140 11.180 38.040< / span > < / a >
< a class = "sourceLine" id = "cb3-14" data-line-number = "14" > < span class = "co" > # as.mo("Methanosarcina semesiae") 5.138 5.185 7.838 5.366 5.493< / span > < / a >
2019-12-20 15:05:58 +01:00
< a class = "sourceLine" id = "cb3-15" data-line-number = "15" > < span class = "co" > # max neval< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb3-16" data-line-number = "16" > < span class = "co" > # 1574.00 10< / span > < / a >
< a class = "sourceLine" id = "cb3-17" data-line-number = "17" > < span class = "co" > # 1563.00 10< / span > < / a >
< a class = "sourceLine" id = "cb3-18" data-line-number = "18" > < span class = "co" > # 36.46 10< / span > < / a >
< a class = "sourceLine" id = "cb3-19" data-line-number = "19" > < span class = "co" > # 44.17 10< / span > < / a >
< a class = "sourceLine" id = "cb3-20" data-line-number = "20" > < span class = "co" > # 30.28 10< / span > < / a > < / code > < / pre > < / div >
< p > That takes 6.2 times as much time on average. A value of 100 milliseconds means it can only determine ~10 different input values per second. We can conclude that looking up arbitrary codes of less prevalent microorganisms is the worst way to go, in terms of calculation performance. Full names (like < em > Methanosarcina semesiae< / em > ) are always very fast and only take some thousands of seconds to coerce - they are the most probable input from most data sets.< / p >
2019-09-20 14:18:29 +02:00
< p > In the figure below, we compare < em > Escherichia coli< / em > (which is very common) with < em > Prevotella brevis< / em > (which is moderately common) and with < em > Methanosarcina semesiae< / em > (which is uncommon):< / p >
2019-12-20 15:05:58 +01:00
< p > < img src = "benchmarks_files/figure-html/unnamed-chunk-8-1.png" width = "900" > < / p >
2019-12-20 21:06:39 +01:00
< p > The highest outliers are the first times. All next determinations were done in only thousands of seconds, because the < code > < a href = "../reference/as.mo.html" > as.mo()< / a > < / code > function < strong > learns from its own output to speed up determinations for next times< / strong > .< / p >
< p > In below figure, this effect was disabled to show the difference with the boxplot above:< / p >
2019-12-20 15:05:58 +01:00
< p > < img src = "benchmarks_files/figure-html/unnamed-chunk-9-1.png" width = "900" > < / p >
2019-04-09 10:34:40 +02:00
< p > Uncommon microorganisms take a lot more time than common microorganisms. To relieve this pitfall and further improve performance, two important calculations take almost no time at all: < strong > repetitive results< / strong > and < strong > already precalculated results< / strong > .< / p >
2019-01-11 20:37:23 +01:00
< div id = "repetitive-results" class = "section level3" >
2019-10-13 09:31:58 +02:00
< h3 class = "hasAnchor" >
< a href = "#repetitive-results" class = "anchor" > < / a > Repetitive results< / h3 >
< p > Repetitive results are unique values that are present more than once. Unique values will only be calculated once by < code > < a href = "../reference/as.mo.html" > as.mo()< / a > < / code > . We will use < code > < a href = "../reference/mo_property.html" > mo_name()< / a > < / code > for this test - a helper function that returns the full microbial name (genus, species and possibly subspecies) which uses < code > < a href = "../reference/as.mo.html" > as.mo()< / a > < / code > internally.< / p >
< div class = "sourceCode" id = "cb4" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb4-1" data-line-number = "1" > < span class = "kw" > < a href = "https://rdrr.io/r/base/library.html" > library< / a > < / span > (dplyr)< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-2" data-line-number = "2" > < span class = "co" > # take all MO codes from the example_isolates data set< / span > < / a >
< a class = "sourceLine" id = "cb4-3" data-line-number = "3" > x < -< span class = "st" > < / span > example_isolates< span class = "op" > $< / span > mo < span class = "op" > %> %< / span > < / a >
< a class = "sourceLine" id = "cb4-4" data-line-number = "4" > < span class = "st" > < / span > < span class = "co" > # keep only the unique ones< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-5" data-line-number = "5" > < span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/r/base/unique.html" > unique< / a > < / span > () < span class = "op" > %> %< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-6" data-line-number = "6" > < span class = "st" > < / span > < span class = "co" > # pick 50 of them at random< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-7" data-line-number = "7" > < span class = "st" > < / span > < span class = "kw" > < a href = "https://dplyr.tidyverse.org/reference/sample.html" > sample< / a > < / span > (< span class = "dv" > 50< / span > ) < span class = "op" > %> %< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-8" data-line-number = "8" > < span class = "st" > < / span > < span class = "co" > # paste that 10,000 times< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-9" data-line-number = "9" > < span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/r/base/rep.html" > rep< / a > < / span > (< span class = "dv" > 10000< / span > ) < span class = "op" > %> %< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-10" data-line-number = "10" > < span class = "st" > < / span > < span class = "co" > # scramble it< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-11" data-line-number = "11" > < span class = "st" > < / span > < span class = "kw" > < a href = "https://dplyr.tidyverse.org/reference/sample.html" > sample< / a > < / span > ()< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-12" data-line-number = "12" > < / a >
< a class = "sourceLine" id = "cb4-13" data-line-number = "13" > < span class = "co" > # got indeed 50 times 10,000 = half a million?< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-14" data-line-number = "14" > < span class = "kw" > < a href = "https://rdrr.io/r/base/length.html" > length< / a > < / span > (x)< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-15" data-line-number = "15" > < span class = "co" > # [1] 500000< / span > < / a >
< a class = "sourceLine" id = "cb4-16" data-line-number = "16" > < / a >
< a class = "sourceLine" id = "cb4-17" data-line-number = "17" > < span class = "co" > # and how many unique values do we have?< / span > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-18" data-line-number = "18" > < span class = "kw" > < a href = "https://dplyr.tidyverse.org/reference/n_distinct.html" > n_distinct< / a > < / span > (x)< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-19" data-line-number = "19" > < span class = "co" > # [1] 50< / span > < / a >
< a class = "sourceLine" id = "cb4-20" data-line-number = "20" > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-21" data-line-number = "21" > < span class = "co" > # now let's see:< / span > < / a >
< a class = "sourceLine" id = "cb4-22" data-line-number = "22" > run_it < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (x),< / a >
2019-12-20 21:06:39 +01:00
< a class = "sourceLine" id = "cb4-23" data-line-number = "23" > < span class = "dt" > times =< / span > < span class = "dv" > 100< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb4-24" data-line-number = "24" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (run_it, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 3< / span > )< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb4-25" data-line-number = "25" > < span class = "co" > # Unit: milliseconds< / span > < / a >
< a class = "sourceLine" id = "cb4-26" data-line-number = "26" > < span class = "co" > # expr min lq mean median uq max neval< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb4-27" data-line-number = "27" > < span class = "co" > # mo_name(x) 548 581 605 593 611 735 100< / span > < / a > < / code > < / pre > < / div >
< p > So transforming 500,000 values (!!) of 50 unique values only takes 0.59 seconds (593 ms). You only lose time on your unique input values.< / p >
2019-01-11 20:37:23 +01:00
< / div >
< div id = "precalculated-results" class = "section level3" >
2019-10-13 09:31:58 +02:00
< h3 class = "hasAnchor" >
< a href = "#precalculated-results" class = "anchor" > < / a > Precalculated results< / h3 >
< p > What about precalculated results? If the input is an already precalculated result of a helper function like < code > < a href = "../reference/mo_property.html" > mo_name()< / a > < / code > , it almost doesn’ t take any time at all (see ‘ C’ below):< / p >
< div class = "sourceCode" id = "cb5" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb5-1" data-line-number = "1" > run_it < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< span class = "dt" > A =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "B_STPHY_AURS"< / span > ),< / a >
< a class = "sourceLine" id = "cb5-2" data-line-number = "2" > < span class = "dt" > B =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "S. aureus"< / span > ),< / a >
< a class = "sourceLine" id = "cb5-3" data-line-number = "3" > < span class = "dt" > C =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "Staphylococcus aureus"< / span > ),< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb5-4" data-line-number = "4" > < span class = "dt" > times =< / span > < span class = "dv" > 10< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb5-5" data-line-number = "5" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (run_it, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 3< / span > )< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb5-6" data-line-number = "6" > < span class = "co" > # Unit: milliseconds< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb5-7" data-line-number = "7" > < span class = "co" > # expr min lq mean median uq max neval< / span > < / a >
< a class = "sourceLine" id = "cb5-8" data-line-number = "8" > < span class = "co" > # A 6.380 6.430 6.800 6.540 6.690 8.94 10< / span > < / a >
< a class = "sourceLine" id = "cb5-9" data-line-number = "9" > < span class = "co" > # B 10.900 10.900 14.200 11.100 11.400 37.20 10< / span > < / a >
< a class = "sourceLine" id = "cb5-10" data-line-number = "10" > < span class = "co" > # C 0.735 0.772 0.832 0.792 0.875 1.01 10< / span > < / a > < / code > < / pre > < / div >
2019-12-20 15:05:58 +01:00
< p > So going from < code > < a href = "../reference/mo_property.html" > mo_name("Staphylococcus aureus")< / a > < / code > to < code > "Staphylococcus aureus"< / code > takes 0.0008 seconds - it doesn’ t even start calculating < em > if the result would be the same as the expected resulting value< / em > . That goes for all helper functions:< / p >
2019-10-13 09:31:58 +02:00
< div class = "sourceCode" id = "cb6" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb6-1" data-line-number = "1" > run_it < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< span class = "dt" > A =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_species< / a > < / span > (< span class = "st" > "aureus"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-2" data-line-number = "2" > < span class = "dt" > B =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_genus< / a > < / span > (< span class = "st" > "Staphylococcus"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-3" data-line-number = "3" > < span class = "dt" > C =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "Staphylococcus aureus"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-4" data-line-number = "4" > < span class = "dt" > D =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_family< / a > < / span > (< span class = "st" > "Staphylococcaceae"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-5" data-line-number = "5" > < span class = "dt" > E =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_order< / a > < / span > (< span class = "st" > "Bacillales"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-6" data-line-number = "6" > < span class = "dt" > F =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_class< / a > < / span > (< span class = "st" > "Bacilli"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-7" data-line-number = "7" > < span class = "dt" > G =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_phylum< / a > < / span > (< span class = "st" > "Firmicutes"< / span > ),< / a >
< a class = "sourceLine" id = "cb6-8" data-line-number = "8" > < span class = "dt" > H =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_kingdom< / a > < / span > (< span class = "st" > "Bacteria"< / span > ),< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb6-9" data-line-number = "9" > < span class = "dt" > times =< / span > < span class = "dv" > 10< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb6-10" data-line-number = "10" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (run_it, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 3< / span > )< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb6-11" data-line-number = "11" > < span class = "co" > # Unit: milliseconds< / span > < / a >
< a class = "sourceLine" id = "cb6-12" data-line-number = "12" > < span class = "co" > # expr min lq mean median uq max neval< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb6-13" data-line-number = "13" > < span class = "co" > # A 0.445 0.453 0.463 0.464 0.467 0.492 10< / span > < / a >
< a class = "sourceLine" id = "cb6-14" data-line-number = "14" > < span class = "co" > # B 0.484 0.496 0.522 0.502 0.505 0.724 10< / span > < / a >
< a class = "sourceLine" id = "cb6-15" data-line-number = "15" > < span class = "co" > # C 0.667 0.746 0.755 0.758 0.786 0.800 10< / span > < / a >
< a class = "sourceLine" id = "cb6-16" data-line-number = "16" > < span class = "co" > # D 0.488 0.491 0.507 0.505 0.509 0.558 10< / span > < / a >
< a class = "sourceLine" id = "cb6-17" data-line-number = "17" > < span class = "co" > # E 0.454 0.455 0.462 0.461 0.465 0.490 10< / span > < / a >
< a class = "sourceLine" id = "cb6-18" data-line-number = "18" > < span class = "co" > # F 0.432 0.447 0.456 0.458 0.459 0.490 10< / span > < / a >
< a class = "sourceLine" id = "cb6-19" data-line-number = "19" > < span class = "co" > # G 0.438 0.446 0.456 0.454 0.460 0.486 10< / span > < / a >
< a class = "sourceLine" id = "cb6-20" data-line-number = "20" > < span class = "co" > # H 0.439 0.442 0.454 0.450 0.459 0.501 10< / span > < / a > < / code > < / pre > < / div >
2019-10-13 09:31:58 +02:00
< p > Of course, when running < code > < a href = "../reference/mo_property.html" > mo_phylum("Firmicutes")< / a > < / code > the function has zero knowledge about the actual microorganism, namely < em > S. aureus< / em > . But since the result would be < code > "Firmicutes"< / code > too, there is no point in calculating the result. And because this package ‘ knows’ all phyla of all known bacteria (according to the Catalogue of Life), it can just return the initial value immediately.< / p >
2019-01-11 20:37:23 +01:00
< / div >
< div id = "results-in-other-languages" class = "section level3" >
2019-10-13 09:31:58 +02:00
< h3 class = "hasAnchor" >
< a href = "#results-in-other-languages" class = "anchor" > < / a > Results in other languages< / h3 >
2019-02-20 10:38:24 +01:00
< p > When the system language is non-English and supported by this < code > AMR< / code > package, some functions will have a translated result. This almost does’ t take extra time:< / p >
2019-10-13 09:31:58 +02:00
< div class = "sourceCode" id = "cb7" > < pre class = "sourceCode r" > < code class = "sourceCode r" > < a class = "sourceLine" id = "cb7-1" data-line-number = "1" > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "en"< / span > ) < span class = "co" > # or just mo_name("CoNS") on an English system< / span > < / a >
< a class = "sourceLine" id = "cb7-2" data-line-number = "2" > < span class = "co" > # [1] "Coagulase-negative Staphylococcus (CoNS)"< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb7-3" data-line-number = "3" > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb7-4" data-line-number = "4" > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "es"< / span > ) < span class = "co" > # or just mo_name("CoNS") on a Spanish system< / span > < / a >
< a class = "sourceLine" id = "cb7-5" data-line-number = "5" > < span class = "co" > # [1] "Staphylococcus coagulasa negativo (SCN)"< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb7-6" data-line-number = "6" > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb7-7" data-line-number = "7" > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "nl"< / span > ) < span class = "co" > # or just mo_name("CoNS") on a Dutch system< / span > < / a >
< a class = "sourceLine" id = "cb7-8" data-line-number = "8" > < span class = "co" > # [1] "Coagulase-negatieve Staphylococcus (CNS)"< / span > < / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb7-9" data-line-number = "9" > < / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb7-10" data-line-number = "10" > run_it < -< span class = "st" > < / span > < span class = "kw" > < a href = "https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html" > microbenchmark< / a > < / span > (< span class = "dt" > en =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "en"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-11" data-line-number = "11" > < span class = "dt" > de =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "de"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-12" data-line-number = "12" > < span class = "dt" > nl =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "nl"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-13" data-line-number = "13" > < span class = "dt" > es =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "es"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-14" data-line-number = "14" > < span class = "dt" > it =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "it"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-15" data-line-number = "15" > < span class = "dt" > fr =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "fr"< / span > ),< / a >
< a class = "sourceLine" id = "cb7-16" data-line-number = "16" > < span class = "dt" > pt =< / span > < span class = "kw" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > (< span class = "st" > "CoNS"< / span > , < span class = "dt" > language =< / span > < span class = "st" > "pt"< / span > ),< / a >
2019-12-20 21:06:39 +01:00
< a class = "sourceLine" id = "cb7-17" data-line-number = "17" > < span class = "dt" > times =< / span > < span class = "dv" > 100< / span > )< / a >
2019-10-13 09:31:58 +02:00
< a class = "sourceLine" id = "cb7-18" data-line-number = "18" > < span class = "kw" > < a href = "https://rdrr.io/r/base/print.html" > print< / a > < / span > (run_it, < span class = "dt" > unit =< / span > < span class = "st" > "ms"< / span > , < span class = "dt" > signif =< / span > < span class = "dv" > 4< / span > )< / a >
2019-09-20 14:18:29 +02:00
< a class = "sourceLine" id = "cb7-19" data-line-number = "19" > < span class = "co" > # Unit: milliseconds< / span > < / a >
2019-12-20 21:06:39 +01:00
< a class = "sourceLine" id = "cb7-20" data-line-number = "20" > < span class = "co" > # expr min lq mean median uq max neval< / span > < / a >
2019-12-22 11:43:38 +01:00
< a class = "sourceLine" id = "cb7-21" data-line-number = "21" > < span class = "co" > # en 21.02 22.35 26.62 22.93 23.58 55.03 100< / span > < / a >
< a class = "sourceLine" id = "cb7-22" data-line-number = "22" > < span class = "co" > # de 22.22 23.82 29.38 24.32 25.30 60.12 100< / span > < / a >
< a class = "sourceLine" id = "cb7-23" data-line-number = "23" > < span class = "co" > # nl 27.58 28.91 33.76 30.03 30.78 144.40 100< / span > < / a >
< a class = "sourceLine" id = "cb7-24" data-line-number = "24" > < span class = "co" > # es 22.31 23.57 28.23 24.31 25.96 53.68 100< / span > < / a >
< a class = "sourceLine" id = "cb7-25" data-line-number = "25" > < span class = "co" > # it 22.02 23.74 30.82 24.32 26.97 158.30 100< / span > < / a >
< a class = "sourceLine" id = "cb7-26" data-line-number = "26" > < span class = "co" > # fr 22.38 23.39 28.85 24.29 25.71 143.30 100< / span > < / a >
< a class = "sourceLine" id = "cb7-27" data-line-number = "27" > < span class = "co" > # pt 22.14 23.44 27.47 24.17 25.12 56.93 100< / span > < / a > < / code > < / pre > < / div >
2019-01-11 20:37:23 +01:00
< p > Currently supported are German, Dutch, Spanish, Italian, French and Portuguese.< / p >
< / div >
< / div >
< div class = "col-md-3 hidden-xs hidden-sm" id = "sidebar" >
2019-10-13 09:31:58 +02:00
2019-01-11 20:37:23 +01:00
< / div >
< / div >
2019-10-13 09:31:58 +02:00
< footer > < div class = "copyright" >
2019-12-20 21:06:39 +01:00
< p > Developed by < a href = "https://www.rug.nl/staff/m.s.berends/" > Matthijs S Berends< / a > , < a href = "https://www.rug.nl/staff/c.f.luz/" > Christian F Luz< / a > , < a href = "https://www.rug.nl/staff/a.w.friedrich/" > Alexander W Friedrich< / a > , < a href = "https://www.rug.nl/staff/b.sinha/" > Bhanu N M Sinha< / a > , < a href = "https://www.rug.nl/staff/c.j.albers/" > Casper J Albers< / a > , < a href = "https://www.rug.nl/staff/c.glasner/" > Corinna Glasner< / a > .< / p >
2019-01-11 20:37:23 +01:00
< / div >
< div class = "pkgdown" >
2019-10-13 09:31:58 +02:00
< p > Site built with < a href = "https://pkgdown.r-lib.org/" > pkgdown< / a > 1.4.1.< / p >
2019-01-11 20:37:23 +01:00
< / div >
2019-10-13 09:31:58 +02:00
2019-01-11 20:37:23 +01:00
< / footer >
2019-10-13 09:31:58 +02:00
< / div >
2019-01-11 20:37:23 +01:00
2019-10-13 09:31:58 +02:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.1/docsearch.min.js" integrity = "sha256-GKvGqXDznoRYHCwKXGnuchvKSwmx9SRMrZOTh2g4Sb0=" crossorigin = "anonymous" > < / script > < script >
2019-01-11 20:37:23 +01:00
docsearch({
apiKey: 'f737050abfd4d726c63938e18f8c496e',
indexName: 'amr',
inputSelector: 'input#search-input.form-control',
transformData: function(hits) {
return hits.map(function (hit) {
hit.url = updateHitURL(hit);
return hit;
});
}
});
< / script >
2019-10-13 09:31:58 +02:00
< / body >
2019-01-11 20:37:23 +01:00
< / html >