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 473 21 21 24.97 1.13
bin-true no-host 661 538 2,406 782 784 3.64 1.18
configure.cpython no-host 15,137 14,998 29,415 14,829 14,984 1.94 0.98
configure.ocaml no-host 3,865 3,724 4,608 3,749 3,774 1.19 0.97
configure.tcc no-host 48 41 206 49 48 4.25 1.00
configure.util-linux no-host 14,126 14,730 32,040 13,880 13,782 2.27 0.98
configure.yash no-host 1,890 1,781 2,445 1,793 1,812 1.29 0.95
hello-world no-host 2 1 58 3 3 36.92 1.75

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,504 1,096 24,137 3,178 3,081 9.64 1.27
bin-true no-host 106,401 66,453 803,817 127,218 125,275 7.55 1.20
configure.cpython no-host 1,999,620 2,030,179 6,086,217 2,020,680 2,000,952 3.04 1.01
configure.ocaml no-host 373,474 353,524 614,751 376,257 376,268 1.65 1.01
configure.tcc no-host 6,073 4,991 24,054 6,510 6,447 3.96 1.07
configure.util-linux no-host 1,912,530 2,081,949 5,295,638 1,822,214 1,810,181 2.77 0.95
configure.yash no-host 233,841 222,133 369,305 235,744 235,688 1.58 1.01
hello-world no-host 147 78 3,974 346 344 27.03 2.35

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.3 3.5 22.9 9.0 8.7 5.29 2.09
bin-true no-host 3.0 1.4 18.5 8.3 7.5 6.15 2.74
configure.cpython no-host 29.2 29.2 29.2 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.5 19.8 19.5 19.6 1.01 1.00
configure.util-linux no-host 30.3 30.2 30.3 30.4 30.1 1.00 1.00
configure.yash no-host 26.4 26.4 26.5 26.4 26.3 1.01 1.00
hello-world no-host 2.9 1.6 18.4 6.4 5.9 6.38 2.23

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.3 6.4 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 782 1 2 2.6 8.3 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 14,829 1 68 15.5 29.3 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 13,880 3 61 21.6 30.4 2,709,214 53,761 65,725 114,372 1,296,230 1,298,612 32,241 41 131,450 1
configure.ocaml no-host 3,749 1 2 2.6 22.6 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.6 26.4 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,337 64,419 42,627 4,544 54,462 57,331 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 784 1 2 2.6 7.5 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,984 1 69 15.4 29.3 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 13,782 3 63 21.6 30.1 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,774 1 2 2.6 22.6 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.6 26.3 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,336 64,414 42,622 4,545 54,462 57,329 277 3 85,244 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 11 8 4.3 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 473 419 57 22.9 osh-cpython
31 no-host abuild-print-help 21 14 8 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 661 299 396 3.0 bash
9 no-host bin-true 538 275 275 1.4 dash
17 no-host bin-true 2,406 825 1,831 18.5 osh-cpython
25 no-host bin-true 782 296 503 8.3 osh-native
33 no-host bin-true 784 297 505 7.5 osh-native-souffle
2 no-host configure.cpython 15,137 6,844 8,725 29.2 bash
10 no-host configure.cpython 14,998 6,785 8,655 29.2 dash
18 no-host configure.cpython 29,415 14,667 16,698 29.2 osh-cpython
26 no-host configure.cpython 14,829 6,480 8,640 29.3 osh-native
34 no-host configure.cpython 14,984 6,692 8,571 29.3 osh-native-souffle
4 no-host configure.ocaml 3,865 1,366 1,541 22.6 bash
12 no-host configure.ocaml 3,724 1,315 1,431 22.6 dash
20 no-host configure.ocaml 4,608 1,858 1,964 22.6 osh-cpython
28 no-host configure.ocaml 3,749 1,295 1,494 22.6 osh-native
36 no-host configure.ocaml 3,774 1,334 1,479 22.6 osh-native-souffle
5 no-host configure.tcc 48 20 29 19.6 bash
13 no-host configure.tcc 41 24 17 19.5 dash
21 no-host configure.tcc 206 152 57 19.8 osh-cpython
29 no-host configure.tcc 49 25 24 19.5 osh-native
37 no-host configure.tcc 48 25 23 19.6 osh-native-souffle
3 no-host configure.util-linux 14,126 5,944 8,692 30.3 bash
11 no-host configure.util-linux 14,730 6,003 9,258 30.2 dash
19 no-host configure.util-linux 32,040 18,140 15,035 30.3 osh-cpython
27 no-host configure.util-linux 13,880 5,521 8,584 30.4 osh-native
35 no-host configure.util-linux 13,782 5,453 8,551 30.1 osh-native-souffle
6 no-host configure.yash 1,890 948 937 26.4 bash
14 no-host configure.yash 1,781 911 875 26.4 dash
22 no-host configure.yash 2,445 1,362 1,127 26.5 osh-cpython
30 no-host configure.yash 1,793 889 909 26.4 osh-native
38 no-host configure.yash 1,812 968 849 26.3 osh-native-souffle
0 no-host hello-world 2 1 1 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 58 36 22 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 1 2 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,504 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,137 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,081 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,401 0 0 0 8 0 1,983 121 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,982 65 dash
17 no-host bin-true 803,817 0 0 0 8 0 1,992 570 osh-cpython
25 no-host bin-true 127,218 0 0 0 16 0 1,974 115 osh-native
33 no-host bin-true 125,275 0 0 0 16 0 1,981 119 osh-native-souffle
2 no-host configure.cpython 1,999,620 0 0 0 32,928 0 14,304 1,038 bash
10 no-host configure.cpython 2,030,179 0 0 0 32,992 0 14,386 1,197 dash
18 no-host configure.cpython 6,086,217 0 0 0 27,512 0 13,085 1,172 osh-cpython
26 no-host configure.cpython 2,020,680 0 0 0 27,520 0 13,107 1,307 osh-native
34 no-host configure.cpython 2,000,952 0 0 0 27,520 0 13,008 1,133 osh-native-souffle
4 no-host configure.ocaml 373,474 0 0 0 5,120 0 1,947 188 bash
12 no-host configure.ocaml 353,524 0 0 0 5,112 0 1,928 175 dash
20 no-host configure.ocaml 614,751 0 0 0 5,112 0 1,855 193 osh-cpython
28 no-host configure.ocaml 376,257 0 0 0 5,120 0 1,924 200 osh-native
36 no-host configure.ocaml 376,268 0 0 0 5,120 0 1,930 222 osh-native-souffle
5 no-host configure.tcc 6,073 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 4,991 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 24,054 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,510 0 0 0 104 0 47 7 osh-native
37 no-host configure.tcc 6,447 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,912,530 0 0 0 42,400 0 18,457 1,193 bash
11 no-host configure.util-linux 2,081,949 0 0 0 42,592 0 17,352 1,377 dash
19 no-host configure.util-linux 5,295,638 7 0 0 39,112 0 16,998 1,253 osh-cpython
27 no-host configure.util-linux 1,822,214 0 0 0 39,120 0 17,026 1,189 osh-native
35 no-host configure.util-linux 1,810,181 0 0 0 39,136 0 17,033 1,180 osh-native-souffle
6 no-host configure.yash 233,841 0 0 0 4,120 0 894 90 bash
14 no-host configure.yash 222,133 0 0 0 3,720 0 864 82 dash
22 no-host configure.yash 369,305 0 0 0 3,728 0 851 104 osh-cpython
30 no-host configure.yash 235,744 0 0 0 3,736 0 846 92 osh-native
38 no-host configure.yash 235,688 0 0 0 3,736 0 851 104 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,974 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4e86cfff
dash dash-0ebcf347
osh-cpython osh-1c634d1d
osh-native osh-888129df
osh-native-souffle osh-5ca49300
host label host id
no-host no-host-e4839999