Skip to content

Commit 4d04849

Browse files
author
Tyler Burdsall
authored
Merge pull request #14 from iamtheburd/update-documentation
Update documentation
2 parents 4e0ba4b + 744fb1d commit 4d04849

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Alternatively, if you need support for larger sets of data (and have Boost insta
124124

125125
6. Place the resulting `combigen.exe` wherever you desire
126126

127+
7. **Note:** Do not use PowerShell to execute `combigen.exe`. For whatever reason, PowerShell completely bogs down execution time. It is better to use `cmd` instead.
128+
127129

128130
## Usage
129131

@@ -279,14 +281,14 @@ Each iteration of a test would time the amount of time it takes to generate *n*
279281

280282
The following tests were performed on a Lenovo ThinkPad T460 with the following specs:
281283

282-
* Windows 7 Enterprise
284+
* Windows 10 Enterprise
283285
* 256GB SSD w/full disk encryption
284286
* 8GB Ram
285287
* Intel Core i5 - 6300U @ 2.40GHz
286288

287289
The environment was tested with the following:
288290

289-
* Compiled with Visual Studio Developer Tools 2017 with the compile flags listed above
291+
* Compiled with Visual Studio Developer Tools 2017 x64 with the compile flags listed above
290292
* Git Bash as a shell to utilize the UNIX `time` function
291293
* Each iteration was generated using the command `time ./combigen.exe -i example_data/combinations.json -r "$n" # amount of random combinations > output.txt`
292294

@@ -300,9 +302,9 @@ The results from the test were graphed:
300302

301303
#### Conclusion
302304

303-
Based on the results above, Performance Mode will only start to offer real benefits when the amount of combinations is quite large. However, this should only be used when the computer can truly handle storing all of these combinations in RAM. Ultimately, it boils down to two factors:
305+
Based on the results above, Performance Mode will only start to offer real benefits when the amount of combinations is quite large, but the net difference still ends up being negligible. Performance mode should only be used when the computer can truly handle storing all of these combinations in RAM. Ultimately, it boils down to two factors:
304306

305-
* If you can spare time and don't want to bog down your machine (or the amount of generated combinations is small), stick with the default Memory Mode
307+
* If you can spare time and don't want to bog down your machine (or the amount of generated combinations is small), stick with the default Memory Mode.
306308
* If you have a well-spec'd machine and can sacrifice the RAM when generating a large amount of combinations, choose Performance Mode.
307309

308310
Regardless, a large amount of combinations requires a large amount of disk space, so keep this into account when generating data.
-8.79 KB
Loading

performance_tests/test_memory_mode

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3-
for amount in 100000 500000 1000000 1500000 2000000 2500000 3000000
3+
for amount in 1000 10000 100000 1000000 5000000 10000000
44
do
5+
echo "$amount";
56
for i in {1..5}
67
do
7-
echo "$amount - $i";
8-
time ./combigen.exe -i example_data/combinations.json -r "$amount" -k > output.txt
9-
echo
8+
x=`(time ./combigen.exe -i example_data/combinations.json -r $amount > output.txt) 2>&1 | grep real | cut -f2`
9+
echo $x
1010
done
11+
echo
1112
done
1213
rm output.txt
1314

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
22

3-
for amount in 100000 500000 1000000 1500000 2000000 2500000 3000000
3+
for amount in 1000 10000 100000 1000000 5000000 10000000
44
do
5+
echo "$amount";
56
for i in {1..5}
67
do
7-
echo "$amount - $i";
8-
time ./combigen.exe -i example_data/combinations.json -r "$amount" -k -p > output.txt
9-
echo
8+
x=`(time ./combigen.exe -i example_data/combinations.json -r $amount -p > output.txt) 2>&1 | grep real | cut -f2`
9+
echo $x
1010
done
11+
echo
1112
done
1213
rm output.txt
1314

0 commit comments

Comments
 (0)