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 #19

Merged
merged 25 commits into from
May 6, 2022
Merged

Benchmark #19

merged 25 commits into from
May 6, 2022

Conversation

jelmervdl
Copy link
Owner

@jelmervdl jelmervdl commented May 3, 2022

Adds a benchmarking page to the extension, as an "easy" way to get some numbers. Having the benchmarking page in the extension is not entirely necessary, but since development of upstream stuff is the raison d'être of this thing, might as well maintain it. It does give more finegrained control over performance tuning, so that's cool.

image

Tested on Firefox Nightly 102, 2019 Macbook 16” 2.3 GHz 8-core (but only 4 used in test) Intel i9, 5 runs per scenario

Test set: recored-pages(2).xml.zip which is me browsing German Wikipedia and Der Spiegel for a bit.

Its hardcoded to de-en and it does not check whether it is using the same models. But it is getting the models from the same TranslateLocally repository, and it has the same heuristic as TranslateLocally: locally is preferred, then tiny is preferred.

In the addon options, you can turn on "developer mode" (or whatever I called it). This then adds a "record translation requests" toggle in the translation popup. When you tick that, it will start recording all translation requests from that point on. You can click the "Export xml" link next to the checkbox to get the recording. This also clears the recorder again.

Then, also in the addon settings, there is a link to the benchmark page. Upload the recording you just downloaded there, and you can run it on multiple scenarios.

@jelmervdl
Copy link
Owner Author

TranslateLocally benchmarking depends on XapaJIaMnu/translateLocally#103

@jelmervdl jelmervdl marked this pull request as ready for review May 5, 2022 17:43
@jelmervdl jelmervdl merged commit b03bf73 into main May 6, 2022
@jelmervdl jelmervdl deleted the benchmark branch May 6, 2022 13:25
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.

1 participant