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

tx-generator: Fix self-test. #4467

Merged
merged 1 commit into from
Sep 22, 2022
Merged

tx-generator: Fix self-test. #4467

merged 1 commit into from
Sep 22, 2022

Conversation

MarcFontaine
Copy link
Contributor

This fixes the benchmarking self-test and criterion benchmark.
'cabal run tx-generator:benchmark:tx-generator-bench' now works.

@MarcFontaine
Copy link
Contributor Author

The benchmark splits the input into 9000 UTxO, generates 4000 TXs (2 inputs and 2 outputs)
and then discards the TXs.

Generator speed is ca. 200_000 TXs per second.

time 28.26 ms (27.55 ms .. 28.87 ms)
0.998 R² (0.997 R² .. 0.999 R²)
mean 27.73 ms (27.27 ms .. 28.07 ms)
std dev 890.8 μs (609.2 μs .. 1.398 ms)
variance introduced by outliers: 10% (moderately inflated)

'cabal run tx-generator:benchmark:tx-generator-bench' now works.
@MarcFontaine
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Sep 22, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 420c4eb into master Sep 22, 2022
@iohk-bors iohk-bors bot deleted the mafo/tx-generator-selftest branch September 22, 2022 14:31
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.

2 participants