Created by: dzhwinter
replace scope var lock with concurrent_hashmap.
below tables show the unit_test result. unique_lock means the current develop branch. rwlock refer to replace the unique_lock with a rwlock. PR. https://github.com/PaddlePaddle/Paddle/pull/14896
concurrenthashmap means remove the lock.
unique_lock | rwlock | concurrentmap | |
---|---|---|---|
单线程 | 24.1018 | 24.9717 | 26.2505 |
10线程 | 883.964 | 1236.06 | 820.639 |
time measure unit "ms"