Giter Club home page Giter Club logo

Comments (4)

myzhan avatar myzhan commented on August 24, 2024
func sequential() {

    Send Request A
    // boomer.Events.Publish()

    Send Request B
    // boomer.Events.Publish()

    Send Request C
    // boomer.Events.Publish()
}

func main() {

    sequentialTask := &boomer.Task{
        Name:   "sequential",
        Weight: 10,
        Fn:     sequential,
	}

    // sequential will run concurrently
    boomer.Run(sequentialTask)

}

from boomer.

zhwang2 avatar zhwang2 commented on August 24, 2024

Thx for your quick reply!

Another question:
How to set the weight of each request in the 'sequential'?
Did the BOOMER have the analogous func as the @task() of locust?

😃

from boomer.

myzhan avatar myzhan commented on August 24, 2024
  1. boomer only supports setting the weight of a boomer.Task, just like locust.
  2. No, golang doesn't support syntax sugar like @task.

from boomer.

zhwang2 avatar zhwang2 commented on August 24, 2024

It could be better and flexible at the test scenario if we can set the weight for each request.
Whatever, thx for your reply and nice work. 👍

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.