Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on 0e33cca
  • Loading branch information
mrdziuban committed Feb 3, 2025
1 parent 9af78e5 commit 93d130c
Show file tree
Hide file tree
Showing 25 changed files with 101 additions and 425 deletions.
10 changes: 5 additions & 5 deletions docs/benchmarks.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Benchmarks · routing</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="Routing is an important part of a web application so it&#x27;s important to understand the performance of our implementation."/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Benchmarks · routing"/><meta property="og:type" content="website"/><meta property="og:url" content="https://mblink.github.io/routing/"/><meta property="og:description" content="Routing is an important part of a web application so it&#x27;s important to understand the performance of our implementation."/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/routing/img/routing.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><script src="/routing/js/scrollSpy.js"></script><link rel="stylesheet" href="/routing/css/main.css"/><script src="/routing/js/codetabs.js"></script></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/routing/"><img class="logo" src="/routing/img/routing.png" alt="routing"/><h2 class="headerTitleWithLogo">routing</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/routing/docs/installation" target="_self">Docs</a></li><li class=""><a href="https://github.com/mblink/routing" target="_blank">GitHub</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><div class="hamburger-menu"><div class="line1"></div><div class="line2"></div><div class="line3"></div></div></div><h2><i></i><span>More</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Documentation</h3><ul class=""><li class="navListItem"><a class="navItem" href="/routing/docs/installation">Installation</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/routes">Routes</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/routing">Routing</a></li><div class="navGroup subNavGroup"><h4 class="navGroupSubcategoryTitle">Implementations</h4><ul><li class="navListItem"><a class="navItem" href="/routing/docs/implementations">Choosing an implementation</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/http4s-0.22">http4s 0.22 (latest stable on cats effect 2)</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/http4s-0.23">http4s 0.23 (latest stable on cats effect 3)</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/http4s-1.0.0-M41">http4s 1.0.0-M41 (latest development on cats effect 3)</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/play">Play Framework</a></li></ul></div><li class="navListItem"><a class="navItem" href="/routing/docs/reverse-routing">Reverse Routing</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">More</h3><ul class=""><li class="navListItem navListItemActive"><a class="navItem" href="/routing/docs/benchmarks">Benchmarks</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/example">Example</a></li></ul></div></div></section></div><script>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Benchmarks · routing</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="Routing is an important part of a web application so it&#x27;s important to understand the performance of our implementation."/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Benchmarks · routing"/><meta property="og:type" content="website"/><meta property="og:url" content="https://mblink.github.io/routing/"/><meta property="og:description" content="Routing is an important part of a web application so it&#x27;s important to understand the performance of our implementation."/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/routing/img/routing.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><script src="/routing/js/scrollSpy.js"></script><link rel="stylesheet" href="/routing/css/main.css"/><script src="/routing/js/codetabs.js"></script></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/routing/"><img class="logo" src="/routing/img/routing.png" alt="routing"/><h2 class="headerTitleWithLogo">routing</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/routing/docs/installation" target="_self">Docs</a></li><li class=""><a href="https://github.com/mblink/routing" target="_blank">GitHub</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><div class="hamburger-menu"><div class="line1"></div><div class="line2"></div><div class="line3"></div></div></div><h2><i></i><span>More</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Documentation</h3><ul class=""><li class="navListItem"><a class="navItem" href="/routing/docs/installation">Installation</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/routes">Routes</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/routing">Routing</a></li><div class="navGroup subNavGroup"><h4 class="navGroupSubcategoryTitle">Implementations</h4><ul><li class="navListItem"><a class="navItem" href="/routing/docs/implementations">Choosing an implementation</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/http4s-0.23">http4s 0.23 (latest stable on cats effect 3)</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/http4s-1.0.0-M44">http4s 1.0.0-M44 (latest development on cats effect 3)</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/implementations/play">Play Framework</a></li></ul></div><li class="navListItem"><a class="navItem" href="/routing/docs/reverse-routing">Reverse Routing</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">More</h3><ul class=""><li class="navListItem navListItemActive"><a class="navItem" href="/routing/docs/benchmarks">Benchmarks</a></li><li class="navListItem"><a class="navItem" href="/routing/docs/example">Example</a></li></ul></div></div></section></div><script>
var coll = document.getElementsByClassName('collapsible');
var checkActiveCategory = true;
for (var i = 0; i < coll.length; i++) {
Expand Down Expand Up @@ -68,21 +68,21 @@
<span class="hljs-comment">// 1. Built with routing handler syntax</span>
<span class="hljs-keyword">val</span> routing = <span class="hljs-type">Route</span>.httpRoutes[<span class="hljs-type">IO</span>](test.handle(_ =&gt; _ =&gt; <span class="hljs-type">Ok</span>(<span class="hljs-string">"test"</span>)))
<span class="hljs-comment">// routing: Kleisli[[_$7 &gt;: Nothing &lt;: Any] =&gt; OptionT[[A &gt;: Nothing &lt;: Any] =&gt; IO[A], _$7], Request[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]], Response[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]]] = Kleisli(</span>
<span class="hljs-comment">// run = org.http4s.Http$$$Lambda/0x0000007006925ec0@62b82414</span>
<span class="hljs-comment">// run = org.http4s.Http$$$Lambda/0x0000007005e79d50@32378dc6</span>
<span class="hljs-comment">// )</span>

<span class="hljs-comment">// 2. Built with routing manual match syntax</span>
<span class="hljs-keyword">val</span> routingManual = <span class="hljs-type">HttpRoutes</span>.of[<span class="hljs-type">IO</span>] { <span class="hljs-keyword">case</span> test(_) =&gt; <span class="hljs-type">Ok</span>(<span class="hljs-string">"test"</span>) }
<span class="hljs-comment">// routingManual: Kleisli[[_$7 &gt;: Nothing &lt;: Any] =&gt; OptionT[[A &gt;: Nothing &lt;: Any] =&gt; IO[A], _$7], Request[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]], Response[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]]] = Kleisli(</span>
<span class="hljs-comment">// run = org.http4s.HttpRoutes$$$Lambda/0x00000070069264f8@2fd916c0</span>
<span class="hljs-comment">// run = org.http4s.HttpRoutes$$$Lambda/0x0000007005e7a378@6cd811bb</span>
<span class="hljs-comment">// )</span>

<span class="hljs-comment">// 3. Built with explicit URL matches using the http4s DSL</span>
<span class="hljs-keyword">val</span> http4s = <span class="hljs-type">HttpRoutes</span>.of[<span class="hljs-type">IO</span>] {
<span class="hljs-keyword">case</span> <span class="hljs-type">GET</span> -&gt; <span class="hljs-type">Root</span> / <span class="hljs-string">"test"</span> =&gt; <span class="hljs-type">Ok</span>(<span class="hljs-string">"test"</span>)
}
<span class="hljs-comment">// http4s: Kleisli[[_$7 &gt;: Nothing &lt;: Any] =&gt; OptionT[[A &gt;: Nothing &lt;: Any] =&gt; IO[A], _$7], Request[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]], Response[[A &gt;: Nothing &lt;: Any] =&gt; IO[A]]] = Kleisli(</span>
<span class="hljs-comment">// run = org.http4s.HttpRoutes$$$Lambda/0x00000070069264f8@4c13be2c</span>
<span class="hljs-comment">// run = org.http4s.HttpRoutes$$$Lambda/0x0000007005e7a378@402a2b63</span>
<span class="hljs-comment">// )</span>
</code></pre>
<p>Then ran the benchmarks with the command:</p>
Expand All @@ -104,4 +104,4 @@
ServiceBenchmark.routingManual thrpt <span class="hljs-number">15</span> <span class="hljs-number">116674.411</span> ± <span class="hljs-number">3518.031</span> ops/s
</code></pre>
<p>You can <a href="https://github.com/mblink/routing/blob/master/bench/results.txt">view the full output of the JMH run here</a>.</p>
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/routing/docs/reverse-routing"><span class="arrow-prev"></span><span>Reverse Routing</span></a><a class="docs-next button" href="/routing/docs/example"><span>Example</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"></nav></div><footer class="nav-footer" id="footer" style="background-color:#333333"><section class="sitemap"><div><h5>Docs</h5><a href="/routing/docs/installation">Installation</a></div><div><h5>Community</h5></div><div><h5>More</h5><a href="https://github.com/mblink/routing">GitHub</a></div></section><section class="copyright">Copyright © 2024 BondLink</section></footer></div></body></html>
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/routing/docs/reverse-routing"><span class="arrow-prev"></span><span>Reverse Routing</span></a><a class="docs-next button" href="/routing/docs/example"><span>Example</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"></nav></div><footer class="nav-footer" id="footer" style="background-color:#333333"><section class="sitemap"><div><h5>Docs</h5><a href="/routing/docs/installation">Installation</a></div><div><h5>Community</h5></div><div><h5>More</h5><a href="https://github.com/mblink/routing">GitHub</a></div></section><section class="copyright">Copyright © 2025 BondLink</section></footer></div></body></html>
Loading

0 comments on commit 93d130c

Please sign in to comment.