Skip to content

Commit 09863a2

Browse files
authored
adjusts on README.md
1 parent f7a0b20 commit 09863a2

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

README.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# 🚀 EasyCache - A Fast In-Memory Cache for Go
1+
## 🚀 EasyCache - A simple way to use in-memory cache in Golang
22

33
[![Go Version](https://img.shields.io/badge/go-1.23.5-blue)](https://golang.org/)
44
[![PkgGoDev](https://pkg.go.dev/badge/github.com/hugocarreira/easycache)](https://pkg.go.dev/github.com/hugocarreira/easycache)
55
[![Build Status](https://github.com/hugocarreira/easycache/actions/workflows/tests.yml/badge.svg)](https://github.com/hugocarreira/easycache/actions)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/hugocarreira/easycache)](https://goreportcard.com/report/github.com/hugocarreira/easycache)
7-
[![Open Source Helpers](https://www.codetriage.com/hugocarreira/easycache/badges/users.svg)](https://www.codetriage.com/hugocarreira/easycache)
87
[![Release](https://img.shields.io/github/v/release/hugocarreira/easycache.svg?style=flat-square)](https://hugocarreira/easycache/releases)
98
[![License](https://img.shields.io/github/license/hugocarreira/easycache)](LICENSE)
109

@@ -255,34 +254,6 @@ c := cache.New(&cache.Config{
255254
})
256255
```
257256

258-
259-
## 🚀 Performance Benchmarks
260-
261-
We ran performance benchmarks on EasyCache to measure the efficiency of `Set()`, `Get()`, `Delete()`, and eviction policies (`FIFO`, `LRU`, `LFU`).
262-
263-
| Benchmark | Iterations | Time per operation | Memory used | Allocations per op |
264-
|--------------------------|------------|--------------------|-------------|--------------------|
265-
| **`BenchmarkCacheSet`** | 2,936,356 | **408.4 ns/op** | **122 B/op** | **5 allocs/op** |
266-
| **`BenchmarkCacheGet`** | 39,143,538 | **30.79 ns/op** | **0 B/op** | **0 allocs/op** |
267-
| **`BenchmarkCacheDelete`**| 5,376,940 | **223.3 ns/op** | **96 B/op** | **3 allocs/op** |
268-
| **`BenchmarkFIFOEviction`** | 3,065,480 | **391.7 ns/op** | **122 B/op** | **5 allocs/op** |
269-
| **`BenchmarkLRUEviction`** | 3,045,759 | **402.1 ns/op** | **122 B/op** | **5 allocs/op** |
270-
| **`BenchmarkLFUEviction`** | 2,916,150 | **394.3 ns/op** | **88 B/op** | **4 allocs/op** |
271-
272-
**Tested on:**
273-
- **Go Version:** 1.23.5
274-
- **Cache Configuration:** `MaxSize = 10,000`, `TTL = 60s`
275-
276-
---
277-
278-
### 🛠️ Running the Benchmarks
279-
280-
To run the benchmarks yourself, use:
281-
282-
```sh
283-
go test -bench=. -benchmem ./tests
284-
```
285-
286257
## 💡 Contributing
287258

288259
Please see [`CONTRIBUTING`](CONTRIBUTING.md) for details on submitting patches and the contribution workflow.

0 commit comments

Comments
 (0)