diff options
author | Benoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m> | 2013-08-13 08:12:05 +0200 |
---|---|---|
committer | Benoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m> | 2013-08-13 08:12:05 +0200 |
commit | 7f7b29063d2f19a8bc2b229ae9b0ec82ce447cab (patch) | |
tree | 296e407a77e7e7f94add52967fe06e09aa7d58f3 /tests/linda_perf.lua | |
parent | a6f76ba28d7e7e9d2d277a85dfd054cb70c02b69 (diff) | |
download | lanes-3.6.3.tar.gz lanes-3.6.3.tar.bz2 lanes-3.6.3.zip |
version 3.6.3v3.6.3
* lane:cancel(<negative-timeout>) only causes cancel_test() to return
true but won't interrupt execution of the lane during linda operations
* more explicit errors when trying to transfer unknown source functions
(with new configure option verbose_errors)
* default options wrap allocator around a mutex when run by LuaJIT
Diffstat (limited to 'tests/linda_perf.lua')
-rw-r--r-- | tests/linda_perf.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/linda_perf.lua b/tests/linda_perf.lua index be582ce..ebe9eac 100644 --- a/tests/linda_perf.lua +++ b/tests/linda_perf.lua | |||
@@ -84,8 +84,10 @@ local tests = | |||
84 | { 4000000, 0, 21}, | 84 | { 4000000, 0, 21}, |
85 | { 4000000, 0, 44},]] | 85 | { 4000000, 0, 44},]] |
86 | } | 86 | } |
87 | print "tests #1" | ||
87 | for k, v in pairs( tests) do | 88 | for k, v in pairs( tests) do |
88 | local pre, loop, batch = v[1], v[2], v[3] | 89 | local pre, loop, batch = v[1], v[2], v[3] |
90 | print( "testing", pre, loop, batch) | ||
89 | print( pre, loop, batch, "duration = " .. ziva( pre, loop, batch)) | 91 | print( pre, loop, batch, "duration = " .. ziva( pre, loop, batch)) |
90 | end | 92 | end |
91 | 93 | ||
@@ -188,8 +190,11 @@ local tests2 = | |||
188 | { 4000000, 0, 21}, | 190 | { 4000000, 0, 21}, |
189 | { 4000000, 0, 44}, | 191 | { 4000000, 0, 44}, |
190 | } | 192 | } |
193 | |||
194 | print "tests #2" | ||
191 | for k, v in pairs( tests2) do | 195 | for k, v in pairs( tests2) do |
192 | local pre, loop, batch = v[1], v[2], v[3] | 196 | local pre, loop, batch = v[1], v[2], v[3] |
197 | print( "testing", pre, loop, batch) | ||
193 | print( pre, loop, batch, "duration = " .. ziva2( pre, loop, batch)) | 198 | print( pre, loop, batch, "duration = " .. ziva2( pre, loop, batch)) |
194 | end | 199 | end |
195 | 200 | ||