diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/linda_perf.lua | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/linda_perf.lua b/tests/linda_perf.lua index 8fa8242..fa40bcb 100644 --- a/tests/linda_perf.lua +++ b/tests/linda_perf.lua | |||
| @@ -94,12 +94,7 @@ local function ziva1( preloop, loop, batch) | |||
| 94 | print( "stored " .. l:count( "key") .. " items in the linda before starting consumer lane") | 94 | print( "stored " .. l:count( "key") .. " items in the linda before starting consumer lane") |
| 95 | local lane | 95 | local lane |
| 96 | if batch > 0 then | 96 | if batch > 0 then |
| 97 | if l.batched then | 97 | lane = lane_gobbler_gen( l, top, batch) |
| 98 | lane = lane_gobbler_gen( l, top, batch) | ||
| 99 | else | ||
| 100 | print "no batch support in this version of Lanes" | ||
| 101 | lane = lane_eater_gen( l, top) | ||
| 102 | end | ||
| 103 | else | 98 | else |
| 104 | lane = lane_eater_gen( l, top) | 99 | lane = lane_eater_gen( l, top) |
| 105 | end | 100 | end |
| @@ -131,7 +126,7 @@ end | |||
| 131 | 126 | ||
| 132 | if true then | 127 | if true then |
| 133 | do | 128 | do |
| 134 | TEST1 = TEST1 or 1000 | 129 | TEST1 = TEST1 or 1000 -- how many tests do we run? |
| 135 | PREFILL1 = PREFILL1 or 10000 | 130 | PREFILL1 = PREFILL1 or 10000 |
| 136 | FILL1 = FILL1 or 2000000 | 131 | FILL1 = FILL1 or 2000000 |
| 137 | 132 | ||
| @@ -213,7 +208,7 @@ end | |||
| 213 | 208 | ||
| 214 | if true then | 209 | if true then |
| 215 | do | 210 | do |
| 216 | TEST2 = TEST2 or 1000 | 211 | TEST2 = TEST2 or 1000 -- how many tests do we run? |
| 217 | PREFILL2 = PREFILL2 or 0 | 212 | PREFILL2 = PREFILL2 or 0 |
| 218 | FILL2 = FILL2 or 4000000 | 213 | FILL2 = FILL2 or 4000000 |
| 219 | 214 | ||
