Skip to content

Commit

Permalink
Updated v8.0.0 and added comparison document
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Power committed Aug 25, 2018
1 parent 2eea66b commit ee5df4b
Show file tree
Hide file tree
Showing 19 changed files with 1,963 additions and 26 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# 8.0.0
* A language's comments, and quotes are now available through the `LanguageType`
enum.
* Tokei now understands terminal width and will expand to fit it. (Thanks
to @Veykril)
* Added [comparison](./COMPARISON.md) document to compare Tokei to other
code counters.
* Updated dependencies

**Added languages**
- @BrandonBoone VB6, VBScript, XSLT
- @ialpert BrightScript
- @PJB3005 Dream Maker
- @schmee edn

# 7.0.3

Made various optimisations, up to 65% faster in some cases.
Expand Down
742 changes: 742 additions & 0 deletions COMPARISON.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT/Apache-2.0"
name = "tokei"
readme = "README.md"
repository = "https://github.com/Aaronepower/tokei.git"
version = "7.0.3"
version = "8.0.0"

[badges]
[badges.appveyor]
Expand Down
24 changes: 2 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,8 @@ This is tokei running on its own directory

## Features

- Tokei is **very fast**, below are the Tokei's times on a select few large
repositories, with a hot cache(_times are in seconds and measured using
[`hyperfine`](https://github.com/sharkdp/hyperfine) on macOS Sierra,
with 2.7 GHz Intel Core i7, results will vary_).

| Repository | Files | Lines | Real time |
|----------------|--------|------------|-----------|
| UnrealEngine 4 | 77,150 | 23,346,363 | 2.55s |
| DragonFlyBSD | 27,506 | 14,543,104 | 1.26s |
| Rust | 11,159 | 984,945 | 0.22s |
| CPython | 3,550 | 1,682,647 | 0.16s |

#### Commit hashes used in tests

**UnrealEngine 4** 08ee319f80ef47dbf0988e14b546b65214838ec4

**DragonFlyBSD** b3209e88d6ec0b2ca930d8b6878f781183a9894e

**Rust** 1b3d737716a4ae40709da627fc3e726ce539e405

**CPython** 00818c8ffd657f9ec727e366bfffd9c2135fa5ab

- Tokei is **very fast**, check out our [comparison](./COMPARISON.md) document
to see how Tokei's speed compares to others.

- Tokei is **accurate**, Tokei correctly handles multi line comments,
nested comments, and not counting comments that are in strings. Providing an
Expand Down
16 changes: 16 additions & 0 deletions resources/benchmark.plot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env gnuplot -c

if (strlen(ARG1) == 0) print "Usage: " . ARG0 . " <repo_name> <repo.csv>"; exit

set terminal svg
set datafile separator comma
set title "Performance on the " . ARG1 . " Repository w/o Cloc (Lower is better)"
unset key
set xlabel 'Program'
set ylabel 'Mean time (milliseconds)'
# Adjust depending on graphs.
set yrange [0:380]
set style fill solid
set style data histogram
set xtics center
plot ARG2 using 2:xtic(1) title columnheader
141 changes: 141 additions & 0 deletions resources/cpython-with-cloc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources/cpython.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
command,mean
tokei,162.616040335
scc,349.010611535
loc,100.77284752854836
# cloc,3.889367681835
Loading

0 comments on commit ee5df4b

Please sign in to comment.