Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1008 Bytes

README.md

File metadata and controls

52 lines (33 loc) · 1008 Bytes

benchmarks

create manifest

Benchmarks the traversal of the entire object graph from HEAD backwards.

$ go run create-manifest.go <repo path 1> [optional repo path 2]

To unpack a repo's packfiles (for comparison testing):

$ mv ./.git/objects/pack/*.pack ../
$ rm ./.git/objects/pack/*.idx
$ cat ../<whatever>.pack | git unpack-objects

p2p raw transfer

Benchmarks the transfer of a large chunk of raw data over a libp2p stream with no processing at either end of the connection.

Run the server:

$ go run p2p-raw-transfer.go

The server will spit out a list of multiaddresses that it's listening on.

Run the client:

$ go run p2p-raw-transfer.go <server multiaddress>

net raw transfer

Benchmarks the transfer of a large chunk of raw data over a simple TCP stream with no processing at either end of the connection.

Run the server:

$ go run net-raw-transfer.go

Run the client:

$ go run net-raw-transfer.go <server IP>:9991