I need to speed up the execution of my code. After I had written the synchronized version of my code, I have measured the execution time. The same I did after I rewrite the code and implemented multiprocessing. I have checked it many times and it seems that there are no bugs. However, the speed gain is insignificant. I expected that it should be several times faster, but it is not. What can be wrong?