2023-06-28 05:29:44 +00:00
|
|
|
# Memory Performance Test
|
|
|
|
|
2023-06-29 19:02:27 +00:00
|
|
|
Small tool to test memory write and read performance.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
Usage: jmemperf [-hV] [-d=NUM] [-i=NUM] [-r=NUM] [-t=NUM]
|
|
|
|
Memory performance measurement tool.
|
|
|
|
-d, --data=NUM Create this much data (MB) pr. row [default: 100]
|
|
|
|
-h, --help Show this help message and exit.
|
|
|
|
-i, --iterations=NUM Iterate this many times [default: 3]
|
|
|
|
-r, --rows=NUM Create this many rows pr. table [default: 10]
|
|
|
|
-t, --tables=NUM Create this many tables [default: 4]
|
|
|
|
-V, --version Print version information and exit.
|
|
|
|
```
|
2023-06-28 08:40:45 +00:00
|
|
|
|
2023-06-28 05:29:44 +00:00
|
|
|
## Examples
|
|
|
|
|
2023-06-29 09:05:45 +00:00
|
|
|
Test with 8GB memory:
|
2023-06-28 05:29:44 +00:00
|
|
|
```shell
|
2023-06-29 09:05:45 +00:00
|
|
|
java -Xms10g -Xmx10g -XX:+AlwaysPreTouch -jar memstress-0.0.1-all.jar -t 8
|
2023-06-28 08:40:45 +00:00
|
|
|
```
|
|
|
|
|
2023-06-29 09:05:45 +00:00
|
|
|
Test with 100GB memory:
|
2023-06-28 08:40:45 +00:00
|
|
|
```shell
|
2023-06-29 09:05:45 +00:00
|
|
|
java -Xms128g -Xmx128g -XX:+AlwaysPreTouch -jar memstress-0.0.1-all.jar -t 100
|
2023-06-28 08:40:45 +00:00
|
|
|
```
|
2023-06-29 19:02:27 +00:00
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
|
|
- Jens Ebbesen for improvements.
|