Files
h265ToJpeg/convert_test.go
2019-08-16 10:45:44 +08:00

23 lines
395 B
Go

package main
import (
"fmt"
"testing"
)
func BenchmarkConvert(b *testing.B) {
//读取文件
inputFile := "/work/dana_work/gopath/src/github.com/lucish/convert-video/src/huangxiao.h265"
src, err := ReadAll(inputFile)
if err != nil || len(src) == 0 {
fmt.Println(err.Error())
fmt.Println("read file err")
return
}
for i := 0; i < b.N; i++ {
c_h265_to_jpeg(src, len(src))
}
}