本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
mort
/
lang2
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
stupid while loop benchmark
master
Martin Dørum
3 年之前
父節點
a47c9f918f
當前提交
16e07fe64a
共有
3 個檔案被更改
,包括
6 行新增
和
0 行删除
分割檢視
顯示文件統計
2
0
benchmarks/while-perf/bench.sh
2
0
benchmarks/while-perf/while-test.l2
2
0
benchmarks/while-perf/while-test.py
+ 2
- 0
benchmarks/while-perf/bench.sh
查看文件
@@ -0,0 +1,2 @@
#!/bin/sh
hyperfine '../../bx-out/target while-test.l2' 'python3 while-test.py'
+ 2
- 0
benchmarks/while-perf/while-test.l2
查看文件
@@ -0,0 +1,2 @@
i := 0
while {i < 1'000'000} {i = i + 1}
+ 2
- 0
benchmarks/while-perf/while-test.py
查看文件
@@ -0,0 +1,2 @@
i = 0
while i < 10000000: i = i + 1
Write
Preview
Loading…
取消
儲存