Skip to content

Commit

Permalink
Version 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Aug 13, 2017
1 parent e89e622 commit 430eb14
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 1,348 deletions.
64 changes: 0 additions & 64 deletions .remarkrc

This file was deleted.

7 changes: 0 additions & 7 deletions .tern-project

This file was deleted.

2 changes: 0 additions & 2 deletions AUTHORS

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Maojian is licensed for use as follows:
MIT License

Copyright (c) 2016–2017 maojian contributors
see https://github.com/metarhia/maojian/blob/master/AUTHORS
see https://github.com/metarhia/maojian/graphs/contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# maojian

[![bitHound Dependencies][bithound-deps-badge]][bithound-deps-url]
[![bitHound Dev Dependencies][bithound-devdeps-badge]][bithound-deps-url]
[![bitHound Code][bithound-code-badge]][bithound-url]

[![Travis Build Status][travis-badge]][travis-url]
[![AppVeyor Build Status][appveyor-badge]][appveyor-url]
[![TravisCI](https://travis-ci.org/metarhia/maojian.svg?branch=master)](https://travis-ci.org/metarhia/maojian)
[![bitHound](https://www.bithound.io/github/metarhia/maojian/badges/score.svg)](https://www.bithound.io/github/metarhia/maojian)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/79d81f700ad441568d1dc6cca687ea77)](https://www.codacy.com/app/metarhia/maojian)
[![NPM Version](https://badge.fury.io/js/maojian.svg)](https://badge.fury.io/js/maojian)
[![NPM Downloads/Month](https://img.shields.io/npm/dm/maojian.svg)](https://www.npmjs.com/package/maojian)
[![NPM Downloads](https://img.shields.io/npm/dt/maojian.svg)](https://www.npmjs.com/package/maojian)

Welcome there, stranger.

Expand Down Expand Up @@ -59,12 +59,6 @@ and runner built on the following principles:

The development has just started. Stay tuned for `0.1.0` if you are interested.

[bithound-deps-badge]: https://www.bithound.io/github/metarhia/maojian/badges/dependencies.svg
[bithound-devdeps-badge]: https://www.bithound.io/github/metarhia/maojian/badges/devDependencies.svg
[bithound-code-badge]: https://www.bithound.io/github/metarhia/maojian/badges/code.svg
[bithound-deps-url]: https://www.bithound.io/github/metarhia/maojian/master/dependencies/npm
[bithound-url]: https://www.bithound.io/github/metarhia/maojian
[travis-badge]: https://travis-ci.org/metarhia/maojian.svg?branch=master
[travis-url]: https://travis-ci.org/metarhia/maojian
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/vvysb66gccem97dq/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/metarhia/maojian
## Contributors

- See github for full [contributors list](https://github.com/metarhia/maojian/graphs/contributors)
8 changes: 2 additions & 6 deletions lib/speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ const speed = (
let i;
for (i = 0; i < count; i++) result.push(fn());
const end = process.hrtime(begin);
const diff = end[0] * 1e9 + end[1];
const time = lpad(diff.toString(), '.', 15);
const time = end[0] * 1e9 + end[1];
const name = rpad(fn.name, '.', 25);
console.log(
name + '(' + result.length + ')' + time + ' nanoseconds'
);
return { name, time: diff };
return { name, time };
});
console.log();
const top = times.sort((t1, t2) => (t1.time - t2.time));
Expand Down
Loading

0 comments on commit 430eb14

Please sign in to comment.