fix: remove lfs to fix bill issue (#919)

This commit is contained in:
suxb201 2025-01-20 19:20:29 +08:00 committed by GitHub
parent 45ce483ab6
commit 79fafb5116
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 35 deletions

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
*.rdb filter=lfs diff=lfs merge=lfs -text
internal/rdb/dump.rdb filter=lfs diff=lfs merge=lfs -text

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:852c652352e4ac590e4002b42849c82a4bae3c962cce5c0f774dc132c3436058
size 54480930

View File

@ -1,30 +0,0 @@
package rdb
import (
"context"
"testing"
"RedisShake/internal/entry"
)
// BenchmarkParseRDB is a benchmark for ParseRDB
// The baseline is "20 350030327 ns/op 213804114 B/op 1900715 allocs/op"
func BenchmarkParseRDB(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
tempChan := make(chan *entry.Entry, 1024)
updateFunc := func(offset int64) {
}
b.N = 20
for i := 0; i < b.N; i++ {
loader := NewLoader("rdb", updateFunc, "./dump.rdb", tempChan)
go func() {
for temp := range tempChan {
print(temp.CmdName)
}
}()
loader.ParseRDB(context.Background())
}
}