Added performance test library (adapted from general lib found elsewhere)