Skip to content

Commit

Permalink
added lfu benchs
Browse files Browse the repository at this point in the history
  • Loading branch information
alserov committed May 19, 2024
1 parent d74f619 commit aeb340d
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Goche

### Cache implemented in Go(LRU, LFU(not implemented))
### Cache implemented in Go(LRU, LFU)

## Example

Expand Down Expand Up @@ -42,32 +42,20 @@ BenchmarkLRUSet
BenchmarkLRUSet-12 44247624 27.89 ns/op
```

[//]: # ()
[//]: # (### LFU)
### LFU

[//]: # ()
[//]: # (#### Get)

[//]: # (```text)

[//]: # (cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz)

[//]: # (BenchmarkLFUGet)

[//]: # (BenchmarkLFUGet-12 82427772 14.33 ns/op)

[//]: # (```)

[//]: # ()
[//]: # ()
[//]: # (#### Set)

[//]: # (```text)

[//]: # (cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz)
#### Get
```text
cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
BenchmarkLFUGet
BenchmarkLFUGet-12 76725852 15.04 ns/op
```

[//]: # (BenchmarkLFUSet)

[//]: # (BenchmarkLFUSet-12 998019 1140 ns/op)
#### Set
```text
cpu: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
BenchmarkLFUSet
BenchmarkLFUSet-12 43526202 27.68 ns/op
```

[//]: # (```)

0 comments on commit aeb340d

Please sign in to comment.