{"id":22117872,"url":"https://github.com/elektrostudios/hardware-stress-api-for-.net-developers","last_synced_at":"2026-05-01T01:32:15.294Z","repository":{"id":97720740,"uuid":"171491154","full_name":"ElektroStudios/Hardware-Stress-API-for-.NET-developers","owner":"ElektroStudios","description":"A .NET class library written in VB.NET, that provides a mechanism for exerting pressure on hardware resources, such as CPU, RAM, or disk drives.","archived":false,"fork":false,"pushed_at":"2024-02-26T15:42:27.000Z","size":240,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:15:02.256Z","etag":null,"topics":["api","apis","class-libraries","class-library","cpu","disk","dotnet","drive","hardware","libr","libraries","netframework","ram","stress","stress-test","stress-testing","testing-tools","vb-net","vbnet","windows"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElektroStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ElektroStudios","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"polar":null,"custom":"https://codecanyon.net/item/elektrokit-class-library-for-net/19260282"}},"created_at":"2019-02-19T14:45:29.000Z","updated_at":"2024-02-26T04:46:32.000Z","dependencies_parsed_at":"2024-02-26T05:40:05.651Z","dependency_job_id":"f0b11d2c-7beb-40ea-8562-ad77015bdf18","html_url":"https://github.com/ElektroStudios/Hardware-Stress-API-for-.NET-developers","commit_stats":null,"previous_names":["elektrostudios/hardware-stress-api-for-.net-developers"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ElektroStudios/Hardware-Stress-API-for-.NET-developers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElektroStudios%2FHardware-Stress-API-for-.NET-developers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElektroStudios%2FHardware-Stress-API-for-.NET-developers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElektroStudios%2FHardware-Stress-API-for-.NET-developers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElektroStudios%2FHardware-Stress-API-for-.NET-developers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElektroStudios","download_url":"https://codeload.github.com/ElektroStudios/Hardware-Stress-API-for-.NET-developers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElektroStudios%2FHardware-Stress-API-for-.NET-developers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","apis","class-libraries","class-library","cpu","disk","dotnet","drive","hardware","libr","libraries","netframework","ram","stress","stress-test","stress-testing","testing-tools","vb-net","vbnet","windows"],"created_at":"2024-12-01T13:41:30.757Z","updated_at":"2026-05-01T01:32:15.277Z","avatar_url":"https://github.com/ElektroStudios.png","language":"Visual Basic .NET","funding_links":["https://github.com/sponsors/ElektroStudios","https://codecanyon.net/item/elektrokit-class-library-for-net/19260282","https://github.com/sponsors/ElektroStudios/","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=E4RQEV6YF5NZY"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Common Project Tags:\ncommand-line \nconsole-applications \ndesktop-app \ndesktop-application \ndotnet \ndotnet-core \nnetcore \nnetframework \nnetframework48 \ntool \ntools \nvbnet \nvisualstudio \nwindows \nwindows-app \nwindows-application \nwindows-applications \n --\u003e\n\n# Hardware Stress API for .NET\n\n### A .NET class library written in VB.NET, that provides a mechanism for exerting pressure on hardware resources, such as CPU, RAM, or disk drives.\n\n------------------\n\n## 📝 Requirements\n\n- Visual Studio.\n\n## 🤖 Getting Started\n\nDownload the latest release by clicking [here](https://github.com/ElektroStudios/Hardware-Stress-API-for-.NET-developers/releases/latest).\n\n### Usage\n\nUsage is very simple, there are 3 classes: **CpuStress**, **DiskStress** and **MemoryStress**, which provides an **Allocate()** method to start stressing resources, and a **Deallocate()** method to stop it.\n\n#### CPU Stress\n\n```vbnet\nUsing cpuStress As New CpuStress()\n    Dim percentage As Single = 20.5F 20.50%\n\n    Console.WriteLine(\"Allocating CPU usage percentage...\")\n    cpuStress.Allocate(percentage)\n    Thread.Sleep(TimeSpan.FromSeconds(5))\n    Console.WriteLine(\"Instance CPU average usage percentage: {0:F2}%\", cpuStress.InstanceCpuPercentage)\n    Console.WriteLine(\"Process  CPU average usage percentage: {0:F2}%\", cpuStress.ProcessCpuPercentage)\n    Console.WriteLine()\n\n    Console.WriteLine(\"Deallocating CPU usage percentage...\")\n    cpuStress.Deallocate()\n    Thread.Sleep(TimeSpan.FromSeconds(5))\n    Console.WriteLine(\"Instance CPU average usage percentage: {0:F2}%\", cpuStress.InstanceCpuPercentage)\n    Console.WriteLine(\"Process  CPU average usage percentage: {0:F2}%\", cpuStress.ProcessCpuPercentage)\nEnd Using\n```\n\n![](/Images/CpuStress-Example.png)\n\n#### Memory Stress\n\n```vbnet\nUsing memStress As New MemoryStress()\n    Dim memorySize As Long = 1073741824 1 GB\n\n    Console.WriteLine(\"Allocating physical memory size...\")\n    memStress.Allocate(memorySize)\n    Console.WriteLine(\"Instance Physical Memory Size (in bytes): {0} ({1:F2} GB)\", memStress.InstancePhysicalMemorySize, (memStress.InstancePhysicalMemorySize / 1024.0F ^ 3))\n    Console.WriteLine(\"Process  Physical Memory Size (in bytes): {0} ({1:F2} GB)\", memStress.ProcessPhysicalMemorySize, (memStress.ProcessPhysicalMemorySize / 1024.0F ^ 3))\n    Console.WriteLine()\n    Console.WriteLine(\"Deallocating physical memory size...\")\n    memStress.Deallocate()\n    Console.WriteLine(\"Instance Physical Memory Size (in bytes): {0}\", memStress.InstancePhysicalMemorySize)\n    Console.WriteLine(\"Process  Physical Memory Size (in bytes): {0} ({1:F2} MB)\", memStress.ProcessPhysicalMemorySize, (memStress.ProcessPhysicalMemorySize / 1024.0F ^ 2))\nEnd Using\n```\n\n![](/Images/MemoryStress-Example.png)\n\n#### Disk Stress\n\n```vbnet\nUsing diskStress As New DiskStress()\n    Console.WriteLine(\"Allocating disk I/O read and write operations...\")\n    diskStress.Allocate(fileSize:=1048576) 1 MB\n\n    Thread.Sleep(TimeSpan.FromSeconds(10))\n\n    Console.WriteLine(\"Stopping disk I/O read and write operations...\")\n    diskStress.Deallocate()\n\n    Console.WriteLine()\n    Console.WriteLine(\"Instance disk I/O read operations count: {0} (total of files read)\", diskStress.InstanceReadCount)\n    Console.WriteLine(\"Process  disk I/O read operations count: {0}\", diskStress.ProcessReadCount)\n    Console.WriteLine()\n    Console.WriteLine(\"Instance disk I/O read data (in bytes): {0} ({1:F2} GB)\", diskStress.InstanceReadBytes, (diskStress.InstanceReadBytes / 1024.0F ^ 3))\n    Console.WriteLine(\"Process  disk I/O read data (in bytes): {0} ({1:F2} GB)\", diskStress.ProcessReadBytes, (diskStress.ProcessReadBytes / 1024.0F ^ 3))\n    Console.WriteLine()\n    Console.WriteLine(\"Instance disk I/O write operations count: {0} (total of files written)\", diskStress.InstanceWriteCount)\n    Console.WriteLine(\"Process  disk I/O write operations count: {0}\", diskStress.ProcessWriteCount)\n    Console.WriteLine()\n    Console.WriteLine(\"Instance disk I/O written data (in bytes): {0} ({1:F2} GB)\", diskStress.InstanceWriteBytes, (diskStress.InstanceWriteBytes / 1024.0F ^ 3))\n    Console.WriteLine(\"Process  disk I/O written data (in bytes): {0} ({1:F2} GB)\", diskStress.ProcessWriteBytes, (diskStress.ProcessWriteBytes / 1024.0F ^ 3))\nEnd Using\n```\n\n![](/Images/DiskStress-Example.png)\n\n## ⚠️ Disclaimer:\n\nThis Work (the repository and the content provided in) is provided \"as is\", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Work or the use or other dealings in the Work.\n\n## 💪 Contributing\n\nYour contribution is highly appreciated!. If you have any ideas, suggestions, or encounter issues, feel free to open an issue by clicking [here](https://github.com/ElektroStudios/Hardware-Stress-API-for-.NET-developers/issues/new/choose). \n\nYour input helps make this Work better for everyone. Thank you for your support! 🚀\n\n## 💰 Beyond Contribution \n\nThis work is distributed for educational purposes and without any profit motive. However, if you find value in my efforts and wish to support and motivate my ongoing work, you may consider contributing financially through the following options:\n\n\u003cbr\u003e\u003c/br\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/Images/github_circle.png\" height=100\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e__________________\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eBecoming my sponsor on Github:\u003c/h3\u003e\n\u003cp align=\"center\"\u003eYou can show me your support by clicking \u003ca href=\"https://github.com/sponsors/ElektroStudios/\"\u003ehere\u003c/a\u003e, \u003cbr align=\"center\"\u003econtributing any amount you prefer, and unlocking rewards!\u003c/br\u003e\u003c/p\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/Images/paypal_circle.png\" height=100\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e__________________\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eMaking a Paypal Donation:\u003c/h3\u003e\n\u003cp align=\"center\"\u003eYou can donate to me any amount you like via Paypal by clicking \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=E4RQEV6YF5NZY\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/Images/envato_circle.png\" height=100\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e__________________\u003c/p\u003e\n\u003ch3 align=\"center\"\u003ePurchasing software of mine at Envato's Codecanyon marketplace:\u003c/h3\u003e\n\u003cp align=\"center\"\u003eIf you are a .NET developer, you may want to explore '\u003cb\u003eDevCase Class Library for .NET\u003c/b\u003e', \u003cbr align=\"center\"\u003ea huge set of APIs that I have on sale. Check out the product by clicking \u003ca href=\"https://codecanyon.net/item/elektrokit-class-library-for-net/19260282\"\u003ehere\u003c/a\u003e\u003c/br\u003e\u003cbr align=\"center\"\u003e\u003ci\u003eIt also contains all piece of reusable code that you can find across the source code of my open source works.\u003c/i\u003e\u003c/p\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n\u003ch2 align=\"center\"\u003e\u003cu\u003eYour support means the world to me! Thank you for considering it!\u003c/u\u003e 👍\u003c/h2\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felektrostudios%2Fhardware-stress-api-for-.net-developers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felektrostudios%2Fhardware-stress-api-for-.net-developers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felektrostudios%2Fhardware-stress-api-for-.net-developers/lists"}