Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock task pool surrealdb test #13

Merged
merged 11 commits into from
Nov 13, 2024
Merged

Mock task pool surrealdb test #13

merged 11 commits into from
Nov 13, 2024

Conversation

unkcpz
Copy link
Owner

@unkcpz unkcpz commented Nov 12, 2024

  • use perform_sync and perform_async to wrap the block and return res/start_at/end_at
  • update README with new run cmd.
  • bring back the --number for insert many tasks at once.

@unkcpz unkcpz force-pushed the mock-task-pool-surrealdb-test branch from 13b0850 to b3ef623 Compare November 13, 2024 01:10
@unkcpz unkcpz force-pushed the mock-task-pool-surrealdb-test branch from d57a879 to c6fe0c6 Compare November 13, 2024 10:54
@unkcpz unkcpz force-pushed the mock-task-pool-surrealdb-test branch from a972d65 to cff6d89 Compare November 13, 2024 14:48
The number of task can be set and pass to add tasks in batch.
@unkcpz
Copy link
Owner Author

unkcpz commented Nov 13, 2024

The manual bench scale very good.

These are number of tasks I created

./target/release/actionwurm task add -n 20 --scale large -b async
./target/release/actionwurm task add -n 10000 --scale small -b async
./target/release/actionwurm task add -n 200 --scale medium -b sync
./target/release/actionwurm task add -n 500 --scale medium -b async
./target/release/actionwurm task add -n 20 --scale large -b sync

No block and fail or delay.

@unkcpz unkcpz merged commit 5f96a64 into main Nov 13, 2024
4 checks passed
@unkcpz unkcpz deleted the mock-task-pool-surrealdb-test branch November 13, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant