Skip to content

miner/key-path-tests

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 4 commits ahead, 2 commits behind mars0i:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

key-path-tests

This fork adds a faster implementation by miner49r and automates the tests so you can just do lein run to get reasonable results. The files were put into my own namespace so it won't conflict with the original. I did not update the results page. You can run the tests for yourself.

The original README follows:


Speed tests of Clojure functions that return sequences of sequences of keys representing paths through embedded maps.

keypaths.clj contains the functions I tested, some testing code, and a few other functions that I didn't test because they do something slightly different.

keypathsCriteriumTimes.txt contains timing info for the functions.

The functions are by various authors. The original versions--none of which are mine--can be found at:

http://stackoverflow.com/questions/21768802/how-can-i-get-the-nested-keys-of-a-map-in-clojure:

http://stackoverflow.com/questions/25268818/get-key-chains-of-a-tree-in-clojure

https://clojurians.slack.com/archives/C0FVDQLQ5/p1489779215484550

About

Speed tests of Clojure functions that return sequences of sequences of keys representing paths through embedded maps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%