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 | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | heuristica | 3322 |
| 10 | maroonrk | 3312 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 133 |
| 9 | maroonrk | 132 |
| 10 | Proof_by_QED | 131 |
|
rmn
|
16 years ago,
show (+1)
#
|
rmn
|
16 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
|
16 years ago,
show
#
|
|
merkator
|
16 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
|
16 years ago,
show (+1)
#
|
|
ivan.popelyshev
|
16 years ago,
hide
#
|
0
Write a TCL script :)
→
Reply
|
|
merkator
|
16 years ago,
show
#
|
|
merkator
|
16 years ago,
hide
#
^
|
+1
:) Ok.
→
Reply
|
| Name |
|---|


