Skip to content

Instantly share code, notes, and snippets.

@diyan
Created January 17, 2012 17:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diyan/1627530 to your computer and use it in GitHub Desktop.
Save diyan/1627530 to your computer and use it in GitHub Desktop.
ServiceStack.Redis benchmarks
**Workstation with Intel Core i5 (3.2 GHz, dual core) CPU, 8 GB RAM**
**Test #1. ServiceStack.Redis load test. This C# client shown results better than BookSleeve library.**
1.000.000 records (1 thread) - 00:00:31 (Server RAM - 365,152 K; Client RAM - 34,596 K)
1.000.000 records (32 thread) - 00:00:15 (Server RAM - 364,664 K; Client RAM - 39,512 K)
10.000.000 records (1 threads) - 00:05:50 (Server RAM - 3,608,376 K; Client RAM - 69,960 K)
10.000.000 records (32 threads) - 00:03:00 (Server RAM - 3,609,368 K; Client RAM - 76,963 K)
**Test #2. BookSleeve load test.**
1.000.000 records (1 thread) - 00:01:14 (Server RAM - 365,156 K; Client RAM - 34,196 K)
1.000.000 records (32 threads) - 00:00:35 (Server RAM - 365,328 K; Client RAM - 34,376 K)
10.000.000 records (1 thread) - 00:14:12 (Server RAM - 3,606,096 K; Client RAM - 69,500 K)
10.000.000 records (32 threads) - 00:06:56 (Server RAM - 3,606,100 K; Client RAM - 70,064 K)
**Example of record:**
"bf8a61be-dca0-4ab8-808b-5114aaa57720_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ_ABCDEFGHIGKLMNOPQRSTYVWXYZ"
**Test #3. Check how much time it takes to warmup connection pool.**
Pool with 1 write master and 2 readonly slave:
Inserted 96 data items with degree of parallelism 32. Elapsed time: 00:00:00.2280000
Pool with default configuration. 10 write mater and 10 readonly slave.
Inserted 96 data items with degree of parallelism 32. Elapsed time: 00:00:00.2570000
**Test #4. Check how much time we loose if we will use minimum-sized connection pool (or without connection pool).**
Pool with 1 write master and 2 readonly slave:
Inserted 320000 data items with degree of parallelism 32. Elapsed time: 00:00:16.1390000
Pool with default configuration. 10 write master and 10 readonly slave.
Inserted 320000 data items with degree of parallelism 32. Elapsed time: 00:00:06.0790000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment