Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Convert std::test benchmarks to use Criterion #10999

Merged
merged 7 commits into from
Sep 5, 2019

Conversation

tobz1000
Copy link
Contributor

Fixes #10975.

I've replaced the ethcore bench check with a check for all benches, hopefully as desired in the issue.

Query: I've stuck to 2015-style imports in the modified source files, to minimise changes. Is this the correct style, or should modified files be updated to 2018-style imports?

Also modified ethash manifest so that benches should check okay with cargo check --all --benches.

@parity-cla-bot

This comment has been minimized.

@tobz1000 tobz1000 changed the title 10975 stable benchmarks Convert std::test benchmarks to use Criterion Aug 28, 2019
ethash/Cargo.toml Outdated Show resolved Hide resolved
@tobz1000
Copy link
Contributor Author

[clabot:check]

@parity-cla-bot
Copy link

It looks like @tobz1000 signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@ordian ordian added the M1-ci 🙉 Continuous integration. label Aug 28, 2019
@ordian ordian added this to the 2.7 milestone Aug 28, 2019
@ordian ordian added the A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. label Aug 28, 2019
@ordian ordian added A8-looksgood 🦄 Pull request is reviewed well. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Sep 4, 2019
Copy link
Collaborator

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Thanks!

evmbin/benches/mod.rs Outdated Show resolved Hide resolved
Co-Authored-By: Andronik Ordian <write@reusable.software>
@ordian
Copy link
Collaborator

ordian commented Sep 4, 2019

merge with master should fix cargo audit

evmbin/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

lgtm except for the criterion version mentioned

@dvdplm dvdplm merged commit 680807e into openethereum:master Sep 5, 2019
dvdplm added a commit that referenced this pull request Sep 9, 2019
* master:
  fix: remove unused error-chain (#11028)
  fix: remove needless use of itertools (#11029)
  Convert `std::test` benchmarks to use Criterion (#10999)
  Fix block detail updating (#11015)
  [trace] introduce trace failed to Ext (#11019)
  cli: update usage and version headers (#10924)
  [private-tx] remove unused rand (#11024)
dvdplm added a commit that referenced this pull request Sep 10, 2019
…he-right-place

* master:
  cleanup json crate (#11027)
  [spec] add istanbul test spec (#11033)
  [json-spec] make blake2 pricing spec more readable (#11034)
  Add blake2_f precompile (#11017)
  Add new line after writing block to hex file. (#10984)
  fix: remove unused error-chain (#11028)
  fix: remove needless use of itertools (#11029)
  Convert `std::test` benchmarks to use Criterion (#10999)
  Fix block detail updating (#11015)
  [trace] introduce trace failed to Ext (#11019)
  cli: update usage and version headers (#10924)
  [private-tx] remove unused rand (#11024)
dvdplm added a commit that referenced this pull request Sep 13, 2019
* master: (70 commits)
  ethcore: remove `test-helper feat` from build (#11047)
  Include test-helpers from ethjson (#11045)
  [ethcore]: cleanup dependencies (#11043)
  add more tx tests (#11038)
  Fix parallel transactions race-condition (#10995)
  [ethcore]: make it compile without `test-helpers` feature (#11036)
  Benchmarks for block verification (#11035)
  Move snapshot related traits to their proper place (#11012)
  cleanup json crate (#11027)
  [spec] add istanbul test spec (#11033)
  [json-spec] make blake2 pricing spec more readable (#11034)
  Add blake2_f precompile (#11017)
  Add new line after writing block to hex file. (#10984)
  fix: remove unused error-chain (#11028)
  fix: remove needless use of itertools (#11029)
  Convert `std::test` benchmarks to use Criterion (#10999)
  Fix block detail updating (#11015)
  [trace] introduce trace failed to Ext (#11019)
  cli: update usage and version headers (#10924)
  [private-tx] remove unused rand (#11024)
  ...
dvdplm added a commit that referenced this pull request Nov 8, 2019
@dvdplm dvdplm added the B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. label Nov 8, 2019
dvdplm added a commit that referenced this pull request Nov 8, 2019
niklasad1 pushed a commit that referenced this pull request Nov 8, 2019
* Convert std::test benches to Criterion

* Required feature for ethash benches

* gitlab-ci: Check all bench targets

* check ethash benches

* evmbin/benches/mod.rs: Update bench sample command

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Upgrade to criterion 0.3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. M1-ci 🙉 Continuous integration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert all benchmarks to criterion
4 participants