GithubHelp home page GithubHelp logo

Comments (6)

alefedor avatar alefedor commented on July 17, 2024

@sh-ad
Hi!
Technically, you can write your own ScenarioGenerator, but I agree that it is not an easy and enjoyable code.
Instead of just binding a thread we probably want a more general scenario specification.
Do you have any ideas on how the scenario should be configured?
For example, we can try to add a type-safe builder for Kotlin that looks like

options.scenario {
  thread {
    actorsPerThread(3)
    operations(TestSet::isEmpty)
  }
  repeat(3) { 
    thread() // just a default thread
  }
}

from lincheck.

sh-ad avatar sh-ad commented on July 17, 2024

@alefedor
Thank you, I wrote my own generator that solves the problem.

Did I get the idea right, to make it possible to configure each individual thread through the builder?

from lincheck.

alefedor avatar alefedor commented on July 17, 2024

@sh-ad
Yes, you are right. The idea is to choose the types and the number of operations in each thread

from lincheck.

sh-ad avatar sh-ad commented on July 17, 2024

@alefedor
I will try to implement this idea.

Is the implementation details better discussed here or elsewhere?

from lincheck.

alefedor avatar alefedor commented on July 17, 2024

@sh-ad
That's great that you want to implement this. Thank you!

Is the implementation details better discussed here or elsewhere?

How about telegram?
Telegram: @Alehard

from lincheck.

sh-ad avatar sh-ad commented on July 17, 2024

Summary:

  • It seems interesting to add functionality that would allow you to configure scenario generation in more detail, right down to the level of operations.
  • Create a separate issue with a description of this
  • Collect usage cases there

#90

from lincheck.

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.