<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="23727" data-post-id="23727">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="ricklove" data-post="11" data-topic="3599">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ricklove/48/4147_2.png" class="avatar"> ricklove:</div>
<blockquote>
<p>From your experience about how many sockets do you think the $3 server could manage safely? (Or how many requests/second? Or whatever metric you might have…)</p>
</blockquote>
</aside>
<p>Hmm, mine are not particularly heavy so I’ve never needed to increase them (a few hundred requests a second at the heaviest, the big calls tend to hit the big server directly because of API access)…  You can test it if you want, and it can scale up pretty easily from the $3 one too.  <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="23727" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-23727" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="23727"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="52531" data-post-id="52531">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="DevotionGeo" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/DevotionGeo/120/20538_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  DevotionGeo
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is an old thread, but I want to put my two cents.<br>
Everybody knows that benchmarks do not reflect the real world performance, but as this thread is all about benchmarks, so I’ll link to the <a href="https://www.techempower.com/benchmarks/#section=data-r14&amp;hw=ph&amp;test=fortune&amp;l=8t53wd&amp;o=6" rel="noopener nofollow ugc">TechEmpower benchmarks round 14 for ASP.net core and Phoenix.</a></p>
<p>In Fortunes (benchmark) .net core’s best implementation gives 20,021 responses per second vs Phoenix’s 32,559 responses.<br>
In multiple queries (Full ORMs of both), .net core runs 2,177 requests while Phoenix runs 1,857 requests. (Every request is consisted of 20 queries).<br>
In single queries (again Full ORM versions only), .net core runs 25,827 requests per second vs Phoenix’s 30,182.<br>
In JSON serializations, Revenj (C#'s best) gives 143,516 responses per second vs Phoenix’s 164,921 responses per second.</p>
<p>As you see the values are overlapping. Phoenix beats .net core in 3 benchmarks while .net core beats phoenix in one benchmark, so it proves that Phoenix (Elixir) is not good just in creating persistent websocket connections, but is also good at performing database queries, IO, JSON serialization etc.<br>
As I said earlier benchmarks do not reflect the real world performance, and we should consider other factors too, like how easier some technology is to scale. And when it comes to scaling, Elixir(/Erlang) beats all other technologies.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="52531" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-52531" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="52531"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="52535" data-post-id="52535">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>As another note, we started running <a href="http://Asp.Net" rel="noopener nofollow ugc">Asp.Net</a> Core at work on linux (slowly migrating off windows) and it substantially slower than the phoenix setups here, though the quality (lack-thereof) of  probably contributes…  &gt;.&gt;</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="52535" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-52535" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="52535"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="53176" data-post-id="53176">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="MikeAnthony" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  MikeAnthony
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>“In Fortunes (benchmark) .net core’s best implementation gives 20,021 responses per second vs Phoenix’s 32,559 responses.”</p>
<p>unfortunately if they used only released software thats most likely out of date.  <a href="http://Asp.net" rel="noopener nofollow ugc">Asp.net</a> core 2.0 was released with performance improvements a few weeks ago and that benchmark was done back in May.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="53176" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-53176" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="53176"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="139704" data-post-id="139704">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OndrejValenta" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OndrejValenta/120/16421_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OndrejValenta
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>At this moment, 12.8.2019, the numbers of Fortunes are like this:<br>
Phoenix: 175	phoenix	53,383<br>
<a href="http://ASP.NET" rel="noopener nofollow ugc">ASP.NET</a> Core: 14	aspcore-ado-pg	300,613 with one error</p>
<p>It does not say which version of ASP NET Core exactly but I assume it’s one of 2.2.5-6 versions.</p>
<p>Question is why is Phoenix slower 6x times. It is faster than it used to be but still.</p>
<p>I understand the safety part of Phoenix. There is no production debugging in <a href="http://ASP.NET" rel="noopener nofollow ugc">ASP.NET</a> Core, you could produce a dump and WinDbg it but good luck with that rabbit hole. Especially, when it runs on linux machine. But when you read here about erlang and cowboy and how fast they are with hardware how can it be way slower that <a href="http://ASP.NET" rel="noopener nofollow ugc">ASP.NET</a> Core, I don’t get it. It has to be a configuration issue.</p>
<p>The first one is Actix (Rust): 	actix-core	702,165 which is cca 14times faster.</p>
<p>In data updates the situation is even worse. ASP NET Core is almost ten times faster than Phoenix.<br>
In multiple queries ASP NET Core is just 6x times better.</p>
<p>I’m not bragging about ASP NET Core I would love to switch to something better and be done with Microsoft for good but the results are unconvincing. <img src="https://forum.elixirforum.com/images/emoji/apple/frowning.png?v=15" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20"> It is not a cheap machine they are running the test on. It’s actually a pretty small beast.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="139704" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-139704" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="139704"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="218526" data-post-id="218526">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="chemist" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  chemist
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi, sorry to resurrect such an old thread. But are there any updates with regards to this?</p>
<p>The latest Fortunes look so promising till I need to ask whether a fair test was conducted with <a href="http://ASP.NET" rel="noopener nofollow ugc">ASP.NET</a> Core vs Phoenix.</p>
<p>Thanks.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="218526" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-218526" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="218526"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="246470" data-post-id="246470">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kaashyapan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kaashyapan/120/9827_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kaashyapan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Please dont take the Techempower benchmarks seriously. None of the code that I know of is written how you’d write it normally in a project. Its all gamed to look good.</p>
<p>Dustin Moris Gorski on Twitter:</p>
<p><a href="https://twitter.com/dustinmoris/status/1341872474154217473" class="onebox" target="_blank" rel="noopener nofollow ugc">https://twitter.com/dustinmoris/status/1341872474154217473</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="246470" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-246470" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="246470"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="246519" data-post-id="246519">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pillaiindu" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pillaiindu
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This twitter thread is worth reading.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="246519" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-vs-asp-net-core-performance/3599/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-246519" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="246519"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>