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

Benchmark plutus-cbor #212

Merged
merged 3 commits into from
Feb 9, 2022
Merged

Benchmark plutus-cbor #212

merged 3 commits into from
Feb 9, 2022

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented Feb 9, 2022

In course of formulating a CIP for serialiseData we created this benchmark to compare serialization of our basic on-chain encoder for TxOuts (run via Haskell on the host of course) with the more optimized cborg encoder used via serialise package for Data.

Here is the gist of it:

  • Ada-only outputs are not bad
  • 20 and definitely 100 asset outputs are serialized much less efficiently
  • Makes sense, as those lead to much more appendBytestring calls, which is the builtin used at the core of plutus-cbor

image

To reproduce these results on your machine: https://github.com/input-output-hk/hydra-poc/blob/8d0a20510a1e0fb007044a3c7aa8ecbf45ddd49c/plutus-cbor/README.md#L40-L45

@ch1bo ch1bo requested a review from KtorZ February 9, 2022 10:52
@ch1bo ch1bo merged commit f64e072 into master Feb 9, 2022
@ch1bo ch1bo deleted the plutus-cbor-bench branch February 9, 2022 10:54
@github-actions
Copy link

github-actions bot commented Feb 9, 2022

Unit Test Results

    6 files  ±0    71 suites  ±0   5m 19s ⏱️ +30s
203 tests ±0  201 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 8d0a205. ± Comparison against base commit a4b843a.

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