diff --git a/packages/frontend/src/components/VDFtester.svelte b/packages/frontend/src/components/VDFtester.svelte index d24aba8..52ab12f 100644 --- a/packages/frontend/src/components/VDFtester.svelte +++ b/packages/frontend/src/components/VDFtester.svelte @@ -1,44 +1,43 @@
-

VDF 基准测试

+

VDF 基准测试

{#if !bigintSupported}

@@ -186,92 +191,94 @@ {/if} - {#if isBenchmarking} -

- 正在测试: {currentTestIndex + 1}/{testCombinations.length} -

- {#if currentN !== null && currentDifficulty !== null} -

密钥长度: {currentN.toString(2).length} 比特

-

难度: {currentDifficulty.toLocaleString()}

-
-
-
-
-
- {/if} - {/if} + {#if isBenchmarking} +

+ 正在测试: {currentTestIndex + 1}/{testCombinations.length} +

+ {#if currentN !== null && currentDifficulty !== null} +

密钥长度: {currentN.toString(2).length} 比特

+

难度: {currentDifficulty.toLocaleString()}

+
+
+
+
+
+ {/if} + {/if} - {#if benchmarkResults.length > 0 && !isBenchmarking} -

测试结果

-

- 测试在 {(getAccumulatedTime() / 1000).toFixed(3)} 秒内完成.
+ {#if benchmarkResults.length > 0 && !isBenchmarking} +

测试结果

+

+ 测试在 {(getAccumulatedTime() / 1000).toFixed(3)} 秒内完成.
速度: {Math.round(getSpeed()).toLocaleString()} 迭代 / 秒.
速度是在 N = {speedSample.N.toString(2).length} bits, T = {speedSample.difficulty} 的测试中测量的. -
- 浏览器版本:{browser} -

- - - - - - - - - - {#each benchmarkResults as result} - - - - - - {/each} - -
耗时 (ms)N (bits)T (迭代)
- {result.time.toFixed(2)} - - {result.N.toString(2).length} - - {Number(result.difficulty)} -
- {/if} +
+ {#if browserInfo} + 浏览器版本:{browserInfo} + {/if} +

+ + + + + + + + + + {#each benchmarkResults as result} + + + + + + {/each} + +
耗时 (ms)N (bits)T (迭代)
+ {result.time.toFixed(2)} + + {result.N.toString(2).length} + + {Number(result.difficulty)} +
+ {/if}
{#if !isBenchmarking} -
0 && !isBenchmarking ? "" : "absolute left-1/2 -translate-x-1/2 top-72")} - transition:fade={{ duration: 200 }} - > -

关于本页

-
-

- 这是一个性能测试页面,
- 旨在测试我们的一个 VDF (Verifiable Delayed Function, 可验证延迟函数) 实现的性能。
- 这是一个数学函数,它驱动了整个网站的验证码(CAPTCHA)。
- 通过使用该函数,我们可以让您无需通过点选图片或滑动滑块既可完成验证, 同时防御我们的网站,使其免受自动程序的攻击。 -
-

-

- 点击 Start Benchmark 按钮,会自动测试并展示结果。
-

-

- 你可以将结果发送至邮箱: contact@alikia2x.com - 或 QQ:1559913735,并附上自己的设备信息 - (例如,手机型号、电脑的 CPU 型号等)。
- 我们会根据测试结果,优化我们的实现,使性能更优。
- 感谢你的支持!
-

-
-
+ transition:fade={{ duration: 200 }} + > +

关于本页

+
+

+ 这是一个性能测试页面,
+ 旨在测试我们的一个 VDF (Verifiable Delayed Function, 可验证延迟函数) 实现的性能。
+ 这是一个数学函数,它驱动了整个网站的验证码(CAPTCHA)。
+ 通过使用该函数,我们可以让您无需通过点选图片或滑动滑块既可完成验证, 同时防御我们的网站,使其免受自动程序的攻击。 +
+

+

+ 点击 Start Benchmark 按钮,会自动测试并展示结果。
+

+

+ 你可以将结果发送至邮箱: contact@alikia2x.com + 或 QQ:1559913735,并附上自己的设备信息 + (例如,手机型号、电脑的 CPU 型号等)。
+ 我们会根据测试结果,优化我们的实现,使性能更优。
+ 感谢你的支持!
+

+
+ {/if}