Use the following command to run the benchmarks:
$ go test -bench .
To limit the number of used CPU cores append -cpu=<number>
argument to the above command.
This document contains some benchmark results obtained on a cloud VM.
The following results were obtained on a GCP e2-highcpu-32 VM with 32 vCPUs (Intel Haswell), 32 GB memory, Ubuntu 20.04, Go 1.16.5.
Concurrent incs/decs, a value read on each 10,000 modificationThe following results were obtained on a GCP e2-highcpu-32 VM with 32 vCPUs (Intel Haswell), 32 GB memory, Ubuntu 20.04, Go 1.16.5.
1M entries with warm-up, 99% Gets, 0.5% Stores, 0.5% DeletesThe following results were obtained on a GCP e2-highcpu-32 VM with 32 vCPUs (Intel Haswell), 32 GB memory, Ubuntu 20.04, Go 1.16.5.
Concurrent producers and consumers (1:1), queue/channel size 1,000, no workThe following results were obtained on a GCP e2-highcpu-32 VM with 32 vCPUs (Intel Haswell), 32 GB memory, Ubuntu 20.04, Go 1.16.5.
Reader locks only, no work in the critical section