Skip to content

Commit

Permalink
add 5000000 cachesize for memory usage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Feb 15, 2024
1 parent 65dbc11 commit 82fa1c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
awk '{if($0 ~ "// memusage.go"){a=1;b=1};if($0 ~ "```" && b=1){b=0};if (a&&b) {print}}' ../README.md > memusage.go
echo -e 'MemStats\tCacheSize\tAlloc\tTotalAlloc\tSys' > memusage.txt
for name in phuslu lxzan ristretto freelru ecache otter theine cloudflare ccache hashicorp; do
for cachesize in 100000 500000 1000000 2000000; do
for cachesize in 100000 500000 1000000 2000000 5000000; do
go run memusage.go $name $cachesize >> memusage.txt
done
done
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ ok command-line-arguments 95.788s

The Memory usage result as below. Check github [actions][actions] for more results and details.
<details>
<summary>memory usage on keysize=16(string), valuesize=8(int), cachesize in (100000,500000,1000000,2000000)</summary>
<summary>memory usage on keysize=16(string), valuesize=8(int), cachesize in (100000,500000,1000000,2000000,5000000)</summary>

```go
// memusage.go
Expand Down

0 comments on commit 82fa1c5

Please sign in to comment.