Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object TreeToList {
- /* previous definitions omitted for brevity */
- val tree = generateTree((1 to 20).toList)
- def testToListSimple = toListSimple(tree)
- def testToList = toList(tree)
- }
- object toListSimpleTest extends testing.Benchmark {
- def run() { TreeToList.testToListSimple }
- }
- object toListTest extends testing.Benchmark {
- def run() { TreeToList.testToList }
- }
Advertisement
Add Comment
Please, Sign In to add comment