Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

testing stuff

  • Loading branch information...
commit 9eda5ee046f3d83ac6207da791d01be52303ffa1 1 parent 9b038c8
@enyim authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 TestApp/Program.cs
View
36 TestApp/Program.cs
@@ -19,6 +19,41 @@ static void Main(string[] args)
{
log4net.Config.XmlConfigurator.Configure();
+ var emcc = new MemcachedClientConfiguration();
+ emcc.AddServer("localhost:11211");
+ emcc.AddServer("localhost:11212");
+ emcc.AddServer("localhost:11213");
+ emcc.AddServer("localhost:11214");
+
+ var client = new MemcachedClient(emcc);
+
+ var mre = new ManualResetEvent(false);
+ var keys = Enumerable.Range(0, 20).Select(i => "key_" + i).ToArray();
+
+ foreach (var k in keys)
+ client.Store(StoreMode.Set, k, new byte[65534]);
+
+ for (var i = 0; i < 4; i++)
+ {
+ ThreadPool.QueueUserWorkItem((o) =>
+ {
+ mre.WaitOne();
+
+ while (true)
+ client.Get(keys);
+ });
+ }
+
+ Console.WriteLine("Go?");
+ Console.ReadLine();
+
+ mre.Set();
+
+ Console.WriteLine("Enter to quit.");
+ Console.ReadLine();
+
+
+ /*
var mbcc = new MembaseClientConfiguration();
@@ -107,6 +142,7 @@ static void Main(string[] args)
//var stats2 = nc2.Stats();
//foreach (var kvp in stats2.GetRaw("curr_connections"))
// Console.WriteLine("{0} -> {1}", kvp.Key, kvp.Value);
+ * */
}
private static void MultigetSpeedTest()

0 comments on commit 9eda5ee

Please sign in to comment.
Something went wrong with that request. Please try again.