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

feat: add benchmark script #4405

Merged
merged 1 commit into from
Jul 6, 2020
Merged

feat: add benchmark script #4405

merged 1 commit into from
Jul 6, 2020

Conversation

himself65
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Jul 6, 2020

Coverage Status

Coverage remained the same at 97.745% when pulling f3720e3 on Himself65:benchmark into 7520113 on hexojs:master.

@himself65 himself65 marked this pull request as ready for review July 6, 2020 13:01
@himself65 himself65 changed the title [WIP]feat: add benchmark script feat: add benchmark script Jul 6, 2020
@himself65
Copy link
Member Author

Cold processing
┌──────────────────────────────┬───────────────┐
│           (index)            │ Cost time (s) │
├──────────────────────────────┼───────────────┤
│ Load Plugin/Scripts/Database │    '0.38s'    │
│        Process Source        │    '7.94s'    │
│         Render Files         │    '8.66s'    │
│        Save Database         │    '0.34s'    │
│          Total time'17.32s'    │
└──────────────────────────────┴───────────────┘
Hot processing
┌──────────────────────────────┬───────────────┐
│           (index)            │ Cost time (s) │
├──────────────────────────────┼───────────────┤
│ Load Plugin/Scripts/Database │    '1.18s'    │
│        Process Source        │    '1.31s'    │
│         Render Files         │    '8.10s'    │
│        Save Database         │    '0.52s'    │
│          Total time'11.11s'    │
└──────────────────────────────┴───────────────┘
Another Cold processing
┌──────────────────────────────┬───────────────┐
│           (index)            │ Cost time (s) │
├──────────────────────────────┼───────────────┤
│ Load Plugin/Scripts/Database │    '0.40s'    │
│        Process Source        │    '8.00s'    │
│         Render Files         │    '8.27s'    │
│        Save Database         │    '0.32s'    │
│          Total time'16.99s'    │
└──────────────────────────────┴───────────────┘

@himself65 himself65 requested a review from SukkaW July 6, 2020 13:05
@himself65 himself65 force-pushed the benchmark branch 3 times, most recently from 1ed3b3b to 513cd08 Compare July 6, 2020 13:11
script/benchmark.js Outdated Show resolved Hide resolved
@himself65 himself65 added the enhancement New feature or request label Jul 6, 2020
script/benchmark.js Outdated Show resolved Hide resolved
.github/workflows/tester.yml Outdated Show resolved Hide resolved
script/benchmark.js Outdated Show resolved Hide resolved
@himself65 himself65 force-pushed the benchmark branch 2 times, most recently from 509bd83 to 790ebcc Compare July 6, 2020 14:12
Copy link
Member

@SukkaW SukkaW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SukkaW SukkaW merged commit 639199e into hexojs:master Jul 6, 2020
@himself65 himself65 deleted the benchmark branch July 6, 2020 14:41
@SukkaW SukkaW mentioned this pull request Jul 25, 2020
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants