This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Problem

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody think of good ideas to make a script execute 10% of the time, another for 20% of the time and so on..
The total time for which the program executes is not known in advance.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Timers?? Controlled by input parameters??
You sure don't give a person much to work with :roll: .
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam sorry I wanst very clear in the earlier message.Let me try again.
Here is what I need to do. Say I have a couple of users who spend 10% of their time adding items to a shopping cart, 20% of their time browsing etc..
I want to model this case , using 10 users who do all the activities above.The 10 users may ibn the system for various times.But as long as the system is up , 10% of the total time is spent shopping, 20% browsing etc...
How do I simulate this? I guess what makes it hard for me is that I dont know how long the system is up in advance.
 
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you sure? You want answer here, in this MD.
Why do you want stimulate this?
The way you deduce that user spend 10% time at particular area, you can find average time.
Final try:
Ask user when he enters in your commerce site, how much time he wants to be there. After that much time, kick him off
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have one user who does nothing but adds items to his shopping cart. Thats 10%.
Have 2 users who do nothing but browse. Thats 20%.
Etc.
Then it does not matter how long the execution is.
 
The moustache of a titan! The ad of a flea:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!