Git Product home page Git Product logo

Comments (6)

cristaloleg avatar cristaloleg commented on May 14, 2024

How much ram do you have?

from bigcache.

andersfylling avatar andersfylling commented on May 14, 2024
               +                OS: Arch Linux x86_64
               #                Hostname: anders-desktop
              ###               Kernel Release: 4.14.76-1-lts
             #####              Uptime: 1 day, 9:36
             ######             WM: i3
            ; #####;            DE: None
           +##.#####            Packages: 538
          +##########           RAM: 2724 MB / 32045 MB
         #############;         Processor Type: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
        ###############+        $EDITOR: None
       #######   #######        Root: 17G / 49G (34%) (ext4)
     .######;     ;###;`".      
    .#######;     ;#####.       
    #########.   .########`     
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `# 

from bigcache.

cristaloleg avatar cristaloleg commented on May 14, 2024

Well, I cannot reproduce this failure.
Let me guess, 0Mb swap? :)

from bigcache.

andersfylling avatar andersfylling commented on May 14, 2024

Nope. 4GB swap.

from bigcache.

andersfylling avatar andersfylling commented on May 14, 2024

Which version of go are you running?

I'm running 1.11.1

from bigcache.

mxplusb avatar mxplusb commented on May 14, 2024

I also was not able to reproduce this, on Windows or Ubuntu.

PS P:\go\src\github.com\allegro\bigcache\caches_bench> go test -bench . -benchtime 1s ./... -timeout 30m
goos: windows
goarch: amd64
pkg: github.com/allegro/bigcache/caches_bench
BenchmarkMapSet-8                        5000000               466 ns/op
BenchmarkConcurrentMapSet-8              1000000              1479 ns/op
BenchmarkFreeCacheSet-8                  3000000               530 ns/op
BenchmarkBigCacheSet-8                   3000000               465 ns/op
BenchmarkMapGet-8                        5000000               356 ns/op
BenchmarkConcurrentMapGet-8              5000000               387 ns/op
BenchmarkFreeCacheGet-8                  3000000               654 ns/op
BenchmarkBigCacheGet-8                   3000000               435 ns/op
BenchmarkBigCacheSetParallel-8          10000000               192 ns/op
BenchmarkFreeCacheSetParallel-8         10000000               195 ns/op
BenchmarkConcurrentMapSetParallel-8      5000000               305 ns/op
BenchmarkBigCacheGetParallel-8          20000000               108 ns/op
BenchmarkFreeCacheGetParallel-8         20000000               117 ns/op
BenchmarkConcurrentMapGetParallel-8     10000000               213 ns/op
PASS
ok      github.com/allegro/bigcache/caches_bench        92.819s
PS P:\go\src\github.com\allegro\bigcache\caches_bench> git rev-parse HEAD
84a0ff3f153cbd7e280a19029a864bb04b504e62
PS P:\go\src\github.com\allegro\bigcache\caches_bench> go version
go version go1.11.2 windows/amd64
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
 %  go test -bench . -benchtime 1s ./... -timeout 30m
goos: linux
goarch: amd64
pkg: github.com/allegro/bigcache/caches_bench
BenchmarkMapSet-8                        3000000               439 ns/op
BenchmarkConcurrentMapSet-8              1000000              1481 ns/op
BenchmarkFreeCacheSet-8                   500000              2588 ns/op
BenchmarkBigCacheSet-8                    500000              2632 ns/op
BenchmarkMapGet-8                        5000000               339 ns/op
BenchmarkConcurrentMapGet-8              5000000               371 ns/op
BenchmarkFreeCacheGet-8                   500000              2699 ns/op
BenchmarkBigCacheGet-8                   3000000               442 ns/op
BenchmarkBigCacheSetParallel-8           2000000               647 ns/op
BenchmarkFreeCacheSetParallel-8          2000000               741 ns/op
BenchmarkConcurrentMapSetParallel-8      5000000               313 ns/op
BenchmarkBigCacheGetParallel-8          20000000               201 ns/op
BenchmarkFreeCacheGetParallel-8          2000000               722 ns/op
BenchmarkConcurrentMapGetParallel-8     10000000               184 ns/op
PASS
ok      github.com/allegro/bigcache/caches_bench        142.104s
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
 % git rev-parse HEAD
84a0ff3f153cbd7e280a19029a864bb04b504e62
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
 % go version
go version go1.11.2 linux/amd64

Closing for now, please let us know if you are still stuck.

from bigcache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.