nodespecs 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nodespecs-0.0.1/LICENSE +8 -0
- nodespecs-0.0.1/PKG-INFO +83 -0
- nodespecs-0.0.1/README.md +55 -0
- nodespecs-0.0.1/pyproject.toml +34 -0
- nodespecs-0.0.1/setup.cfg +4 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/PKG-INFO +83 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/SOURCES.txt +14 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/dependency_links.txt +1 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/entry_points.txt +2 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/requires.txt +9 -0
- nodespecs-0.0.1/src/nodespecs.egg-info/top_level.txt +1 -0
- nodespecs-0.0.1/src/specs/__init__.py +13 -0
- nodespecs-0.0.1/src/specs/__main__.py +9 -0
- nodespecs-0.0.1/src/specs/cpu-benchmark.py +44 -0
- nodespecs-0.0.1/src/specs/cpuinfo.py +2808 -0
- nodespecs-0.0.1/src/specs/hardware.py +199 -0
nodespecs-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright © 2024 <copyright holders>
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
nodespecs-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nodespecs
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: The specs summarize utilities for computer instance
|
|
5
|
+
Author-email: jinsanity <jinsanityff@gmail.com>
|
|
6
|
+
License: The MIT License (MIT)
|
|
7
|
+
Copyright © 2024 <copyright holders>
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
|
+
Project-URL: Homepage, https://github.com/jinsanity07git/hardwareSummary
|
|
15
|
+
Keywords: cpu,gpu,benchmark
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Requires-Python: >=3.7
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: psutil>=5.9.8
|
|
23
|
+
Requires-Dist: tabulate>=0.9.0
|
|
24
|
+
Requires-Dist: tomli; python_version < "3.11"
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: GPUtil; extra == "dev"
|
|
27
|
+
Requires-Dist: pip-tools; extra == "dev"
|
|
28
|
+
|
|
29
|
+
# hardwareSummary
|
|
30
|
+
Extracting and Fetching all system and hardware information such as os details, CPU and GPU information, disk and network usage in Python using platform, psutil and gputil libraries.
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
!git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```cmd
|
|
38
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
sudo apt upgrade
|
|
44
|
+
sudo apt install python3-pip
|
|
45
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python3 hardwareSummary/hardware.py && python3 hardwareSummary/cpu-benchmark.py
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### CPU collection
|
|
51
|
+
|
|
52
|
+
| Brand | CPU | Arch | OS | Benchmarking | Comb | Score |
|
|
53
|
+
| ----------------------------- | ---------------------------------------------- | ------ | ---------- | ------------ | ------------------------------------------------------------ | ----- |
|
|
54
|
+
| TC17<br />TC16 | Intel(R) Core(TM) i9-14900KF | AMD64 | Windows | 15.654 | Core-i9-14900KF | 39.25 |
|
|
55
|
+
| TC14 | 13th Gen Intel(R) Core(TM) i9-13900K | AMD64 | Windows 10 | 12.991 | Core-i9-13900K | 38.76 |
|
|
56
|
+
| Dell Precision 3561 | 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz | AMD64 | Windows | 23.852 | Core-i7-11800H | 13.47 |
|
|
57
|
+
| TC07 | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz | AMD64 | Windows | 26.723 | Core-i7-9700K | 9.45 |
|
|
58
|
+
| WUYING: 8 vCPU / 16 GiB Linux | Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz | x86_64 | Linux | 33.572 | [Xeon-Platinum-8163](https://versus.com/en/intel-xeon-gold-6126-vs-intel-xeon-platinum-8168) | |
|
|
59
|
+
| TC03<br />TC11 | Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz | AMD64 | Window | 34.612 | Xeon-Gold-6248R | 23.26 |
|
|
60
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | x86_64 | Linux | 38.685 | [Xeon-Gold-6126](https://technical.city/en/cpu/Xeon-Gold-6126) | 12.21 |
|
|
61
|
+
| TC01 | Intel(R) Xeon(R) CPU E5-2643 v4 @ 3.40GHz | AMD64 | Windows | 39.258 | Xeon-E5-2643-v4 | 7.62 |
|
|
62
|
+
| google colab free tier | Intel(R) Xeon(R) CPU @ 2.20GHz | x86_64 | Linux | 43.078 | | |
|
|
63
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | AMD64 | Windows | 62.969 | | |
|
|
64
|
+
| Oracle 1G-1G-0.5Gbps | AMD EPYC 7551 32-Core Processor | x86_64 | Linux | 98.732 | EPYC-7551 | 14.67 |
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### GPU collection
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
| id | name | total memory | Synthetic benchmark | CUDA API |
|
|
75
|
+
| ----- | ---------------------- | ------------ | ------------------- | -------- |
|
|
76
|
+
| colab | Tesla T4 | 15360.0MB | 28.16 | 70627 |
|
|
77
|
+
| dell | NVIDIA T600 Laptop GPU | 4096.0MB | 16.69 | 26600 |
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Performance source
|
|
82
|
+
|
|
83
|
+
* https://technical.city/en/video/Tesla-T4-vs-T600
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# hardwareSummary
|
|
2
|
+
Extracting and Fetching all system and hardware information such as os details, CPU and GPU information, disk and network usage in Python using platform, psutil and gputil libraries.
|
|
3
|
+
|
|
4
|
+
```
|
|
5
|
+
!git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```cmd
|
|
10
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sudo apt upgrade
|
|
16
|
+
sudo apt install python3-pip
|
|
17
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python3 hardwareSummary/hardware.py && python3 hardwareSummary/cpu-benchmark.py
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### CPU collection
|
|
23
|
+
|
|
24
|
+
| Brand | CPU | Arch | OS | Benchmarking | Comb | Score |
|
|
25
|
+
| ----------------------------- | ---------------------------------------------- | ------ | ---------- | ------------ | ------------------------------------------------------------ | ----- |
|
|
26
|
+
| TC17<br />TC16 | Intel(R) Core(TM) i9-14900KF | AMD64 | Windows | 15.654 | Core-i9-14900KF | 39.25 |
|
|
27
|
+
| TC14 | 13th Gen Intel(R) Core(TM) i9-13900K | AMD64 | Windows 10 | 12.991 | Core-i9-13900K | 38.76 |
|
|
28
|
+
| Dell Precision 3561 | 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz | AMD64 | Windows | 23.852 | Core-i7-11800H | 13.47 |
|
|
29
|
+
| TC07 | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz | AMD64 | Windows | 26.723 | Core-i7-9700K | 9.45 |
|
|
30
|
+
| WUYING: 8 vCPU / 16 GiB Linux | Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz | x86_64 | Linux | 33.572 | [Xeon-Platinum-8163](https://versus.com/en/intel-xeon-gold-6126-vs-intel-xeon-platinum-8168) | |
|
|
31
|
+
| TC03<br />TC11 | Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz | AMD64 | Window | 34.612 | Xeon-Gold-6248R | 23.26 |
|
|
32
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | x86_64 | Linux | 38.685 | [Xeon-Gold-6126](https://technical.city/en/cpu/Xeon-Gold-6126) | 12.21 |
|
|
33
|
+
| TC01 | Intel(R) Xeon(R) CPU E5-2643 v4 @ 3.40GHz | AMD64 | Windows | 39.258 | Xeon-E5-2643-v4 | 7.62 |
|
|
34
|
+
| google colab free tier | Intel(R) Xeon(R) CPU @ 2.20GHz | x86_64 | Linux | 43.078 | | |
|
|
35
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | AMD64 | Windows | 62.969 | | |
|
|
36
|
+
| Oracle 1G-1G-0.5Gbps | AMD EPYC 7551 32-Core Processor | x86_64 | Linux | 98.732 | EPYC-7551 | 14.67 |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### GPU collection
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
| id | name | total memory | Synthetic benchmark | CUDA API |
|
|
47
|
+
| ----- | ---------------------- | ------------ | ------------------- | -------- |
|
|
48
|
+
| colab | Tesla T4 | 15360.0MB | 28.16 | 70627 |
|
|
49
|
+
| dell | NVIDIA T600 Laptop GPU | 4096.0MB | 16.69 | 26600 |
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Performance source
|
|
54
|
+
|
|
55
|
+
* https://technical.city/en/video/Tesla-T4-vs-T600
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# pyproject.toml
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools>=61.0.0", "wheel"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "nodespecs"
|
|
9
|
+
version = "0.0.1"
|
|
10
|
+
description = "The specs summarize utilities for computer instance"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
authors = [{ name = "jinsanity", email = "jinsanityff@gmail.com" }]
|
|
13
|
+
license = { file = "LICENSE" }
|
|
14
|
+
classifiers = [
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Programming Language :: Python",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
]
|
|
19
|
+
keywords = ["cpu", "gpu", "benchmark"]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"psutil >= 5.9.8",
|
|
22
|
+
"tabulate >= 0.9.0",
|
|
23
|
+
'tomli; python_version < "3.11"',
|
|
24
|
+
]
|
|
25
|
+
requires-python = ">=3.7"
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
dev = ["GPUtil","pip-tools"]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/jinsanity07git/hardwareSummary"
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
realpython = "specs.__main__:main"
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nodespecs
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: The specs summarize utilities for computer instance
|
|
5
|
+
Author-email: jinsanity <jinsanityff@gmail.com>
|
|
6
|
+
License: The MIT License (MIT)
|
|
7
|
+
Copyright © 2024 <copyright holders>
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
|
+
Project-URL: Homepage, https://github.com/jinsanity07git/hardwareSummary
|
|
15
|
+
Keywords: cpu,gpu,benchmark
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Requires-Python: >=3.7
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: psutil>=5.9.8
|
|
23
|
+
Requires-Dist: tabulate>=0.9.0
|
|
24
|
+
Requires-Dist: tomli; python_version < "3.11"
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: GPUtil; extra == "dev"
|
|
27
|
+
Requires-Dist: pip-tools; extra == "dev"
|
|
28
|
+
|
|
29
|
+
# hardwareSummary
|
|
30
|
+
Extracting and Fetching all system and hardware information such as os details, CPU and GPU information, disk and network usage in Python using platform, psutil and gputil libraries.
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
!git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```cmd
|
|
38
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python hardwareSummary/hardware.py && python hardwareSummary/cpu-benchmark.py
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
sudo apt upgrade
|
|
44
|
+
sudo apt install python3-pip
|
|
45
|
+
git clone https://github.com/jinsanity07git/hardwareSummary && python3 hardwareSummary/hardware.py && python3 hardwareSummary/cpu-benchmark.py
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### CPU collection
|
|
51
|
+
|
|
52
|
+
| Brand | CPU | Arch | OS | Benchmarking | Comb | Score |
|
|
53
|
+
| ----------------------------- | ---------------------------------------------- | ------ | ---------- | ------------ | ------------------------------------------------------------ | ----- |
|
|
54
|
+
| TC17<br />TC16 | Intel(R) Core(TM) i9-14900KF | AMD64 | Windows | 15.654 | Core-i9-14900KF | 39.25 |
|
|
55
|
+
| TC14 | 13th Gen Intel(R) Core(TM) i9-13900K | AMD64 | Windows 10 | 12.991 | Core-i9-13900K | 38.76 |
|
|
56
|
+
| Dell Precision 3561 | 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz | AMD64 | Windows | 23.852 | Core-i7-11800H | 13.47 |
|
|
57
|
+
| TC07 | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz | AMD64 | Windows | 26.723 | Core-i7-9700K | 9.45 |
|
|
58
|
+
| WUYING: 8 vCPU / 16 GiB Linux | Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz | x86_64 | Linux | 33.572 | [Xeon-Platinum-8163](https://versus.com/en/intel-xeon-gold-6126-vs-intel-xeon-platinum-8168) | |
|
|
59
|
+
| TC03<br />TC11 | Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz | AMD64 | Window | 34.612 | Xeon-Gold-6248R | 23.26 |
|
|
60
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | x86_64 | Linux | 38.685 | [Xeon-Gold-6126](https://technical.city/en/cpu/Xeon-Gold-6126) | 12.21 |
|
|
61
|
+
| TC01 | Intel(R) Xeon(R) CPU E5-2643 v4 @ 3.40GHz | AMD64 | Windows | 39.258 | Xeon-E5-2643-v4 | 7.62 |
|
|
62
|
+
| google colab free tier | Intel(R) Xeon(R) CPU @ 2.20GHz | x86_64 | Linux | 43.078 | | |
|
|
63
|
+
| JVM | Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz | AMD64 | Windows | 62.969 | | |
|
|
64
|
+
| Oracle 1G-1G-0.5Gbps | AMD EPYC 7551 32-Core Processor | x86_64 | Linux | 98.732 | EPYC-7551 | 14.67 |
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### GPU collection
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
| id | name | total memory | Synthetic benchmark | CUDA API |
|
|
75
|
+
| ----- | ---------------------- | ------------ | ------------------- | -------- |
|
|
76
|
+
| colab | Tesla T4 | 15360.0MB | 28.16 | 70627 |
|
|
77
|
+
| dell | NVIDIA T600 Laptop GPU | 4096.0MB | 16.69 | 26600 |
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Performance source
|
|
82
|
+
|
|
83
|
+
* https://technical.city/en/video/Tesla-T4-vs-T600
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/nodespecs.egg-info/PKG-INFO
|
|
5
|
+
src/nodespecs.egg-info/SOURCES.txt
|
|
6
|
+
src/nodespecs.egg-info/dependency_links.txt
|
|
7
|
+
src/nodespecs.egg-info/entry_points.txt
|
|
8
|
+
src/nodespecs.egg-info/requires.txt
|
|
9
|
+
src/nodespecs.egg-info/top_level.txt
|
|
10
|
+
src/specs/__init__.py
|
|
11
|
+
src/specs/__main__.py
|
|
12
|
+
src/specs/cpu-benchmark.py
|
|
13
|
+
src/specs/cpuinfo.py
|
|
14
|
+
src/specs/hardware.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
specs
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
from importlib import resources
|
|
3
|
+
try:
|
|
4
|
+
import tomllib
|
|
5
|
+
except ModuleNotFoundError:
|
|
6
|
+
import tomli as tomllib
|
|
7
|
+
|
|
8
|
+
# Version of the realpython-reader package
|
|
9
|
+
__version__ = "0.0.1"
|
|
10
|
+
|
|
11
|
+
# Read URL of the Real Python feed from config file
|
|
12
|
+
# _cfg = tomllib.loads(resources.read_text("reader", "config.toml"))
|
|
13
|
+
# URL = _cfg["feed"]["url"]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/python3
|
|
2
|
+
#Python CPU Benchmark by Alex Dedyura (Windows, macOS, Linux)
|
|
3
|
+
#https://github.com/alexdedyura/cpu-benchmark
|
|
4
|
+
|
|
5
|
+
import time
|
|
6
|
+
import platform
|
|
7
|
+
import cpuinfo
|
|
8
|
+
|
|
9
|
+
print('Python CPU Benchmark by Alex Dedyura (Windows, macOS(Darwin), Linux)')
|
|
10
|
+
print('CPU: ' + cpuinfo.get_cpu_info().get('brand_raw', "Unknown"))
|
|
11
|
+
print('Arch: ' + cpuinfo.get_cpu_info().get('arch_string_raw', "Unknown"))
|
|
12
|
+
print('OS: ' + platform.system(), platform.release())
|
|
13
|
+
print('Python: ' + platform.python_version())
|
|
14
|
+
|
|
15
|
+
print('\nBenchmarking: \n')
|
|
16
|
+
|
|
17
|
+
start_benchmark = 10000 # change this if you like (sample: 1000, 5000, etc)
|
|
18
|
+
start_benchmark = int(start_benchmark)
|
|
19
|
+
|
|
20
|
+
repeat_benchmark = 10 # attemps, change this if you like (sample: 3, 5, etc)
|
|
21
|
+
repeat_benchmark = int(repeat_benchmark)
|
|
22
|
+
|
|
23
|
+
average_benchmark = 0
|
|
24
|
+
|
|
25
|
+
for a in range(0,repeat_benchmark):
|
|
26
|
+
|
|
27
|
+
start = time.perf_counter()
|
|
28
|
+
|
|
29
|
+
for i in range(0,start_benchmark):
|
|
30
|
+
for x in range(1,1000):
|
|
31
|
+
3.141592 * 2**x
|
|
32
|
+
for x in range(1,10000):
|
|
33
|
+
float(x) / 3.141592
|
|
34
|
+
for x in range(1,10000):
|
|
35
|
+
float(3.141592) / x
|
|
36
|
+
|
|
37
|
+
end = time.perf_counter()
|
|
38
|
+
duration = (end - start)
|
|
39
|
+
duration = round(duration, 3)
|
|
40
|
+
average_benchmark += duration
|
|
41
|
+
print('Time: ' + str(duration) + 's')
|
|
42
|
+
|
|
43
|
+
average_benchmark = round(average_benchmark / repeat_benchmark, 3)
|
|
44
|
+
print('Average (from {} repeats): {}s'.format(repeat_benchmark, average_benchmark))
|