diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-08-28 11:57:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 11:57:06 -0400 |
commit | 2573d0957f7c724e89aa6e9118e16bd44fca7a67 (patch) | |
tree | 28fdc1e9ed99a9c898226d59052e283b72b1037a | |
parent | 7e946858a4a0a03c1461590c6fc8a315738a627a (diff) |
fix benchmark publish (#7232)
-rwxr-xr-x | tools/build_benchmark_jsons.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/build_benchmark_jsons.py b/tools/build_benchmark_jsons.py index 315dd9cb6..164eb9746 100755 --- a/tools/build_benchmark_jsons.py +++ b/tools/build_benchmark_jsons.py @@ -2,7 +2,17 @@ # Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import os from util import build_path -from benchmark import read_json, write_json + + +def read_json(filename): + with open(filename) as json_file: + return json.load(json_file) + + +def write_json(filename, data): + with open(filename, 'w') as outfile: + json.dump(data, outfile) + current_data_file = os.path.join(build_path(), "bench.json") all_data_file = "gh-pages/data.json" # Includes all benchmark data. |