add performance tests. the variable LIB_TYPE_WORK has to be used (0 for classic img, 1 for performance). Cleaning still in progress