From 51fc8d660b9d8695423b084ef30021724d27d356 Mon Sep 17 00:00:00 2001 From: standy Date: Mon, 10 Feb 2020 17:31:07 +0300 Subject: [PATCH] test: script for updating benchmark --- benchmark/index.js | 5 +++++ benchmark/package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/benchmark/index.js b/benchmark/index.js index d15c679..c2ca238 100644 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -1,3 +1,7 @@ +console.log('Performance test compared to `momentjs` and `date-fns`'); +console.log(' '); +console.log('```'); + require('./log-versions'); require('./suites/add-days'); require('./suites/add-hours'); @@ -8,3 +12,4 @@ require('./suites/format'); require('./suites/format-iso'); require('./suites/parse-iso'); +console.log('```'); diff --git a/benchmark/package.json b/benchmark/package.json index 64e0aa7..b452207 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -12,6 +12,7 @@ }, "devDependencies": {}, "scripts": { + "update-readme": "node ./index.js > README.md", "start": "node ./index.js" } }