Commits

Eric Roshan Eisner committed 8641918 Draft

add parse benchmark

Comments (0)

Files changed (1)

 		}
 	}
 }
+
+func BenchmarkParse(b *testing.B) {
+	input := "10mW*(1h+20min+33s+250ms) + (25mN*10km) - 30J"
+	for i := 0; i < b.N; i++ {
+		out, _ := Parse(input)
+		out.String()
+	}
+}