Created
September 17, 2024 13:36
-
-
Save zamazan4ik/8a7de2b8d6cc1e265d0111f8ce82e2d9 to your computer and use it in GitHub Desktop.
raptorq benchmark failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo bench --features benchmarking | |
<useless lines are skipped> | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/decode_benchmark.rs:25:43 | |
| | |
25 | let encoder = SourceBlockEncoder::new2(1, &config, &data); | |
| ^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
25 | let encoder = SourceBlockEncoder::new(1, &config, &data); | |
| ~~~ | |
warning: use of deprecated method `criterion::Criterion::<M>::bench`: Please use BenchmarkGroups instead. | |
--> benches/codec_benchmark.rs:76:7 | |
| | |
76 | c.bench( | |
| ^^^^^ | |
error[E0599]: no function or associated item named `with_encoding_plan2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/encode_benchmark.rs:34:37 | |
| | |
34 | SourceBlockEncoder::with_encoding_plan2(1, &config, &data, plan) | |
| ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `with_encoding_plan` with a similar name | |
| | |
34 | SourceBlockEncoder::with_encoding_plan(1, &config, &data, plan) | |
| ~~~~~~~~~~~~~~~~~~ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockDecoder` in the current scope | |
--> benches/decode_benchmark.rs:30:51 | |
| | |
30 | let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64); | |
| ^^^^ function or associated item not found in `SourceBlockDecoder` | |
| | |
note: if you're trying to build a new `SourceBlockDecoder`, consider using `SourceBlockDecoder::new` which returns `SourceBlockDecoder` | |
--> /home/zamazan4ik/open_source/raptorq/src/decoder.rs:140:5 | |
| | |
140 | / pub fn new( | |
141 | | source_block_id: u8, | |
142 | | config: &ObjectTransmissionInformation, | |
143 | | block_length: u64, | |
144 | | ) -> SourceBlockDecoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
30 | let mut decoder = SourceBlockDecoder::new(1, &config, elements as u64); | |
| ~~~ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/encode_benchmark.rs:36:37 | |
| | |
36 | SourceBlockEncoder::new2(1, &config, &data) | |
| ^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
36 | SourceBlockEncoder::new(1, &config, &data) | |
| ~~~ | |
For more information about this error, try `rustc --explain E0599`. | |
error: could not compile `raptorq` (bench "decode_benchmark") due to 2 previous errors | |
warning: build failed, waiting for other jobs to finish... | |
error: could not compile `raptorq` (bench "encode_benchmark") due to 2 previous errors | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/codec_benchmark.rs:81:51 | |
| | |
81 | let encoder = SourceBlockEncoder::new2(1, &config, &encode_data); | |
| ^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
81 | let encoder = SourceBlockEncoder::new(1, &config, &encode_data); | |
| ~~~ | |
warning: use of deprecated method `criterion::Criterion::<M>::bench`: Please use BenchmarkGroups instead. | |
--> benches/codec_benchmark.rs:89:7 | |
| | |
89 | c.bench( | |
| ^^^^^ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/codec_benchmark.rs:94:51 | |
| | |
94 | let encoder = SourceBlockEncoder::new2(1, &config, &roundtrip_data); | |
| ^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
94 | let encoder = SourceBlockEncoder::new(1, &config, &roundtrip_data); | |
| ~~~ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockDecoder` in the current scope | |
--> benches/codec_benchmark.rs:95:55 | |
| | |
95 | let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64); | |
| ^^^^ function or associated item not found in `SourceBlockDecoder` | |
| | |
note: if you're trying to build a new `SourceBlockDecoder`, consider using `SourceBlockDecoder::new` which returns `SourceBlockDecoder` | |
--> /home/zamazan4ik/open_source/raptorq/src/decoder.rs:140:5 | |
| | |
140 | / pub fn new( | |
141 | | source_block_id: u8, | |
142 | | config: &ObjectTransmissionInformation, | |
143 | | block_length: u64, | |
144 | | ) -> SourceBlockDecoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
95 | let mut decoder = SourceBlockDecoder::new(1, &config, elements as u64); | |
| ~~~ | |
warning: use of deprecated method `criterion::Criterion::<M>::bench`: Please use BenchmarkGroups instead. | |
--> benches/codec_benchmark.rs:103:7 | |
| | |
103 | c.bench( | |
| ^^^^^ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope | |
--> benches/codec_benchmark.rs:108:51 | |
| | |
108 | let encoder = SourceBlockEncoder::new2(1, &config, &repair_data); | |
| ^^^^ function or associated item not found in `SourceBlockEncoder` | |
| | |
note: if you're trying to build a new `SourceBlockEncoder` consider using one of the following associated functions: | |
SourceBlockEncoder::new | |
SourceBlockEncoder::with_encoding_plan | |
--> /home/zamazan4ik/open_source/raptorq/src/encoder.rs:231:5 | |
| | |
231 | / pub fn new( | |
232 | | source_block_id: u8, | |
233 | | config: &ObjectTransmissionInformation, | |
234 | | data: &[u8], | |
235 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
... | |
251 | / pub fn with_encoding_plan( | |
252 | | source_block_id: u8, | |
253 | | config: &ObjectTransmissionInformation, | |
254 | | data: &[u8], | |
255 | | plan: &SourceBlockEncodingPlan, | |
256 | | ) -> SourceBlockEncoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
108 | let encoder = SourceBlockEncoder::new(1, &config, &repair_data); | |
| ~~~ | |
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockDecoder` in the current scope | |
--> benches/codec_benchmark.rs:110:55 | |
| | |
110 | let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64); | |
| ^^^^ function or associated item not found in `SourceBlockDecoder` | |
| | |
note: if you're trying to build a new `SourceBlockDecoder`, consider using `SourceBlockDecoder::new` which returns `SourceBlockDecoder` | |
--> /home/zamazan4ik/open_source/raptorq/src/decoder.rs:140:5 | |
| | |
140 | / pub fn new( | |
141 | | source_block_id: u8, | |
142 | | config: &ObjectTransmissionInformation, | |
143 | | block_length: u64, | |
144 | | ) -> SourceBlockDecoder { | |
| |___________________________^ | |
help: there is an associated function `new` with a similar name | |
| | |
110 | let mut decoder = SourceBlockDecoder::new(1, &config, elements as u64); | |
| ~~~ | |
warning: `raptorq` (bench "codec_benchmark") generated 13 warnings | |
error: could not compile `raptorq` (bench "codec_benchmark") due to 5 previous errors; 13 warnings emitted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment