From aaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 30 Mar 2020 16:09:32 +0530 Subject: re-format with prettier v2, fix HTML --- src/webex/pages/benchmark.tsx | 49 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'src/webex/pages/benchmark.tsx') diff --git a/src/webex/pages/benchmark.tsx b/src/webex/pages/benchmark.tsx index fe874f2b7..7de546bb0 100644 --- a/src/webex/pages/benchmark.tsx +++ b/src/webex/pages/benchmark.tsx @@ -14,7 +14,6 @@ TALER; see the file COPYING. If not, see */ - /** * Benchmarks for the wallet. * @@ -31,14 +30,12 @@ import * as React from "react"; import * as ReactDOM from "react-dom"; import { registerMountPage } from "../renderHtml"; - interface BenchmarkRunnerState { repetitions: number; result?: BenchmarkResult; running: boolean; } - function BenchmarkDisplay(props: BenchmarkRunnerState) { const result = props.result; if (!result) { @@ -50,24 +47,23 @@ function BenchmarkDisplay(props: BenchmarkRunnerState) { } return ( <> -

Results for {result.repetitions} repetitions

- - - - - - - { - Object.keys(result.time).sort().map( - k => - - - - - ) - } - -
{i18n.str`Operation`}{i18n.str`time (ms/op)`}
{k}{result.time[k] / result.repetitions}
+

Results for {result.repetitions} repetitions

+ + + + + + + {Object.keys(result.time) + .sort() + .map((k) => ( + + + + + ))} + +
{i18n.str`Operation`}{i18n.str`time (ms/op)`}
{k}{result.time[k] / result.repetitions}
); } @@ -91,10 +87,13 @@ class BenchmarkRunner extends React.Component { return (
- this.setState({ repetitions: Number.parseInt(evt.target.value) })} /> - {" "} + + this.setState({ repetitions: Number.parseInt(evt.target.value) }) + } + />{" "}
-- cgit v1.2.3