• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Measure-CachePerformance

This PowerShell cmdlet measures and reports the performance of cache operations for a specified cache. It gives insight into cache's efficiency by displaying the key metrics such as ReadWriteRatio, ThreadCount, and Duration. It is different from the Test-Stress cmdlet as the output includes average Read/Write time and Request/sec.

Warning

The performance metrics provided are indicative and reflect the relative performance of the NCache server under the specified test conditions. Actual performance may vary due to factors such as machine hardware, network conditions, and the nature of the data being processed.

  • Windows PowerShell
  • Linux CLI
Measure-CachePerformance -CacheName -Server [-ObjectSize] [-ReadWriteRatio] [-Duration] [-ThreadCount] [-AbsoluteExpiration] [-Credentials]

Examples

  • This command measures performance of a cache named demoCache on server 20.200.20.11 with default settings of object size 100 bytes, read-write ratio 4, duration 120 seconds, thread count 1, and absolute expiration 300 seconds.
Measure-CachePerformance -Server 20.200.20.11 -CacheName demoCache
  • This command measures performance of the demoCache with object size 10 bytes, read-write ratio 4, duration 60 seconds, and thread count 1.
Measure-CachePerformance -Server 20.200.20.11 -CacheName demoCache -ObjectSize 10 -Duration 60
  • This command measures performance of the demoCache with object size 5 bytes, read-write ratio 3, duration 30 seconds, and thread count 10.
Measure-CachePerformance -Server 20.200.20.11 -CacheName demoCache -ObjectSize 5 -ReadWriteRatio 3 -Duration 30 -ThreadCount 10

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-CacheName* <string> Specifies the name of the cache for which you want to measure performance. -
-Server* <string> Specifies one or more server IP addresses where the cache is running. -
-ObjectSize <int> Specifies the size of objects in bytes to be used in the performance test. 100
-ReadWriteRatio <int> Specifies the ratio of read to write operations. 4
-Duration <int> Specifies the duration in seconds for which the performance test should run. The value can range from 1-2147483647. 120
-ThreadCount <int> Specifies the number of threads to be used for the test. 1
-AbsoluteExpiration <double> Specifies absolute expiration for cache item in seconds. 300 seconds
-Credentials <pscredential> Specifies the user credentials required to authorize access for the specified operation. The credentials should belong to a user with appropriate permissions at the node. -
measure-cacheperformance -cachename -server [-objectsize] [-readwriteratio] [-duration] [-threadcount] [-absoluteexpiration] [-userid] [-password]

Examples

  • This command measures performance of a cache named demoCache on server 20.200.20.11 with default settings of object size 100 bytes, read-write ratio 4, duration 120 seconds, thread count 1, and absolute expiration 300 seconds.
measure-cacheperformance -server 20.200.20.11 -cachename demoCache
  • This command measures performance of the demoCache with object size 10 bytes, read-write ratio 4, duration 60 seconds, and thread count 1.
measure-cacheperformance -server 20.200.20.11 -cachename demoCache -objectsize 10 -duration 60
  • This command measures performance of the demoCache with object size 5 bytes, read-write ratio 3, duration 30 seconds, and thread count 10.
measure-cacheperformance -server 20.200.20.11 -cachename demoCache -objectsize 5 -readwriteratio 3 -duration 30 -threadcount 10

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-cachename* <string> Specifies the name of the cache for which you want to measure performance. -
-server* <string> Specifies one or more server IP addresses where the cache is running. -
-objectsize <int> Specifies the size of objects in bytes to be used in the performance test. 100
-readwriteratio <int> Specifies the ratio of read to write operations. 4
-duration <int> Specifies the duration in seconds for which the performance test should run. The value can range from 1-2147483647. 120
-threadcount <int> Specifies the number of threads to be used for the test. 1
-absoluteexpiration <double> Specifies absolute expiration for cache item in seconds. 300 seconds
-userid <String> Specifies the user id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user id must be the active directory user id. -
-password <String> Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. -

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top