Changeset 14176 for trunk/Ohana/src/opihi/cmd.data/test/queues.sh
- Timestamp:
- Jul 12, 2007, 2:26:24 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/test/queues.sh (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/test/queues.sh
r9359 r14176 21 21 # test queueinit 22 22 macro test1 23 23 $PASS = 1 24 24 queueinit dummy 25 25 queuesize dummy -var N … … 30 30 end 31 31 32 # test queueinit 32 # test queueinit memory 33 33 macro testmem1 34 34 $PASS = 1 35 35 list word -x "ps -p $PID -o rss" 36 36 $startmem = $word:1 … … 54 54 # test queuesize 55 55 macro test2 56 56 $PASS = 1 57 57 queueinit dummy 58 58 queuepush dummy foobar … … 64 64 end 65 65 66 # test queuesize 66 # test queuesize memory 67 67 macro testmem2 68 68 $PASS = 1 69 69 queueinit dummy 70 70 queuepush dummy foobar … … 91 91 # test queuedelete 92 92 macro test3 93 93 $PASS = 1 94 94 queueinit dummy 95 95 queuepush dummy foobar … … 106 106 end 107 107 108 # test queuedelete 108 # test queuedelete memory 109 109 macro testmem3 110 110 $PASS = 1 111 111 list word -x "ps -p $PID -o rss" 112 112 $startmem = $word:1 … … 132 132 # test queuepush / queuepop 133 133 macro test4 134 134 $PASS = 1 135 135 queueinit dummy 136 136 queuepush dummy foobar … … 144 144 # test queuepush / queuepop 145 145 macro test4.1 146 146 $PASS = 1 147 147 queueinit dummy 148 148 queuepush dummy foo1 … … 168 168 end 169 169 170 # test queue delete170 # test queuepush / queuepop memory 171 171 macro testmem4.0 172 172 $PASS = 1 173 173 list word -x "ps -p $PID -o rss" 174 174 $startmem = $word:1 … … 192 192 end 193 193 194 # test queue delete194 # test queuepush / queuepop memory 195 195 macro testmem4.1 196 196 $PASS = 1 197 197 list word -x "ps -p $PID -o rss" 198 198 $startmem = $word:1 … … 216 216 end 217 217 218 # test queue delete218 # test queuepush / queuepop memory 219 219 macro testmem4.2 220 221 list word -x "ps -p $PID -o rss" 222 $startmem = $word:1 223 224 output /dev/null 225 for i 0 10000 226 queueinit dummy 227 queuepush dummy foobar 228 end 229 output stdout 230 231 list word -x "ps -p $PID -o rss" 232 $endmem = $word:1 233 234 if ({$endmem - $startmem} > 10) 235 $PASS = 0 236 echo "growth: {$endmem-$startmem}" 237 echo "kB/loop: {($endmem-$startmem)/10000}" 238 end 239 end 240 241 # test queue delete220 $PASS = 1 221 list word -x "ps -p $PID -o rss" 222 $startmem = $word:1 223 224 output /dev/null 225 for i 0 10000 226 queueinit dummy 227 queuepush dummy foobar 228 end 229 output stdout 230 231 list word -x "ps -p $PID -o rss" 232 $endmem = $word:1 233 234 if ({$endmem - $startmem} > 10) 235 $PASS = 0 236 echo "growth: {$endmem-$startmem}" 237 echo "kB/loop: {($endmem-$startmem)/10000}" 238 end 239 end 240 241 # test queuepush / queuepop memory 242 242 macro testmem4.3 243 243 $PASS = 1 244 244 list word -x "ps -p $PID -o rss" 245 245 $startmem = $word:1 … … 266 266 # test queuepush / queuepop with keys 267 267 macro test5 268 268 $PASS = 1 269 269 queueinit dummy 270 270 queuepush dummy "test 1 word" … … 278 278 end 279 279 280 # test queuepush / queuepop 280 # test queuepush / queuepop with keys 281 281 macro test5.1 282 282 $PASS = 1 283 283 queueinit dummy 284 284 queuepush dummy "test 1 word" … … 292 292 end 293 293 294 # test queuedelete294 # memory test for queuepush / queuepop with keys 295 295 macro testmem5.0 296 296 $PASS = 1 297 297 queueinit dummy 298 298 … … 322 322 end 323 323 324 # test queuedelete324 # memory test for queuepush / queuepop with keys 325 325 macro testmem5.1 326 326 $PASS = 1 327 327 queueinit dummy 328 328 … … 346 346 end 347 347 end 348
Note:
See TracChangeset
for help on using the changeset viewer.
