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 benchmarks #23

Merged
merged 1 commit into from
Nov 8, 2023
Merged

feat: add benchmarks #23

merged 1 commit into from
Nov 8, 2023

Conversation

mtb0x1
Copy link
Contributor

@mtb0x1 mtb0x1 commented Nov 7, 2023

This PR will add 2 utils scripts to perform benchmarks :

  • Benchmarks for packing with hermit.com.
  • Benchmarks for binaries produced by hermit.com.

Example of current benchmarks with a VM(4xCPU : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, RAM 6GB) :

  • Debug mode
Benching with cat.
Benchmark 1: hermit.com with cat
  Time (mean ± σ):     1737.8 ms ± 103.2 ms    [User: 1725.2 ms, System: 12.1 ms]
  Range (min … max):   1595.7 ms … 1915.7 ms    10 runs

Benching with count_vowels.
Benchmark 1: hermit.com with count_vowels
  Time (mean ± σ):     50272.0 ms ± 2673.0 ms    [User: 50248.9 ms, System: 19.0 ms]
  Range (min … max):   47441.7 ms … 54378.3 ms    10 runs

Benching with cowsay.
Benchmark 1: hermit.com with cowsay
  Time (mean ± σ):     30065.3 ms ± 1294.7 ms    [User: 30047.6 ms, System: 15.0 ms]
  Range (min … max):   28296.4 ms … 32019.9 ms    10 runs
  • Release mode
Benching with cat.
Benchmark 1: hermit.com with cat
  Time (mean ± σ):      46.0 ms ±   4.6 ms   [User: 44.2 ms, System: 1.8 ms]
  Range (min … max):    40.0 ms …  60.3 ms    67 runs

Benching with count_vowels.
Benchmark 1: hermit.com with count_vowels
  Time (mean ± σ):     795.7 ms ±  33.1 ms    [User: 789.6 ms, System: 6.0 ms]
  Range (min … max):   734.3 ms … 841.0 ms    10 runs

Benching with cowsay.
Benchmark 1: hermit.com with cowsay
  Time (mean ± σ):     472.0 ms ±  18.6 ms    [User: 471.0 ms, System: 1.0 ms]
  Range (min … max):   447.8 ms … 508.2 ms    10 runs

Copy link
Contributor

@G4Vi G4Vi left a comment

Choose a reason for hiding this comment

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

Looks good, this will help with tracking performance. Just one spelling issue before I can merge. If you want to add running the benchmarks in actions that would be helpful, but not required to be added to this PR.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
benchmarks/README.md Outdated Show resolved Hide resolved
*feat : benchmarks for packing with hermit.com.
*feat : benchmarks for binaries produced by hermit.com.
@mtb0x1
Copy link
Contributor Author

mtb0x1 commented Nov 7, 2023

Looks good, this will help with tracking performance. Just one spelling issue before I can merge. If you want to add running the benchmarks in actions that would be helpful, but not required to be added to this PR.

I will check the CI later this week.

@G4Vi G4Vi merged commit 267ba40 into dylibso:main Nov 8, 2023
5 checks passed
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.

3 participants