From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 1 Jun 2018 20:56:28 +0300 From: Konstantin Osipov Subject: Re: [PATCH 2/2] vinyl: apply box.cfg.snap_io_rate_limit to dump/compaction Message-ID: <20180601175628.GB15567@atlas> References: <0686cb69b36e79d9646fb44f2923a73a527ab0f9.1527605229.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0686cb69b36e79d9646fb44f2923a73a527ab0f9.1527605229.git.vdavydov.dev@gmail.com> To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/05/29 18:20]: > diff --git a/test/vinyl/snap_io_rate.test.lua b/test/vinyl/snap_io_rate.test.lua > new file mode 100644 > index 00000000..836bf537 > --- /dev/null > +++ b/test/vinyl/snap_io_rate.test.lua > @@ -0,0 +1,38 @@ > +fiber = require('fiber') > +digest = require('digest') > +test_run = require('test_run').new() > + > +MB = 1024 * 1024 > +TUPLE_SIZE = 1024 > +TUPLE_COUNT = 100 This test runs for 3.8 seconds on my laptop. You only need to run it for 0.2 seconds, definitely 1 second to test the rate. Sorry for being painfully finicky about this, but I run tests every day. If you hate this request, don't bother, this is a standalone test and can run in parallel. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov