dimroc / etl-language-comparison

Count the number of times certain words were said in a particular neighborhood. Performed as a basic MapReduce job against 25M tweets. Implemented with different programming languages as a educational exercise.
http://blog.dimroc.com/2015/11/14/etl-language-showdown-pt3/
186 stars 33 forks source link

Add C# implementation #20

Closed mganss closed 8 years ago

mganss commented 9 years ago

I have added a C# implementation with two variants: An idiomatic, short one in Search.Plinq.cs and an ugly, verbose one in Search.Binary.cs built for speed.

Here are some results on my machine (I haven't pushed the C version yet, it's appallingly dirty :pig:)

Language Time in s
C 0.8
C# (Binary) 1.1
C# (PLINQ) 2.8
Erlang (Binary) 4.7
Erlang (Regex) 6.8
Erlang (Unsafe) 3.0
Go (Substring) 8.3
Go (Regex) 19.4
Nim 15.0
Node.js 4.0
Rust (Regex) 1.4
Rust (Substring) 2.4
dimroc commented 8 years ago

Unfortunately, I don't have windows, so I'm just going to have to take your word for it. As a result though, I have now deemed you the owner of the C# implementation.

:smile: Thanks.

mganss commented 8 years ago

Thanks :+1:

dimroc commented 8 years ago

Hi @mganss, Could you add a README.md to your csharp/ folder with the information in this comment and whatever else you think is worthy? It would be great to capture this in the repo.