PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@stablelib/hex/lib

Просмотр файла: hex.bench.js

"use strict";
// Copyright (C) 2016 Dmitry Chestnykh
// MIT License. See LICENSE file for details.
Object.defineProperty(exports, "__esModule", { value: true });
var hex_1 = require("./hex");
var benchmark_1 = require("@stablelib/benchmark");
var buf = benchmark_1.byteSeq(1024);
var encBuf = hex_1.encode(buf);
benchmark_1.report("Hex encode", benchmark_1.benchmark(function () { return hex_1.encode(buf); }, buf.length));
// Decode benchmark reports MiB/s for decoded MiB, not input.
benchmark_1.report("Hex decode", benchmark_1.benchmark(function () { return hex_1.decode(encBuf); }, buf.length));
//# sourceMappingURL=hex.bench.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!