Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
686b9099
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
686b9099
编写于
1月 12, 2021
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-2598] feature: C# taosdemo, hide config print.
上级
6d27ca40
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
25 deletion
+25
-25
tests/examples/C#/taosdemo/taosdemo.cs
tests/examples/C#/taosdemo/taosdemo.cs
+25
-25
未找到文件。
tests/examples/C#/taosdemo/taosdemo.cs
浏览文件 @
686b9099
...
@@ -142,33 +142,33 @@ namespace TDengineDriver
...
@@ -142,33 +142,33 @@ namespace TDengineDriver
verbose
=
this
.
GetArgumentAsFlag
(
argv
,
"-v"
,
true
);
verbose
=
this
.
GetArgumentAsFlag
(
argv
,
"-v"
,
true
);
debug
=
this
.
GetArgumentAsFlag
(
argv
,
"-g"
,
true
);
debug
=
this
.
GetArgumentAsFlag
(
argv
,
"-g"
,
true
);
Console
.
Write
(
"###################################################################\n"
);
VerbosePrint
(
"###################################################################\n"
);
Console
.
Write
(
"# Server IP: {0}\n"
,
host
);
VerbosePrintFormat
(
"# Server IP: {0}\n"
,
host
);
Console
.
Write
(
"# User: {0}\n"
,
user
);
VerbosePrintFormat
(
"# User: {0}\n"
,
user
);
Console
.
Write
(
"# Password: {0}\n"
,
password
);
VerbosePrintFormat
(
"# Password: {0}\n"
,
password
);
Console
.
Write
(
"# Number of Columns per record: {0}\n"
,
colsPerRecord
);
VerbosePrintFormat
(
"# Number of Columns per record: {0}\n"
,
colsPerRecord
);
Console
.
Write
(
"# Number of Threads: {0}\n"
,
numOfThreads
);
VerbosePrintFormat
(
"# Number of Threads: {0}\n"
,
numOfThreads
);
Console
.
Write
(
"# Number of Tables: {0}\n"
,
numOfTables
);
VerbosePrintFormat
(
"# Number of Tables: {0}\n"
,
numOfTables
);
Console
.
Write
(
"# Number of records per Table: {0}\n"
,
recordsPerTable
);
VerbosePrintFormat
(
"# Number of records per Table: {0}\n"
,
recordsPerTable
);
Console
.
Write
(
"# Records/Request: {0}\n"
,
recordsPerRequest
);
VerbosePrintFormat
(
"# Records/Request: {0}\n"
,
recordsPerRequest
);
Console
.
Write
(
"# Database name: {0}\n"
,
dbName
);
VerbosePrintFormat
(
"# Database name: {0}\n"
,
dbName
);
Console
.
Write
(
"# Replica: {0}\n"
,
replica
);
VerbosePrintFormat
(
"# Replica: {0}\n"
,
replica
);
Console
.
Write
(
"# Use STable: {0}\n"
,
useStable
);
VerbosePrintFormat
(
"# Use STable: {0}\n"
,
useStable
);
Console
.
Write
(
"# Table prefix: {0}\n"
,
tablePrefix
);
VerbosePrintFormat
(
"# Table prefix: {0}\n"
,
tablePrefix
);
if
(
useStable
==
true
)
if
(
useStable
==
true
)
{
{
Console
.
Write
(
"# STable prefix: {0}\n"
,
stablePrefix
);
VerbosePrintFormat
(
"# STable prefix: {0}\n"
,
stablePrefix
);
}
}
Console
.
Write
(
"# Data order: {0}\n"
,
order
);
VerbosePrintFormat
(
"# Data order: {0}\n"
,
order
);
Console
.
Write
(
"# Data out of order rate: {0}\n"
,
rateOfOutorder
);
VerbosePrintFormat
(
"# Data out of order rate: {0}\n"
,
rateOfOutorder
);
Console
.
Write
(
"# Delete method: {0}\n"
,
methodOfDelete
);
VerbosePrintFormat
(
"# Delete method: {0}\n"
,
methodOfDelete
);
Console
.
Write
(
"# Query command: {0}\n"
,
query
);
VerbosePrintFormat
(
"# Query command: {0}\n"
,
query
);
Console
.
Write
(
"# Query Mode: {0}\n"
,
queryMode
);
VerbosePrintFormat
(
"# Query Mode: {0}\n"
,
queryMode
);
Console
.
Write
(
"# Insert Only: {0}\n"
,
isInsertOnly
);
VerbosePrintFormat
(
"# Insert Only: {0}\n"
,
isInsertOnly
);
Console
.
Write
(
"# Verbose output {0}\n"
,
verbose
);
VerbosePrintFormat
(
"# Verbose output {0}\n"
,
verbose
);
Console
.
Write
(
"# Test time: {0}\n"
,
DateTime
.
Now
.
ToString
(
"h:mm:ss tt"
));
VerbosePrintFormat
(
"# Test time: {0}\n"
,
DateTime
.
Now
.
ToString
(
"h:mm:ss tt"
));
Console
.
Write
(
"###################################################################\n"
);
VerbosePrint
(
"###################################################################\n"
);
if
(
skipReadKey
==
false
)
if
(
skipReadKey
==
false
)
{
{
...
@@ -629,7 +629,7 @@ namespace TDengineDriver
...
@@ -629,7 +629,7 @@ namespace TDengineDriver
watch
.
Stop
();
watch
.
Stop
();
double
elapsedMs
=
watch
.
Elapsed
.
TotalMilliseconds
;
double
elapsedMs
=
watch
.
Elapsed
.
TotalMilliseconds
;
Console
.
WriteLine
(
"Spent {0} seconds to insert {1} records with {2} record(s) per request: {3} records/second"
,
Console
.
WriteLine
(
"
C# taosdemo:
Spent {0} seconds to insert {1} records with {2} record(s) per request: {3} records/second"
,
elapsedMs
/
1000
,
elapsedMs
/
1000
,
tester
.
recordsPerTable
*
tester
.
numOfTables
,
tester
.
recordsPerTable
*
tester
.
numOfTables
,
tester
.
batchRows
,
tester
.
batchRows
,
...
@@ -642,7 +642,7 @@ namespace TDengineDriver
...
@@ -642,7 +642,7 @@ namespace TDengineDriver
tester
.
ExecuteQuery
();
tester
.
ExecuteQuery
();
watch
.
Stop
();
watch
.
Stop
();
elapsedMs
=
watch
.
Elapsed
.
TotalMilliseconds
;
elapsedMs
=
watch
.
Elapsed
.
TotalMilliseconds
;
Console
.
WriteLine
(
"Spent {0} seconds to query {1} records.\n"
,
Console
.
WriteLine
(
"
C# taosdemo:
Spent {0} seconds to query {1} records.\n"
,
elapsedMs
/
1000
,
elapsedMs
/
1000
,
tester
.
recordsPerTable
*
tester
.
numOfTables
tester
.
recordsPerTable
*
tester
.
numOfTables
);
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录