Skip to content
Permalink
Browse files

Updated v8.0.0 and added comparison document

  • Loading branch information...
XAMPPRocky committed Aug 25, 2018
1 parent 2eea66b commit ee5df4b4d3ee13ef26a3017941d809c29a965432
@@ -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.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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]
@@ -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
@@ -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
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg
width="600" height="480"
viewBox="0 0 600 480"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>

<title>Gnuplot</title>
<desc>Produced by GNUPLOT 5.2 patchlevel 4 </desc>

<g id="gnuplot_canvas">

<rect x="0" y="0" width="600" height="480" fill="none"/>
<defs>

<circle id='gpDot' r='0.5' stroke-width='0.5' stroke='currentColor'/>
<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>
<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>
<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>
<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>
<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>
<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>
<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>
<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>
<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>
<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>
<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>
<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>
<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>
<path id='gpPt13' stroke-width='0.222' stroke='currentColor' d='M0,1.330 L1.265,0.411 L0.782,-1.067 L-0.782,-1.076 L-1.265,0.411 z'/>
<use xlink:href='#gpPt13' id='gpPt14' fill='currentColor' stroke='none'/>
<filter id='textbox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>
<feFlood flood-color='white' flood-opacity='1' result='bgnd'/>
<feComposite in='SourceGraphic' in2='bgnd' operator='atop'/>
</filter>
<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>
<feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>
<feComposite in='SourceGraphic' in2='grey' operator='atop'/>
</filter>
</defs>
<g fill="none" color="white" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,422.4 L64.3,422.4 M575.0,422.4 L566.0,422.4 '/> <g transform="translate(47.0,426.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 0</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,348.7 L64.3,348.7 M575.0,348.7 L566.0,348.7 '/> <g transform="translate(47.0,352.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 1</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,275.1 L64.3,275.1 M575.0,275.1 L566.0,275.1 '/> <g transform="translate(47.0,279.0)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 2</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,201.4 L64.3,201.4 M575.0,201.4 L566.0,201.4 '/> <g transform="translate(47.0,205.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 3</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,127.8 L64.3,127.8 M575.0,127.8 L566.0,127.8 '/> <g transform="translate(47.0,131.7)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 4</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,54.1 L64.3,54.1 M575.0,54.1 L566.0,54.1 '/> <g transform="translate(47.0,58.0)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="end">
<text><tspan font-family="Arial" > 5</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M159.2,422.4 L159.2,413.4 M159.2,54.1 L159.2,63.1 '/> <g transform="translate(159.2,444.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >tokei</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M263.2,422.4 L263.2,413.4 M263.2,54.1 L263.2,63.1 '/> <g transform="translate(263.2,444.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >scc</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M367.1,422.4 L367.1,413.4 M367.1,54.1 L367.1,63.1 '/> <g transform="translate(367.1,444.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >loc</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M471.1,422.4 L471.1,413.4 M471.1,54.1 L471.1,63.1 '/> <g transform="translate(471.1,444.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >cloc</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,54.1 L55.3,422.4 L575.0,422.4 L575.0,54.1 L55.3,54.1 Z '/></g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g transform="translate(16.3,238.3) rotate(270)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >Mean time (seconds)</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g transform="translate(315.1,471.3)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >Program</tspan></text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g transform="translate(315.1,31.0)" stroke="none" fill="black" font-family="Arial" font-size="12.00" text-anchor="middle">
<text><tspan font-family="Arial" >Performance on the Cpython Repository w/ Cloc (Lower is better)</tspan></text>
</g>
</g>
<g id="gnuplot_plot_1" ><title>mean</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g stroke='none' shape-rendering='crispEdges'>
<polygon fill = 'rgb(148, 0, 211)' points = '159.2,422.4 194.0,422.4 194.0,410.3 159.2,410.3 '/>
</g>
<path stroke='rgb(148, 0, 211)' d='M159.2,422.4 L159.2,410.4 L193.9,410.4 L193.9,422.4 L159.2,422.4 Z '/> <g stroke='none' shape-rendering='crispEdges'>
<polygon fill = 'rgb(148, 0, 211)' points = '263.2,422.4 297.9,422.4 297.9,396.6 263.2,396.6 '/>
</g>
<path stroke='rgb(148, 0, 211)' d='M263.2,422.4 L263.2,396.7 L297.8,396.7 L297.8,422.4 L263.2,422.4 Z '/> <g stroke='none' shape-rendering='crispEdges'>
<polygon fill = 'rgb(148, 0, 211)' points = '367.1,422.4 401.9,422.4 401.9,414.9 367.1,414.9 '/>
</g>
<path stroke='rgb(148, 0, 211)' d='M367.1,422.4 L367.1,415.0 L401.8,415.0 L401.8,422.4 L367.1,422.4 Z '/> <g stroke='none' shape-rendering='crispEdges'>
<polygon fill = 'rgb(148, 0, 211)' points = '471.1,422.4 505.8,422.4 505.8,135.8 471.1,135.8 '/>
</g>
<path stroke='rgb(148, 0, 211)' d='M471.1,422.4 L471.1,135.9 L505.7,135.9 L505.7,422.4 L471.1,422.4 Z '/></g>
</g>
<g fill="none" color="white" stroke="rgb(148, 0, 211)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="black" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='black' d='M55.3,54.1 L55.3,422.4 L575.0,422.4 L575.0,54.1 L55.3,54.1 Z '/></g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
</g>
</svg>

@@ -0,0 +1,5 @@
command,mean
tokei,162.616040335
scc,349.010611535
loc,100.77284752854836
# cloc,3.889367681835
Oops, something went wrong.

0 comments on commit ee5df4b

Please sign in to comment.
You can’t perform that action at this time.