You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using BenchmarkTools, JuliaDB, IndexedTables
function test2()
t = table((id = Int64[], value1 = Float64[], value2 = Int32[]))
for i in 1:100000
IndexedTables.push!(rows(t), (id = i, value1 = 1/i, value2 = Int32(1)))
end
return t
end
@btime test2()
using BenchmarkTools, JuliaDB, IndexedTables
function test1()
t = table((id = Int64[], value1 = Float64[], value2 = Int64[]))
for i in 1:100000
IndexedTables.push!(rows(t), (id = i, value1 = 1/i, value2 = Int64(1)))
end
return t
end
@btime test1()
The text was updated successfully, but these errors were encountered:
test2
is slower thantest1
by a factor of 20:The text was updated successfully, but these errors were encountered: