-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark: Inline code from benchmark.js (#2019)
- Loading branch information
1 parent
758d08a
commit 4600e1d
Showing
4 changed files
with
155 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// @noflow | ||
|
||
'use strict'; | ||
|
||
function red(str) { | ||
return '\u001b[31m' + str + '\u001b[0m'; | ||
} | ||
|
||
function green(str) { | ||
return '\u001b[32m' + str + '\u001b[0m'; | ||
} | ||
|
||
function yellow(str) { | ||
return '\u001b[33m' + str + '\u001b[0m'; | ||
} | ||
|
||
function cyan(str) { | ||
return '\u001b[36m' + str + '\u001b[0m'; | ||
} | ||
|
||
function grey(str) { | ||
return '\u001b[90m' + str + '\u001b[0m'; | ||
} | ||
|
||
module.exports = { | ||
red, | ||
green, | ||
yellow, | ||
cyan, | ||
grey, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -751,14 +751,6 @@ balanced-match@^1.0.0: | |
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" | ||
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= | ||
|
||
[email protected]: | ||
version "2.1.4" | ||
resolved "https://registry.yarnpkg.com/benchmark/-/benchmark-2.1.4.tgz#09f3de31c916425d498cc2ee565a0ebf3c2a5629" | ||
integrity sha1-CfPeMckWQl1JjMLuVloOvzwqVik= | ||
dependencies: | ||
lodash "^4.17.4" | ||
platform "^1.3.3" | ||
|
||
brace-expansion@^1.1.7: | ||
version "1.1.11" | ||
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" | ||
|
@@ -1699,7 +1691,7 @@ lodash.flattendeep@^4.4.0: | |
resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" | ||
integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI= | ||
|
||
lodash@^4.17.11, lodash@^4.17.4: | ||
lodash@^4.17.11: | ||
version "4.17.11" | ||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" | ||
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== | ||
|
@@ -2129,11 +2121,6 @@ pkg-dir@^3.0.0: | |
dependencies: | ||
find-up "^3.0.0" | ||
|
||
platform@^1.3.3: | ||
version "1.3.5" | ||
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.5.tgz#fb6958c696e07e2918d2eeda0f0bc9448d733444" | ||
integrity sha512-TuvHS8AOIZNAlE77WUDiR4rySV/VMptyMfcfeoMgs4P8apaZM3JrnbzBiixKUv+XR6i+BXrQh8WAnjaSPFO65Q== | ||
|
||
prelude-ls@~1.1.2: | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" | ||
|