Today I tried to write a stress test on my solution in Linux (Ubuntu). In Windows I wrote batch file. How should I write a stress test in Linux?
I will be glad if you write any solution.
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | Kevin114514 | 3678 |
| 3 | VivaciousAubergine | 3647 |
| 4 | jiangly | 3582 |
| 5 | strapple | 3515 |
| 6 | tourist | 3473 |
| 7 | Radewoosh | 3418 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | turmax | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
rmn
|
15 years ago,
show (+1)
#
|
rmn
|
15 years ago,
hide
#
|
+4
You can use script written in Bash.
You need to create a file (for example stress.sh), insert script inside and then make it executable from the command line with the following command: chmod +x stress.sh After all you can run it as: ./stress.sh The script stops when output files differ. You can use your own checker instead of diff, it should return exit code 0 if everything is ok and non-0 otherwise. If you need more info on bash syntax you can always use: man bash :)
→
Reply
|
|
merkator
|
15 years ago,
show
#
|
|
merkator
|
15 years ago,
hide
#
^
|
+3
Thanks a lot. I russian version I've already got this answer (to use bash), but your is more useful =)
→
Reply
|
|
ivan.popelyshev
|
15 years ago,
show (+1)
#
|
|
ivan.popelyshev
|
15 years ago,
hide
#
|
0
Write a TCL script :)
→
Reply
|
|
merkator
|
15 years ago,
show
#
|
|
merkator
|
15 years ago,
hide
#
^
|
+1
:) Ok.
→
Reply
|
| Name |
|---|


