<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Discover Docker, K8s and Hashicorp Nomad with Maksym Prokopov: posts tagged testing</title>
<link>https://blog.it-premium.com.ua/tags/testing/</link>
<description>The blog about containerisation, virtual machines and useful shell snippets and findings</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>The blog about containerisation, virtual machines and useful shell snippets and findings</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>Compare Postgres with docker and without</title>
<guid isPermaLink="false">187</guid>
<link>https://blog.it-premium.com.ua/all/compare-postgres-from-docker-and-raw/</link>
<pubDate>Thu, 07 Sep 2017 09:47:30 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/compare-postgres-from-docker-and-raw/</comments>
<description>
&lt;p&gt;I decided to compare if there will be significant differences between dockerized Postgres and non-dockerized. Here is my test environment: rails application with rich test suite, about 628 examples, macOS Sierra 10.12.6, Docker 17.06.0-ce-mac19.&lt;/p&gt;
&lt;p&gt;I use Postgres docker version alpine 9.6 which is 37,7Mb and raw Postgres 9.6 with GUI for Mac which is 379Mb.&lt;br /&gt;
Here is my docker-compose config&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;db:
  image: postgres:alpine
  ports:
    - 5432:5432
adminer:
  image: adminer
  ports:
    - 8080:8080
  links:
    - db&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;With docker&lt;br /&gt;
Finished in 46.86 seconds (files took 17.77 seconds to load)&lt;br /&gt;
628 examples, 0 failures&lt;/p&gt;
&lt;p&gt;Without docker, raw Postgre 9.6&lt;br /&gt;
Finished in 31.35 seconds (files took 8.38 seconds to load)&lt;br /&gt;
628 examples, 0 failures&lt;/p&gt;
&lt;p&gt;And again in Docker&lt;br /&gt;
Finished in 41.64 seconds (files took 8.24 seconds to load)&lt;br /&gt;
628 examples, 0 failures&lt;/p&gt;
&lt;p&gt;And again without Docker&lt;br /&gt;
Finished in 31.53 seconds (files took 8.01 seconds to load)&lt;br /&gt;
628 examples, 0 failure&lt;/p&gt;
&lt;p&gt;And again with Docker&lt;br /&gt;
Finished in 41.77 seconds (files took 8.51 seconds to load)&lt;br /&gt;
628 examples, 0 failures&lt;/p&gt;
&lt;p&gt;So its 41,5 seconds for Docker version and 31,53 seconds without Docker average.&lt;br /&gt;
This is 24% difference in particular rails rspec case, which is quite significant as for compartion and is not so significant for testing loop.&lt;/p&gt;
&lt;p&gt;At least this is a price you pay for container portability.&lt;/p&gt;
</description>
</item>


</channel>
</rss>