<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/support/faster, branch faster-spex</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>bup [amend me]</title>
<updated>2017-10-24T06:40:14+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-10-24T06:40:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=c7e41672ee216aea8d905771b2672bb32b120c0c'/>
<id>c7e41672ee216aea8d905771b2672bb32b120c0c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Faster Spex</title>
<updated>2017-10-21T08:25:30+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-10-21T08:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e3f3d13b6c096f7dcd0e5429efc46a70c7da7e7c'/>
<id>e3f3d13b6c096f7dcd0e5429efc46a70c7da7e7c</id>
<content type='text'>
  - Clean object cache before each example with type :faster
  - Started to work on FactroyGirl integration

N.B. While FactoryGirl support right now only includes defaults it slows down the ActiveRecord based stubbing by a factor of ~2.5
which might be fixable if worth it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - Clean object cache before each example with type :faster
  - Started to work on FactroyGirl integration

N.B. While FactoryGirl support right now only includes defaults it slows down the ActiveRecord based stubbing by a factor of ~2.5
which might be fixable if worth it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Benchmarks of the stubbed models</title>
<updated>2017-10-20T17:52:33+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-10-20T16:51:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a91d34f1ab09ba90fc0e75d64c091adc74052746'/>
<id>a91d34f1ab09ba90fc0e75d64c091adc74052746</id>
<content type='text'>
Run with
        N=..., NO_RCOV= bundle exec spring rspec   --example 'stubbed' ./spec/models/faster_specs_spec.rb
or
        N=..., NO_RCOV= bundle exec spring rspec   --example 'in DB' ./spec/models/faster_specs_spec.rb

the benchmark result in seconds were:

     N:     |   10  |   20  |   40  |   80  |
------------+-------+-------+-------+-------+
   'in DB'  |   32  |   59  |  116  |  230  |
------------+-------+-------+-------+-------+
 'stubbed'  |  3.4  |  3.5  |  3.9  |  4.5  |
------------+-------+-------+-------+-------+

Considering warm up times that gives stubbed ~0.01s/N
and in DB ~2.8s/N or a factor of ~280
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run with
        N=..., NO_RCOV= bundle exec spring rspec   --example 'stubbed' ./spec/models/faster_specs_spec.rb
or
        N=..., NO_RCOV= bundle exec spring rspec   --example 'in DB' ./spec/models/faster_specs_spec.rb

the benchmark result in seconds were:

     N:     |   10  |   20  |   40  |   80  |
------------+-------+-------+-------+-------+
   'in DB'  |   32  |   59  |  116  |  230  |
------------+-------+-------+-------+-------+
 'stubbed'  |  3.4  |  3.5  |  3.9  |  4.5  |
------------+-------+-------+-------+-------+

Considering warm up times that gives stubbed ~0.01s/N
and in DB ~2.8s/N or a factor of ~280
</pre>
</div>
</content>
</entry>
<entry>
<title>A promising approach to complete db stubbing</title>
<updated>2017-10-20T16:18:13+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-10-20T16:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=dce18aaeaf16a3109b801ba4cd8fd02d0cf564c0'/>
<id>dce18aaeaf16a3109b801ba4cd8fd02d0cf564c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
