automerge-benchmark
provides a benchmark for automerge.
Separated from automerge
library to avoid burdening automerge
with the size
of the data set files.
See https://github.com/savaki/automerge.
go run main.go
applying testdata/sample.json (4470915 bytes)
25000: 55640 bytes, 7.4 µs/op
50000: 112304 bytes, 7.5 µs/op
75000: 168763 bytes, 8.1 µs/op
100000: 225596 bytes, 8.8 µs/op
125000: 281101 bytes, 8.7 µs/op
150000: 337149 bytes, 8.5 µs/op
175000: 393577 bytes, 9.6 µs/op
200000: 450640 bytes, 9.7 µs/op
225000: 508737 bytes, 10.5 µs/op
250000: 565644 bytes, 10.4 µs/op
edits: 259778
bytes: 588102
elapsed: 2.328s
automerge-benchmark
can also be used to calculate the storage size for an arbitrary text file.
All operations would be considered sequential writes.
go run main.go --file testdata/teatro_massimo_bellini.txt
applying testdata/teatro_massimo_bellini.txt (2342 bytes)
edits: 2336
bytes: 4870
elapsed: 22ms