From 198562e5ef0e96f438d2758c2b4290cc04a7ec10 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Fri, 9 Aug 2024 13:20:17 +0200 Subject: [PATCH] Add tests --- benches/deferring.luau | 4 +-- docs/public/1221187281139007539.webp | Bin 0 -> 2748 bytes src/init.luau | 38 ++++++++++++++++++--------- test/tests.luau | 2 +- 4 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 docs/public/1221187281139007539.webp diff --git a/benches/deferring.luau b/benches/deferring.luau index fc5990b4..340a9f61 100644 --- a/benches/deferring.luau +++ b/benches/deferring.luau @@ -27,7 +27,7 @@ do TITLE "deferring" for i = 1, START(N) do world:defer() - for i = 1, 100 do + for i = 1, 10 do local e = world:entity() world:set(e, A, 1) world:set(e, B, 1) @@ -54,7 +54,7 @@ do TITLE "immediate" BENCH("", function() for i = 1, START(N) do - for i = 1, 100 do + for i = 1, 10 do local e = world:entity() world:set(e, A, 1) world:set(e, B, 1) diff --git a/docs/public/1221187281139007539.webp b/docs/public/1221187281139007539.webp new file mode 100644 index 0000000000000000000000000000000000000000..54499a84130ff68e7b6a11d9d7e310ccf88e093d GIT binary patch literal 2748 zcmV;t3Pbf$Nk&Gr3IG6CMM6+kP&iDe3IG5vf50CQDl69it(P3_e-&Y7W@ct)y6^W5 zE+HpX@9+1%_n+%RuMQ`QB!leJRq}>W_K9X@UI5(FWDz+qP}<+qP}nwrxyAf+X3dZOy{A{oc22+qP}nwr$(CZL_OSydgXakR+S7 zt!LY|ZQHhO+qP}nwr$(Czs-G8g4;%tB+;|?<*LcfjOzV?pUR+&XEG@>Q^7gFL%>@t z-X}MQc%QAujps{p?MFai7uSU+x{4A~;6B+xMh{|FPn zXP`;r$2$3a0RM>@KuE)(h6GH_&4mQ;MM-V7y&dqsn27_nuCC>lM*;$2qu~kQw%Aev z*zgVu1!X@WW5<8f@6x&2f0?KCzhPSYA0jKckLYLlY-1;WB1dZdujD;M$E1vz@BYQMT_Dv&5SKUXWTHyeu$!#w#$-w6(TG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