Update 'Performance'

master
John Zacarias Jekel 1 year ago
parent bc58bc77b2
commit be9403a9b1
  1. 13
      Performance.md

@ -1,4 +1,15 @@
# Test results for the current Anslatortray main branch
On my dated system with dual Intel(R) Xeon(R) E5-2670 v2 CPUs, the `translate()` function can process one word every **128.971** nanoseconds on average in the default UTF-8 mode, and one word every **93.986** nanoseconds on average in the ASCII-only mode. The `words_alpha.txt` file from <https://github.com/dwyl/english-words> was fed to the `anslatortray --benchmark-file` set to 1000 iterations, and then the averages produced were divided by 370105 (the number of words in the file).
```
> anslatortray --benchmark-file ./words_alpha.txt 1000
Anslatortray: frontend for the Anslatortray for Rust library
Sucessful: UTF-8 translation took 47732914ns to translate on average over 1000 runs.
Sucessful: ASCII translation took 34784643ns to translate on average over 1000 runs
```
# Test results for Anslatortray 0.4.0
From Anslatortray 0.3.0 to 0.4.0, the various included programs were consolidated into a single `anslatortray` binary. In addition, this binary recieved a new option `--benchmark-file`, which makes it much easier to evaluate the time it takes to translate a particular file.
On my dated system with dual Intel(R) Xeon(R) E5-2670 v2 CPUs, the `translate()` function can process one word every **128.971** nanoseconds on average in the default UTF-8 mode, and one word every **93.986** nanoseconds on average in the ASCII-only mode. The `words_alpha.txt` file from <https://github.com/dwyl/english-words> was fed to the `anslatortray --benchmark-file` set to 1000 iterations, and then the averages produced were divided by 370105 (the number of words in the file).
@ -12,8 +23,6 @@ Sucessful: ASCII translation took 34784643ns to translate on average over 1000 r
```
Although `cargo bench --features nightly-features` benchmarks are still supported, I am no longer including them on this page as what they actually compute changes frequently. They're mostly intended for quick regression testing during development.
# Test results for Anslatortray 0.4.0
TODO (not released yet)
# Test results for Anslatortray 0.3.0
On my dated system with dual Intel(R) Xeon(R) E5-2670 v2 CPUs, the `translate()` function can process one word every **227.462** nanoseconds on average.

Loading…
Cancel
Save