mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
3.4 KiB
127 lines
3.4 KiB
4 years ago
|
<template>
|
||
|
<v-container fluid>
|
||
3 years ago
|
<v-simple-table dense class="ignore-height-style params-table" style="">
|
||
|
<template #default>
|
||
4 years ago
|
<thead>
|
||
3 years ago
|
<tr>
|
||
3 years ago
|
<th class="text-left body-2 grey--text" width="40%">Param Name</th>
|
||
|
<th class="text-left body-2 grey--text" width="40%">Value</th>
|
||
3 years ago
|
</tr>
|
||
4 years ago
|
</thead>
|
||
|
<tbody>
|
||
3 years ago
|
<tr>
|
||
3 years ago
|
<td>Connections</td>
|
||
3 years ago
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.connections"
|
||
|
placeholder="Enter a number"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
3 years ago
|
<td>Pipeline</td>
|
||
3 years ago
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.pipelining"
|
||
|
placeholder="Enter a number"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
3 years ago
|
<td>Duration</td>
|
||
3 years ago
|
<td>
|
||
|
<v-text-field
|
||
|
v-model="perf.duration"
|
||
|
placeholder="Duration in seconds"
|
||
|
hide-details
|
||
|
single-line
|
||
|
dense
|
||
|
class="body-2"
|
||
|
type="number"
|
||
|
@input="$emit('input', perf)"
|
||
|
/>
|
||
|
</td>
|
||
|
</tr>
|
||
4 years ago
|
</tbody>
|
||
|
</template>
|
||
|
</v-simple-table>
|
||
3 years ago
|
<div class="pa-1 text-right">
|
||
|
<p class="grey--text caption">
|
||
3 years ago
|
We are using
|
||
|
<a v-ge="['api-client-perf-test', 'autocannon-link']" @click="open('https://github.com/mcollina/autocannon')"
|
||
|
>autocannon</a
|
||
|
>
|
||
3 years ago
|
</p>
|
||
|
|
||
3 years ago
|
<v-btn v-ge="['api-client-perf-test', 'clear']" outlined x-small color="warning" @click="$emit('input', {})">
|
||
3 years ago
|
Clear All Fields
|
||
|
</v-btn>
|
||
|
</div>
|
||
4 years ago
|
</v-container>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
3 years ago
|
// const {shell} = require("electron").remote.require(
|
||
|
// "./libs"
|
||
|
// );
|
||
|
export default {
|
||
|
name: 'PerfTest',
|
||
|
props: {
|
||
3 years ago
|
value: Object,
|
||
3 years ago
|
},
|
||
|
computed: {
|
||
|
perf: {
|
||
3 years ago
|
get() {
|
||
3 years ago
|
return { ...(this.value || {}) };
|
||
4 years ago
|
},
|
||
3 years ago
|
set(value) {
|
||
3 years ago
|
this.$emit('input', value);
|
||
|
},
|
||
|
},
|
||
3 years ago
|
},
|
||
|
methods: {
|
||
3 years ago
|
open(url) {
|
||
3 years ago
|
// shell.openExternal(url)
|
||
3 years ago
|
},
|
||
|
},
|
||
|
};
|
||
4 years ago
|
</script>
|
||
|
|
||
3 years ago
|
<style scoped></style>
|
||
4 years ago
|
<!--
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||
|
*
|
||
|
* @author Naveen MR <oof1lab@gmail.com>
|
||
|
* @author Pranav C Balan <pranavxc@gmail.com>
|
||
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|