Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Bad perfomance of mass insertion to Redis DB with Sider .NET client
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Salvatore Sanfilippo  
View profile  
 More options Oct 11 2012, 7:27 am
From: Salvatore Sanfilippo <anti...@gmail.com>
Date: Thu, 11 Oct 2012 13:27:31 +0200
Local: Thurs, Oct 11 2012 7:27 am
Subject: Re: Bad perfomance of mass insertion to Redis DB with Sider .NET client

Tcp_nodelay?

On Thursday, October 11, 2012, Marc Gravell wrote:
> Further, if I add a separate wait after *every* operation (i.e. we
> completely fail to use the pipeline), then it **still** only takes about
> 100ms. You can simulate this by the addition of a Wait in the loop:

>                 for (int i = 0; i < 1000; ++i)
>                 {
>                     string key = "aaaaaaaaaaa" + i;
>                     string value = "bbbbbbbbbb";
>                     last = redis_client.Strings.Set(0, key, value);
>                     redis_client.Wait(last);
>                 }

> So: I don't know what Sider is doing for the rest of the time, but it
> isn't a redis-server issue.

> Marc

> On 11 October 2012 12:19, Marc Gravell <marc.grav...@gmail.com> wrote:

> This looks like a problem with that client; I have the following 2 tests,
> one using BookSleeve, one using Sider. The first (BookSleeve) takes 3ms,
> the second (Sider) takes 2391ms. If I don't pause to wait for the replies,
> BookSleeve takes 1ms:

>         [Test]
>         public void TestBookSleevePipelinePerformance()
>         {
>             using (var redis_client = new
> BookSleeve.RedisConnection("localhost", 6379))
>             {
>                 redis_client.Open();
>                 var watch = Stopwatch.StartNew();
>                 Task last = null;
>                 for (int i = 0; i < 1000; ++i)
>                 {
>                     string key = "aaaaaaaaaaa" + i;
>                     string value = "bbbbbbbbbb";
>                     last = redis_client.Strings.Set(0, key, value);
>                 }
>                 // not required, but for the fun, wait until we've
>                 // had all of the replies
>                 redis_client.Wait(last);
>                 watch.Stop();
>                 Console.WriteLine("{0}ms", watch.ElapsedMilliseconds);
>             }
>         }
>         [Test]
>         public void TestSiderPipelinePerformance()
>         {
>             using (var redis_client = new Sider.RedisClient("localhost",
> 6379))
>             {
>                 var watch = Stopwatch.StartNew();
>                 redis_client.Pipeline(c =>
>                 {
>                     for (int i = 0; i < 1000; ++i)
>                     {
>                         string key = "aaaaaaaaaaa" + i;
>                         string value = "bbbbbbbbbb";
>                         c.Set(key, value);
>                     }
>                 });
>                 watch.Stop();
>                 Console.WriteLine("{0}ms", watch.ElapsedMilliseconds);
>              }
>         }

> On 11 October 2012 12:11, Didier Spezia <didier...@gmail.com> wrote:

> >> .*Official benchmark page <http://redis.io/topics/benchmarks>* of
> Redis says about possibility of ~100000 SET operations per second. I have
> less then 1000... What's the problem?

> I would suggest to try the benchmark program by yourself: it is trivial to
> launch
> and part of the Redis distribution. So you will be able to check if the
> problem is
> on server side or client side.

> Regards,
> Didier.

>  --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/E9ezx7ziAxcJ.

> To post to this group, send email to redis-db@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

> --
> Regards,

> Marc

> --

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redis-db@googlegroups.com<javascript:_e({}, 'cvml', 'redis-db@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com <javascript:_e({}, 'cvml',
> 'redis-db%2Bunsubscribe@googlegroups.com');>.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence against
complexity.
       — David Gelernter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.