Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Remove old ipldpinner that has been replaced by dspinner #7

Merged
merged 1 commit into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions dspinner/pin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
blockstore "github.com/ipfs/go-ipfs-blockstore"
offline "github.com/ipfs/go-ipfs-exchange-offline"
ipfspin "github.com/ipfs/go-ipfs-pinner"
"github.com/ipfs/go-ipfs-pinner/ipldpinner"
util "github.com/ipfs/go-ipfs-util"
ipld "github.com/ipfs/go-ipld-format"
logging "github.com/ipfs/go-log"
Expand Down Expand Up @@ -951,19 +950,11 @@ func BenchmarkNthPin(b *testing.B) {
if err != nil {
panic(err.Error())
}
pinnerIPLD, err := ipldpinner.New(dstore, dserv, dserv)
if err != nil {
panic(err.Error())
}

for count := 1000; count <= 10000; count += 1000 {
b.Run(fmt.Sprint("PinDS-", count), func(b *testing.B) {
benchmarkNthPin(b, count, pinner, dserv)
})

b.Run(fmt.Sprint("PinIPLD-", count), func(b *testing.B) {
benchmarkNthPin(b, count, pinnerIPLD, dserv)
})
}
}

Expand Down Expand Up @@ -1011,15 +1002,6 @@ func BenchmarkNPins(b *testing.B) {
}
benchmarkNPins(b, count, pinner, dserv)
})

b.Run(fmt.Sprint("PinIPLD-", count), func(b *testing.B) {
dstore, dserv := makeStore()
pinner, err := ipldpinner.New(dstore, dserv, dserv)
if err != nil {
panic(err.Error())
}
benchmarkNPins(b, count, pinner, dserv)
})
}
}

Expand Down Expand Up @@ -1061,15 +1043,6 @@ func BenchmarkNUnpins(b *testing.B) {
}
benchmarkNUnpins(b, count, pinner, dserv)
})

b.Run(fmt.Sprint("UninIPLD-", count), func(b *testing.B) {
dstore, dserv := makeStore()
pinner, err := ipldpinner.New(dstore, dserv, dserv)
if err != nil {
panic(err.Error())
}
benchmarkNUnpins(b, count, pinner, dserv)
})
}
}

Expand Down Expand Up @@ -1111,15 +1084,6 @@ func BenchmarkPinAll(b *testing.B) {
}
benchmarkPinAll(b, count, pinner, dserv)
})

b.Run(fmt.Sprint("PinAllIPLD-", count), func(b *testing.B) {
dstore, dserv := makeStore()
pinner, err := ipldpinner.New(dstore, dserv, dserv)
if err != nil {
panic(err.Error())
}
benchmarkPinAll(b, count, pinner, dserv)
})
}
}

Expand Down
Loading