Skip to content

Commit

Permalink
Merge pull request ipfs/go-ipfs-pinner#7 from ipfs/chore/remove-old-p…
Browse files Browse the repository at this point in the history
…inner

Remove old ipldpinner that has been replaced by dspinner

This commit was moved from ipfs/go-ipfs-pinner@b834183
  • Loading branch information
Stebalien committed May 13, 2021
2 parents eda0502 + 259f6af commit ded27d0
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 1,851 deletions.
36 changes: 0 additions & 36 deletions pinning/pinner/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 ded27d0

Please sign in to comment.