prometheus/storage/local
Julius Volz 7f5d3c2c29 Fix and improve the fp locker.
Benchmark:
$ go test -bench 'Fingerprint' -test.run 'Fingerprint' -test.cpu=1,2,4

OLD
BenchmarkFingerprintLockerParallel        500000              3618 ns/op
BenchmarkFingerprintLockerParallel-2      100000             12257 ns/op
BenchmarkFingerprintLockerParallel-4      500000             10164 ns/op
BenchmarkFingerprintLockerSerial        10000000               283 ns/op
BenchmarkFingerprintLockerSerial-2      10000000               284 ns/op
BenchmarkFingerprintLockerSerial-4      10000000               288 ns/op

NEW
BenchmarkFingerprintLockerParallel       1000000              1018 ns/op
BenchmarkFingerprintLockerParallel-2     1000000              1164 ns/op
BenchmarkFingerprintLockerParallel-4     2000000               910 ns/op
BenchmarkFingerprintLockerSerial        50000000                56.0 ns/op
BenchmarkFingerprintLockerSerial-2      50000000                47.9 ns/op
BenchmarkFingerprintLockerSerial-4      50000000                54.5 ns/op

Change-Id: I3c65a43822840e7e64c3c3cfe759e1de51272581
2014-11-25 17:07:45 +01:00
..
codable Add an indexing queue and batch the ops. 2014-11-25 17:07:44 +01:00
index Add an indexing queue and batch the ops. 2014-11-25 17:07:44 +01:00
chunk.go More code cleanups. 2014-11-25 17:07:44 +01:00
delta.go More code cleanups. 2014-11-25 17:07:44 +01:00
instrumentation.go Instrument eviction and purge durations. 2014-11-25 17:07:45 +01:00
interface.go Bold changes to concurrency. 2014-11-25 17:07:45 +01:00
locker.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
locker_test.go Fix a few concurrency issues before starting to use the new fp locker. 2014-11-25 17:07:45 +01:00
persistence.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
persistence_test.go Bold changes to concurrency. 2014-11-25 17:07:45 +01:00
preload.go Comment/code cleanup. 2014-11-25 17:07:44 +01:00
series.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
storage.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
storage_test.go Bold changes to concurrency. 2014-11-25 17:07:45 +01:00
test_helpers.go Bold changes to concurrency. 2014-11-25 17:07:45 +01:00