Adding make-work processing function for Java-Scala performance comparisons