Skip to content

Spawn benchmark problems #3904

Open
Open
@Darksonn

Description

The spawning benchmarks in benches/spawn.rs seem to be rather poor:

  1. The spawned tasks are not awaited, so spawns from one iteration may still be consuming resources during the next benchmark iteration.
  2. The threaded_scheduler_local_spawn benchmark uses a basic scheduler and is identical to the basic_scheduler_local_spawn benchmark.
  3. The basic_scheduler_remote_spawn benchmark doesn't use block_on, so the spawned tasks do not run, whereas they do run in other benchmarks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-benchesArea: BenchmarksE-help-wantedCall for participation: Help is requested to fix this issue.M-runtimeModule: tokio/runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions