Update 'Performance'

master
John Zacarias Jekel 1 year ago
parent be9403a9b1
commit 8148e0dfc8
  1. 9
      Performance.md

@ -1,3 +1,12 @@
# Summary
| Anslatortray Version | Time to translate word in UTF-8 mode (ns) | Time to translate word in ASCII mode (ns) |
| -------- | -------- | -------- |
| main branch | 128.971 | 93.986 |
| 0.4.0 | 128.971 | 93.986 |
| 0.3.0 | 227.462 | N/A |
# 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).

Loading…
Cancel
Save