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
benchmark remotion #1358
benchmark remotion #1358
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/cli/src/benchmark.ts
Outdated
|
||
const DEFUALT_RUNS = 3; | ||
const DEFAULT_COMP_ID = 'Main'; | ||
const DEFAULT_FILE_PATH = './src/index'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make the user explicitly pass the path: npx remotion benchmark src/index.tsx ...
for now.
We will tackle this in another issue where this can be omitted for all commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't need to download (or clone) benchmark repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it can be a entry point, URL, or filepath to a bundle (Through #1048 in the future)
This looks pretty good! Have not yet cloned and played around with it, but I agree with the design decisions taken here! :) |
Thanks for looking into it. I also found out about |
@uragirii Love hyperfine and how they output the stuff! That would be super cool! |
Ah, I had some pending comments that did not get submitted, will send them now! And push it forward as well |
packages/cli/src/benchmark.ts
Outdated
|
||
const DEFUALT_RUNS = 3; | ||
const DEFAULT_COMP_ID = 'Main'; | ||
const DEFAULT_FILE_PATH = './src/index'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it can be a entry point, URL, or filepath to a bundle (Through #1048 in the future)
Implemented the changes I suggested and also updated the autocomplete files for Fig.io! 😁 I am now happy to ship this. |
Ah you beat me to it. Sorry I was busy at work couldn't implement them. |
@uragirii Planning to ship it today! |
Its a tough one for this PR but the MVP was ready under 1hr. Most time went into formatting the output correctly/validating. Overall i would say 2-3hrs atleast. |
@uragirii! Thanks! I'll post the overall statistics at the end of October 😁 |
Fixes #1250
The repo used for benchmarking is created here https://github.com/uragirii/remotion-bench. We can merge this repo in the
remotion-dev
org to centralise the tests.The current API for the command is following:
npx remotion benchmark ./src/index --codec=h264 --runs=5 --compositions=Main,Canvas,CSS --concurrencies=2,3
I've also added docs page for benchmark command.
Pending Tasks:
- [ ] Download benchmark repository. (run git clone)- [ ] Save assets in public folder rather using URL for referring them as network speed can cause inconsistent testsIssueHunt Summary
Referenced issues
This pull request has been submitted to: