This is a repo that should help guide people to which language[s] to use for a new microservice project.
I Do not know if I am always following best practices for a given language Pull requests if a better way is known, are always welcome ๐
This repository contains multiple languages, doing the exact same algorithm. But with different technologies. This algorithm will do testing of
- Speed of a given language
- Readability of the code
- How concurrency looks, and works if available
- To as much as posible only use base language constructs
- Guage how useful tech might be in your case
This algorithm is designed to test
- Streams and basic functions
- CPU time of simple tasks
- CPU time of more complex tasks
variable Name | Required variables | Description |
---|---|---|
input | A given number from the caller >= 2 | |
fibIdx | input | Given a number Find the index in fibonacci, or the previous index if not found |
words | fibIdx | Generate seeded list of words to the count of above index |
max | words | Count the letter that appears the most |
min | words | Count the letter that appears the least |
factors | fibIdx | find the prime factors |
average | max, min, factors | Find the average |
return words, factors, average to caller |
At a later point, actual web frameworks will be tested as well, to show variety in a given language