Update 'Performance'

master
John Zacarias Jekel 1 year ago
parent c697989119
commit fbc901882c
  1. 8
      Performance.md

@ -2,7 +2,7 @@
| Anslatortray Version | Time* in UTF-8 mode (ns) | Time* in ASCII mode (ns) |
| -------- | -------- | -------- |
| main branch | 126.093 | 69.561 |
| main branch | 122.298 | 69.564 |
| 0.4.0 | 128.971 | 93.986 |
| 0.3.0 | 227.462 | N/A |
@ -10,14 +10,14 @@
# 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 **126.093** nanoseconds on average in the default UTF-8 mode, and one word every **69.561** 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).
On my dated system with dual Intel(R) Xeon(R) E5-2670 v2 CPUs, the `translate()` function can process one word every **122.298** nanoseconds on average in the default UTF-8 mode, and one word every **69.564** 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 46667936ns to translate on average over 1000 runs.
Sucessful: ASCII translation took 25744816ns to translate on average over 1000 runs
Sucessful: UTF-8 translation took 45263257ns to translate on average over 1000 runs.
Sucessful: ASCII translation took 25746150ns 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.

Loading…
Cancel
Save