Skip to content

Profiling doesn't work with tinybench and yarn #37

Description

@XantreDev

Profiling doesn't work with tinybench
image
profiling
source

Profiling works with vitest
image
profiling
source

Activity

  1. adriencaccia commented on Aug 29, 2024

    @adriencaccia
    Member

    Hey @XantreDev, thanks for the issue.

    I managed to dig a bit and it seems that the problem is a mix of reasons: using yarn, the CodSpeed action and tinybench with TS.

    Investigation

    We can see here that the node introspection is not working, the node flags are set only on the yarn bench command and not the underlying node ... command.

    When manually calling the node ... command instead of yarn bench in the GH workflow file, the introspection works as expected (see here).

    We did not face this problem before because most users are using pnpm, which actually runs the underlying node ... command when executing a script.

    Workaround

    The process is much simpler when using vitest and it works as expected, even with yarn.

    I will keep this issue open, since we might want a fix in the future if others face the same issue again.

  2. changed the title [-]Profiling doesn't work with tinybench plugin[/-] [+]Profiling doesn't work with tinybench and yarn[/+] on Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions