Closed Ascurius closed 4 months ago
You can benchmark parts using start_timer()
/stop_timer()
: https://mp-spdz.readthedocs.io/en/latest/Compiler.html#module-Compiler.library.start_timer
What are you using for nested loop join? Also note that there are dedicated algorithms for database joining: https://eprint.iacr.org/2024/141
Thank you for the helpful reference to the paper.
Hello,
I recently implemented a variant of sort-merge join and nested-loop join in MP-SPDZ. However, I have noticed that the execution time of sort-merge-join is worse than that of nested-loop join, which should not be the case in theory. I compiled the code with
compile.py -R 64 test.py
and ran the code with./Scripts/ring.sh test
. I assume that this difference is caused by the secure sorting, happening at the start of the sort-merge join, or do you think that there is a different explanantion?My sort-merge join looks like this: