Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokisakikurumi2001/frequency_of_char_in_string
Calculate the frequency of characters in string
https://github.com/tokisakikurumi2001/frequency_of_char_in_string
c csharp haskell java javascript objective-c perl6 php python ruby swift4 vuejs
Last synced: about 2 months ago
JSON representation
Calculate the frequency of characters in string
- Host: GitHub
- URL: https://github.com/tokisakikurumi2001/frequency_of_char_in_string
- Owner: TokisakiKurumi2001
- Created: 2018-12-17T09:02:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T09:28:49.000Z (about 6 years ago)
- Last Synced: 2024-11-05T18:56:46.842Z (3 months ago)
- Topics: c, csharp, haskell, java, javascript, objective-c, perl6, php, python, ruby, swift4, vuejs
- Language: JavaScript
- Homepage: https://tokisakikurumi2001.github.io/frequency_of_char_in_string/
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frequency of char in string
## How this work?
Calculate the number of repetion of character in the given string## Highlights for this project
- Written in 11 programming languages for benchmarking purpose
- Here is the demo page to show how the code works. [Demo]## Benchmark
All the string for benchmarking is "Hello Programming World"
However, in the repository, I keep the string like "Hello C World"(frequency_of_char_in_string.c) or "Hello Haskell World"(frequency_of_char_in_string.hs)- The benchmark was taken on Windows 7, 64-bit
- With 1 exception for Objective-C compiler, I have to use the paiza.io
- And 1 exception for C#, I use the codingground| Programming language | Time |
|:----------------------:|:--------:|
| C | 0.016s |
| Haskell | 0.016s |
| Perl | 0.016s |
| C# | 0.021s |
| Objective-C | 0.040s |
| Swift | 0.047s |
| Python | 0.078s |
| Ruby | 0.078s |
| Java | 0.128s |
| NodeJS | 0.203s |
| PHP | 1.186s |[//]: #
[Demo]: