Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/dalent/db_benchmark
测试redis和mongo等的速度
go get github.com/dalent/db_benchmark
用法 -d数据库 ,-u 数据库 url -t 线程数量
go run benchmark.go -d mongo -u mgo1:8888 -t 2
表示用两个线程,每个线程插入和读取1万次,的时间结果为
mode w
threads: 2
per thread: 10000
total time:3.879012986s
mode r
threads: 2
per thread: 10000
total time:3.338706411s
同样可以测试redis,因为redis的url不包括passwd信息所以职能控制台提供例如
go run benchmark.go --d redis -u mgo2:6379 -t 2 -p passwd
结果和上边的类似。
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.