mirror of
https://github.com/lucish/h265ToJpeg.git
synced 2025-10-05 15:36:59 +08:00
delete personal file
This commit is contained in:
22
convert_test.go
Normal file
22
convert_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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))
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user