show me how fast your favorite language is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz 4ff124b210 update 5 years ago
compiler-lang update 5 years ago
script-lang fixed missing conversion to kilo bytes in ruby script and missing param 5 years ago
README.md update 5 years ago
data.log.tar.xz add data.log.tar.xz 5 years ago
result.txt update 5 years ago
run.sh update 5 years ago
testdata.log add testdata 5 years ago

README.md

sumdata

show me how fast your favorite language is

  • data.log has 1mio lines.
    • for example
    • 1402167211.219568 7935 ziproxy@1.2.3.4 S 76297 76297 GET http://lO8FzwGnE%?6Q?kOJtJ3"oURnQgzww7pA&yMQ7LU9L)ZEx"QrC80VyWfvsOW
  • separator is 1-5 spaces
  • sum column 5, divide the result with 1000 and display it as “Original size $var kb.\n”
  • sum column 6, divide the result with 1000 and display it as “Compressed size $var kb.\n”
  • system() or exec commands etc. are not allowed for script languages

I’ll run every committed script on the same digital ocean 512MB VPS (Ubuntu 14.04 LTS) to have compareable values.
So please note, there is probably not enough memory to load the file complete into the memory.

  • data.log.tar.xz is the big file
  • testdata.log is a small 100 lines long file for development

finished

  • lua
  • octave
  • awk
  • perl
  • bash
  • c
  • ruby

most wanted

  • python
  • java

results

$ ./run.sh &>> result.txt