Skip to content

euantorano/faster-command-line-tools-in-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faster Command Line Tools in Nim

This is a project to test how Nim compares to D in one very specific scenario. It was inspired by the Faster Command line Tools in D blog post.

There's a full blog post explaining the reasoning and with some basic results form my system available here.

Running the tests

All versions are built and ran using Docker.

To run every version and dump results into the output folder, you can use the run Make target:

make run

You can also run individual targets if you're working on improving a target:

  • C: make c_run
  • D: make d_run
  • Go: make go_run
  • Nim: make nim_run
  • Python: make python_run

This will download the resources/ngrams.tsv if it doesn't already exist

Results

This repository is built by Travis for every push or PR. Results are published to the gh-pages branch:

TODO

  • Build an overall results file which will be published to GitHub pages - possibly include graphs in this file?
  • Run each version multiple times and take the average run times

About

A comparison of Nim's performance against the "Faster Command Line Tools in D" blog post found here: http://dlang.org/blog/2017/05/24/faster-command-line-tools-in-d/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published