Giter Club home page Giter Club logo

Comments (7)

myzhan avatar myzhan commented on August 24, 2024

之前没把 Fn 设计为一个实例方法,要实现这种场景确实比较别扭。如果你的连接可以多个 goroutine 共用,那么可以在调用 boomer.run 之前,初始化好一个连接,或者连接池。

from boomer.

spiderpoison avatar spiderpoison commented on August 24, 2024

那client的id是否能提供,比如我做了1000个链接,启1000个client,测试协议收发的延迟时间的话,我希望能把连接和client一一对应上

from boomer.

myzhan avatar myzhan commented on August 24, 2024

目前Fn对应的函数被调用的时候,是不知道client的。你可以在函数里面先获取一个你自己定义的client对象,publish的时候第二第三个函数填clientID?

from boomer.

spiderpoison avatar spiderpoison commented on August 24, 2024

你的意思是我在Fn里随机获取一个client?但我怎么保证不同的Fn占有的是不同的client呢

from boomer.

myzhan avatar myzhan commented on August 24, 2024

按照你这个描述,比较像在压测一个使用TCP协议的聊天室。可以看看example目录下的udp_proxy,绕过无状态的Fn,单纯使用Publish结果的功能。

from boomer.

spiderpoison avatar spiderpoison commented on August 24, 2024

我参考了udp_proxy,这样的话locust页面就不能控制发起的机器人数量,而是由程序控制了。。。这样locust页面感觉意义还有多大?用来看charts和收集一下错误吗?locust页面可以把多个分布式的slave的数据收集到一张图上进行显示吗?

from boomer.

myzhan avatar myzhan commented on August 24, 2024

目前这一块只能使用方想办法了,之前有打算提供一个类似于 TLS 的对象,给用户存放上下文,不过还没时间去弄。

from boomer.

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.