mirror of
https://github.com/lucish/h265ToJpeg.git
synced 2025-09-27 03:45:59 +08:00
23 lines
395 B
Go
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))
|
|
}
|
|
|
|
}
|