luau/bench
Arseny Kapoulkine 53e6e4b8f0
Fix mesh-normal-vector benchmark array access (#1514)
mesh-normal-scalar correctly fills sequential values in the output for
triangle cone function, but mesh-normal-vector accidentally reuses the
loop index, which results in writes to every third index of the array
(1, 4, etc.).

This is both slower (as the table turns into a hash map), and incorrect,
especially as we have a scalar version of the benchmark that does the
right thing.

Note: there's a bunch of inefficiencies in the benchmark code that I
have not fixed (around field access mostly, e.g. writing to `v.n` and
then immediately reading it again). These are not ideal for performance,
but they can be valuable to keep as is because this redundancy is common
in real-world code, and it would be nice to see codegen optimizations
eliminating most of that overhead. This one, however, is a straight up
bug, and sparse arrays should not really be the thing this benchmark
hits.
2024-11-11 12:39:09 -08:00
..
gc Fixed the backwards compatible benchmark support library require (#1125) 2023-12-04 12:48:31 -08:00
micro_tests Fixed the backwards compatible benchmark support library require (#1125) 2023-12-04 12:48:31 -08:00
other Sync to upstream/release/615 (#1175) 2024-03-01 10:45:26 -08:00
tests Fix mesh-normal-vector benchmark array access (#1514) 2024-11-11 12:39:09 -08:00
bench.py Sync to upstream/release/648 (#1477) 2024-10-18 10:27:15 -07:00
bench_support.lua Fixed the backwards compatible benchmark support library require (#1125) 2023-12-04 12:48:31 -08:00
color.py Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
influxbench.py Sync to upstream/release/540 (#635) 2022-08-11 14:01:33 -07:00
install.bat Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
install.sh Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
measure_time.py Added multi-os runners for benchmark & implemented luau analyze (#542) 2022-06-24 09:46:29 -07:00
tabulate.py Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00