fengalin / media-toc

Build a table of contents from a media file or split a media file into chapters
MIT License
73 stars 3 forks source link

Refactor and introduce benches #144

Closed fengalin closed 5 years ago

fengalin commented 5 years ago

Benches can be defined in a similar way to tests. However, this still requires a nightly toolchain. It would be possible to set the benches in the benches directory, but then the source files are no longer part of the application's crate scope.

criterion seems to be a good solution capable of generating plots and which relies on the stable toolchain. However, benches must be defined in the banches directory.

Modules of the application are already gathered under super modules application, media, etc. These super modules can be defined as specific lib in workspaces allowing them to be used in benches. This could also be a first step toward sharing common parts between media-toc and media-toc-player.

Identified issues:

2 process are candidates for benches in the perspective of assessing potential enhancements: