Changeset 3542
- Timestamp:
- 06/02/08 21:32:33 (6 months ago)
- Files:
-
- trunk/example/cluster/cclient.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/example/cluster/cclient.d
r3485 r3542 15 15 import tango.net.cluster.tina.Cluster; 16 16 17 import Integer = tango.text.convert.Integer; 18 17 19 /******************************************************************************* 18 20 … … 29 31 auto cache = new NetworkCache (cluster, "my.cache.channel"); 30 32 33 char[64] tmp; 31 34 while (true) 32 35 { 33 36 w.start; 34 37 for (int i=10000; i--;) 35 cache.put ("key", cache.EmptyMessage); 38 { 39 auto key = Integer.format (tmp, i); 40 cache.put (key, cache.EmptyMessage); 41 } 36 42 37 43 Stdout.formatln ("{} put/s", 10000/w.stop); … … 39 45 w.start; 40 46 for (int i=10000; i--;) 41 cache.get ("key"); 47 { 48 auto key = Integer.format (tmp, i); 49 cache.get (key); 50 } 42 51 43 52 Stdout.formatln ("{} get/s", 10000/w.stop);












