benchmark

This commit is contained in:
Josh Yan
2024-07-02 14:53:54 -07:00
parent a993a3a85c
commit 461c964941
2 changed files with 28 additions and 19 deletions

13
cmd/cmd_test.go Normal file
View File

@@ -0,0 +1,13 @@
package cmd
import (
"testing"
)
func BenchmarkCreateLocalBlob(b *testing.B) {
for i := 0; i < b.N; i++ {
dest := b.TempDir() + "/hi"
createBlobLocal("/Users/joshyan/.ollama/models/blobs/sha256-edd739ebd0b09f4e9345e8dc76d06ec37d08a080246560e57f7f1443fa3e57af", dest)
}
}