aboutsummaryrefslogtreecommitdiff
path: root/tests/perftest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/perftest.lua')
-rw-r--r--tests/perftest.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/perftest.lua b/tests/perftest.lua
index 35f522c..35e164d 100644
--- a/tests/perftest.lua
+++ b/tests/perftest.lua
@@ -137,10 +137,10 @@ end
137-- Keep preparation code outside of the performance test 137-- Keep preparation code outside of the performance test
138-- 138--
139local f_even= lanes.gen( "base,coroutine,math,table,io", -- "*" = all 139local f_even= lanes.gen( "base,coroutine,math,table,io", -- "*" = all
140 { priority= PRIO_EVEN }, sieve_lane ) 140 { name = 'auto', priority= PRIO_EVEN }, sieve_lane )
141 141
142local f_odd= lanes.gen( "base,coroutine,math,table,io", -- "*" = all 142local f_odd= lanes.gen( "base,coroutine,math,table,io", -- "*" = all
143 { priority= PRIO_ODD }, sieve_lane ) 143 { name = 'auto', priority= PRIO_ODD }, sieve_lane )
144 144
145io.stderr:write( "*** Counting primes 1.."..M.." "..N.." times ***\n\n" ) 145io.stderr:write( "*** Counting primes 1.."..M.." "..N.." times ***\n\n" )
146 146
@@ -175,9 +175,9 @@ else
175 -- Make sure all lanes finished 175 -- Make sure all lanes finished
176 -- 176 --
177 for i=1,N do 177 for i=1,N do
178 local tmp= t[i]:join() 178 local r, tmp = t[i]:join()
179 -- this assert will trigger if you change M to values below 1000 in order to solve C stack overflow 179 -- this assert will trigger if you change M to values below 1000 in order to solve C stack overflow
180 assert( type(tmp)=="table" and tmp[1]==2 and tmp[168]==997 ) 180 assert( r == true and type(tmp) == "table" and tmp[1] == 2 and tmp[168] == 997 )
181 end 181 end
182end 182end
183 183