OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 467 22 21 24.74 1.15
bin-true no-host 683 538 2,303 817 804 3.37 1.20
configure.cpython no-host 15,192 15,190 28,886 15,374 15,350 1.90 1.01
configure.ocaml no-host 3,825 3,756 4,667 3,812 3,866 1.22 1.00
configure.tcc no-host 53 41 207 48 48 3.89 0.91
configure.util-linux no-host 14,111 15,025 31,665 14,391 14,486 2.24 1.02
configure.yash no-host 1,831 1,781 2,570 1,822 1,847 1.40 1.00
hello-world no-host 1 1 57 3 3 38.22 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,552 1,119 23,853 3,156 3,096 9.35 1.24
bin-true no-host 108,319 66,466 771,490 128,243 125,322 7.12 1.18
configure.cpython no-host 2,221,200 2,240,793 6,250,870 2,219,799 2,210,503 2.81 1.00
configure.ocaml no-host 409,805 391,098 647,431 412,759 412,240 1.58 1.01
configure.tcc no-host 6,556 5,468 24,135 6,956 6,911 3.68 1.06
configure.util-linux no-host 2,100,914 2,263,144 5,396,729 1,990,457 1,994,797 2.57 0.95
configure.yash no-host 256,797 245,167 389,583 257,163 257,832 1.52 1.00
hello-world no-host 151 83 3,950 345 339 26.16 2.28

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 22.7 8.9 8.7 5.09 2.00
bin-true no-host 2.9 1.4 18.2 8.0 7.6 6.32 2.77
configure.cpython no-host 27.5 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.8 1.6 18.1 6.3 5.9 6.58 2.29

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,374 1 62 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,391 3 60 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,812 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,350 1 59 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,486 3 61 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,866 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,847 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 19 14 5 4.5 bash
15 no-host abuild-print-help 9 10 0 3.4 dash
23 no-host abuild-print-help 467 421 48 22.7 osh-cpython
31 no-host abuild-print-help 22 17 5 8.9 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 683 516 198 2.9 bash
9 no-host bin-true 538 403 143 1.4 dash
17 no-host bin-true 2,303 1,502 1,056 18.2 osh-cpython
25 no-host bin-true 817 590 238 8.0 osh-native
33 no-host bin-true 804 574 245 7.6 osh-native-souffle
2 no-host configure.cpython 15,192 9,185 6,399 27.5 bash
10 no-host configure.cpython 15,190 9,168 6,423 27.4 dash
18 no-host configure.cpython 28,886 17,820 12,927 27.4 osh-cpython
26 no-host configure.cpython 15,374 9,004 6,630 27.4 osh-native
34 no-host configure.cpython 15,350 8,905 6,568 27.4 osh-native-souffle
4 no-host configure.ocaml 3,825 1,666 1,200 20.6 bash
12 no-host configure.ocaml 3,756 1,582 1,193 20.4 dash
20 no-host configure.ocaml 4,667 2,280 1,596 20.6 osh-cpython
28 no-host configure.ocaml 3,812 1,535 1,315 20.6 osh-native
36 no-host configure.ocaml 3,866 1,619 1,283 20.6 osh-native-souffle
5 no-host configure.tcc 53 34 19 19.3 bash
13 no-host configure.tcc 41 25 17 19.3 dash
21 no-host configure.tcc 207 144 66 19.4 osh-cpython
29 no-host configure.tcc 48 29 19 19.4 osh-native
37 no-host configure.tcc 48 20 28 19.4 osh-native-souffle
3 no-host configure.util-linux 14,111 8,893 5,685 30.1 bash
11 no-host configure.util-linux 15,025 9,176 6,319 30.3 dash
19 no-host configure.util-linux 31,665 21,123 11,635 30.1 osh-cpython
27 no-host configure.util-linux 14,391 8,730 5,857 30.0 osh-native
35 no-host configure.util-linux 14,486 8,754 5,919 30.1 osh-native-souffle
6 no-host configure.yash 1,831 1,100 737 24.2 bash
14 no-host configure.yash 1,781 1,017 767 24.2 dash
22 no-host configure.yash 2,570 1,529 1,086 24.2 osh-cpython
30 no-host configure.yash 1,822 1,114 712 24.2 osh-native
38 no-host configure.yash 1,847 1,060 791 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 30 26 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,552 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,853 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,156 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,319 0 0 0 8 0 1,987 81 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,994 30 dash
17 no-host bin-true 771,490 0 0 0 8 0 1,996 226 osh-cpython
25 no-host bin-true 128,243 0 0 0 16 0 1,988 54 osh-native
33 no-host bin-true 125,322 0 0 0 16 0 1,993 95 osh-native-souffle
2 no-host configure.cpython 2,221,200 0 0 0 32,928 0 14,498 1,005 bash
10 no-host configure.cpython 2,240,793 0 0 0 32,992 0 14,612 970 dash
18 no-host configure.cpython 6,250,870 0 0 0 27,512 0 13,229 1,107 osh-cpython
26 no-host configure.cpython 2,219,799 0 0 0 27,520 0 13,223 981 osh-native
34 no-host configure.cpython 2,210,503 0 0 0 27,520 0 13,138 970 osh-native-souffle
4 no-host configure.ocaml 409,805 0 0 0 5,120 0 1,933 195 bash
12 no-host configure.ocaml 391,098 0 0 0 5,112 0 1,940 147 dash
20 no-host configure.ocaml 647,431 1 0 0 5,112 0 1,861 187 osh-cpython
28 no-host configure.ocaml 412,759 0 0 0 5,120 0 1,923 172 osh-native
36 no-host configure.ocaml 412,240 0 0 0 5,120 0 1,931 172 osh-native-souffle
5 no-host configure.tcc 6,556 0 0 0 104 0 52 1 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,135 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,911 0 0 0 104 0 46 1 osh-native-souffle
3 no-host configure.util-linux 2,100,914 0 0 0 42,400 0 18,601 920 bash
11 no-host configure.util-linux 2,263,144 0 0 0 42,584 0 17,399 973 dash
19 no-host configure.util-linux 5,396,729 4 0 0 39,112 0 16,943 1,170 osh-cpython
27 no-host configure.util-linux 1,990,457 0 0 0 39,120 0 16,967 983 osh-native
35 no-host configure.util-linux 1,994,797 0 0 0 39,136 0 16,988 892 osh-native-souffle
6 no-host configure.yash 256,797 0 0 0 4,120 0 869 71 bash
14 no-host configure.yash 245,167 0 0 0 3,720 0 867 65 dash
22 no-host configure.yash 389,583 1 0 0 3,728 0 854 85 osh-cpython
30 no-host configure.yash 257,163 0 0 0 3,736 0 845 73 osh-native
38 no-host configure.yash 257,832 0 0 0 3,736 0 848 82 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-40bbf1a2
dash dash-0ebcf347
osh-cpython osh-f2e55afc
osh-native osh-d05fb26e
osh-native-souffle osh-fdba954b
host label host id
no-host no-host-556df3ee