M convert/convert_test.go => convert/convert_test.go +2 -0
@@ 94,6 94,7 @@ func TestImageFile2ASCIIString(t *testing.T) {
}
+// BenchmarkBigImage2ASCIIMatrix benchmark convert big image to ascii
func BenchmarkBigImage2ASCIIMatrix(b *testing.B) {
convertOptions := DefaultOptions
convertOptions.FitScreen = false
@@ 106,6 107,7 @@ func BenchmarkBigImage2ASCIIMatrix(b *testing.B) {
}
}
+// BenchmarkSmallImage2ASCIIMatrix benchmark convert small image to ascii
func BenchmarkSmallImage2ASCIIMatrix(b *testing.B) {
convertOptions := DefaultOptions
convertOptions.FitScreen = false
M convert/resize_test.go => convert/resize_test.go +2 -1
@@ 161,7 161,7 @@ func ExampleScaleImage() {
// output: 200 100
}
-// BenchmarkScaleImage benchmark scale image test scale image
+// BenchmarkScaleImage benchmark scale big image
func BenchmarkScaleBigImage(b *testing.B) {
imageFilePath := "testdata/cat_2000x1500.jpg"
img, err := OpenImageFile(imageFilePath)
@@ 180,6 180,7 @@ func BenchmarkScaleBigImage(b *testing.B) {
}
}
+// BenchmarkScaleSmallImage benchmark scale small image
func BenchmarkScaleSmallImage(b *testing.B) {
imageFilePath := "testdata/husky_200x200.jpg"
img, err := OpenImageFile(imageFilePath)