Blender Git Loki

Git Commits -> Revision 1324659

Revision 1324659 by Bastien Montagne (master)
June 4, 2019, 21:51 (GMT)
GTests: BLI_task: Add basic tests for BLI_task_parallel_listbase(), and some performances benchmarks.

Nothing special to mention about regression test itself, it basically
mimics the one for `BLI_task_parallel_mempool()`...

Basic performances benchmarks do not tell us much, besides the fact that
for very light processing of listbase, even with 100k items,
single-thread remains an order of magnitude faster than threaded code.
Synchronization is just way too expensive in that case with current
code. This should be partially solvable with much bigger (and
configurable) chunk sizes though (current ones are just ridiculous
for such cases ;) )...

Commit Details:

Full Hash: 1324659dee4981bce37557febb446710547fb646
Parent Commit: 30d9366
Lines Changed: +242, -1

1 Added Path:

/tests/gtests/blenlib/BLI_task_performance_test.cc (+192, -0) (View)

2 Modified Paths:

/tests/gtests/blenlib/BLI_task_test.cc (+49, -1) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021