Merge branch 'ws/3d2-step' into ws/3d2
This commit is contained in:
commit
b275bdb498
12 files changed
+2154
-2
No files matched your search
@@ -558,3 +558,22 @@ do
|
||||
Webp.encode(img, { effort = 1 })
|
||||
end)
|
||||
end
|
||||
do
|
||||
-- STEP (tools/fixtures/step.py): the largest case, parse and write
|
||||
local Step = require("@formats/cad/step")
|
||||
local SC = require("@tests/gen/step_cases")
|
||||
local big = SC[1]
|
||||
for _, c in SC do
|
||||
if #c.data > #big.data then
|
||||
big = c
|
||||
end
|
||||
end
|
||||
local data = buffer.fromstring(big.data)
|
||||
local cad = assert(Step.decode(Bytes.reader(data)))
|
||||
bench(string.format("step parse (%.1f MB)", #big.data / 1e6), 3, #big.data, function()
|
||||
Step.decode(Bytes.reader(data))
|
||||
end)
|
||||
bench("step write", 3, #big.data, function()
|
||||
Step.encode(cad)
|
||||
end)
|
||||
end
|
||||
Reference in new issue
Block a user