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

Commit

Permalink
Merge pull request #7 from ipfs/chore/remove-old-pinner
Browse files Browse the repository at this point in the history
Remove old ipldpinner that has been replaced by dspinner
  • Loading branch information
Stebalien authored May 13, 2021
2 parents d86645f + 14ba637 commit b834183
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 1,851 deletions.
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

0 comments on commit b834183

Please sign in to comment.