GithubHelp home page GithubHelp logo

search_shield's Introduction

屏蔽词服务

  • 提供http,rpc 2中模式的屏蔽词服务 rpc go-micro

配置

  	DevMode   string `json:"devmode"`  // 选择开发模式 dev/prod
	RunMode   string `json:"runmode"`  // 选择运行模式 http/rpc
	Open      string `json:"open"`     // 是否开启屏蔽词服务
	Reload    string `json:"reload"`    // 配置是否重数据库读取屏蔽词数据(数据库方面代码没放上去)
	ThreadNum int    `json:"threadnum"`  // 开启并发数
	ServerNum int    `json:"servernum"`  // 数据分段数

测试

  • 1000并发 2秒内 (屏蔽词大概4000个)
  Concurrency Level:      1000
  Time taken for tests:   1.717 seconds
  Complete requests:      1000
  Failed requests:        0
  Total transferred:      206000 bytes
  HTML transferred:       83000 bytes
  Requests per second:    582.34 [#/sec] (mean)
  Time per request:       1717.197 [ms] (mean)
  Time per request:       1.717 [ms] (mean, across all concurrent requests)
  Transfer rate:          117.15 [Kbytes/sec] received

search_shield's People

Contributors

keepljg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.