lms benchmark code