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.69 1.17
bin-true no-host 670 535 2,280 809 810 3.40 1.21
configure.cpython no-host 14,931 14,973 28,649 15,183 15,273 1.92 1.02
configure.ocaml no-host 3,811 3,723 4,655 3,804 3,810 1.22 1.00
configure.tcc no-host 48 41 202 48 48 4.24 1.01
configure.util-linux no-host 13,949 14,801 31,431 14,280 14,234 2.25 1.02
configure.yash no-host 1,812 1,755 2,457 1,819 1,826 1.36 1.00
hello-world no-host 2 1 66 3 3 43.79 1.86

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,557 1,109 23,949 3,213 3,096 9.37 1.26
bin-true no-host 107,416 65,374 768,655 126,256 128,271 7.16 1.18
configure.cpython no-host 2,220,469 2,246,960 6,244,935 2,212,168 2,209,657 2.81 1.00
configure.ocaml no-host 410,480 390,887 647,519 412,853 412,796 1.58 1.01
configure.tcc no-host 6,559 5,462 24,079 6,954 6,912 3.67 1.06
configure.util-linux no-host 2,096,915 2,262,703 5,401,313 2,002,137 1,990,367 2.58 0.95
configure.yash no-host 255,714 243,975 388,728 258,367 257,538 1.52 1.01
hello-world no-host 151 79 3,943 343 340 26.11 2.27

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.5 22.8 9.0 8.5 5.12 2.03
bin-true no-host 2.9 1.4 18.2 8.0 7.9 6.32 2.77
configure.cpython no-host 27.4 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.1 1.01 1.00
configure.util-linux no-host 30.1 29.9 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 18.2 6.2 5.9 6.62 2.24

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.2 3,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.0 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,183 2 63 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,280 3 60 21.2 30.1 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,804 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.9 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,273 1 59 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,234 3 58 21.2 30.3 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,810 1 2 2.6 20.4 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,826 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 18 1 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 467 408 61 22.8 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.5 osh-native-souffle
1 no-host bin-true 670 498 206 2.9 bash
9 no-host bin-true 535 414 129 1.4 dash
17 no-host bin-true 2,280 1,476 1,059 18.2 osh-cpython
25 no-host bin-true 809 546 278 8.0 osh-native
33 no-host bin-true 810 568 256 7.9 osh-native-souffle
2 no-host configure.cpython 14,931 8,855 6,466 27.4 bash
10 no-host configure.cpython 14,973 8,975 6,417 27.5 dash
18 no-host configure.cpython 28,649 17,472 13,042 27.3 osh-cpython
26 no-host configure.cpython 15,183 8,981 6,471 27.4 osh-native
34 no-host configure.cpython 15,273 8,971 6,426 27.4 osh-native-souffle
4 no-host configure.ocaml 3,811 1,594 1,237 20.6 bash
12 no-host configure.ocaml 3,723 1,681 1,060 20.6 dash
20 no-host configure.ocaml 4,655 2,256 1,605 20.4 osh-cpython
28 no-host configure.ocaml 3,804 1,614 1,228 20.6 osh-native
36 no-host configure.ocaml 3,810 1,671 1,174 20.4 osh-native-souffle
5 no-host configure.tcc 48 32 16 19.3 bash
13 no-host configure.tcc 41 29 12 19.3 dash
21 no-host configure.tcc 202 151 53 19.4 osh-cpython
29 no-host configure.tcc 48 23 25 19.3 osh-native
37 no-host configure.tcc 48 28 20 19.1 osh-native-souffle
3 no-host configure.util-linux 13,949 8,739 5,671 30.1 bash
11 no-host configure.util-linux 14,801 9,150 6,142 29.9 dash
19 no-host configure.util-linux 31,431 20,973 11,537 30.1 osh-cpython
27 no-host configure.util-linux 14,280 8,588 5,882 30.1 osh-native
35 no-host configure.util-linux 14,234 8,424 6,003 30.3 osh-native-souffle
6 no-host configure.yash 1,812 1,088 733 24.4 bash
14 no-host configure.yash 1,755 1,010 749 24.2 dash
22 no-host configure.yash 2,457 1,517 981 24.4 osh-cpython
30 no-host configure.yash 1,819 1,050 772 24.4 osh-native
38 no-host configure.yash 1,826 1,059 768 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 66 33 33 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,557 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,949 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,416 0 0 0 8 0 1,991 57 bash
9 no-host bin-true 65,374 0 0 0 8 0 1,990 45 dash
17 no-host bin-true 768,655 0 0 0 8 0 1,997 144 osh-cpython
25 no-host bin-true 126,256 0 0 0 16 0 1,987 94 osh-native
33 no-host bin-true 128,271 0 0 0 16 0 1,993 52 osh-native-souffle
2 no-host configure.cpython 2,220,469 0 0 0 32,928 0 14,482 854 bash
10 no-host configure.cpython 2,246,960 0 0 0 32,992 0 14,642 964 dash
18 no-host configure.cpython 6,244,935 0 0 0 27,512 0 13,298 1,085 osh-cpython
26 no-host configure.cpython 2,212,168 0 0 0 27,520 0 13,204 969 osh-native
34 no-host configure.cpython 2,209,657 0 0 0 27,520 0 13,236 954 osh-native-souffle
4 no-host configure.ocaml 410,480 0 0 0 5,120 0 1,951 163 bash
12 no-host configure.ocaml 390,887 0 0 0 5,112 0 1,879 142 dash
20 no-host configure.ocaml 647,519 0 0 0 5,112 0 1,849 178 osh-cpython
28 no-host configure.ocaml 412,853 0 0 0 5,120 0 1,932 172 osh-native
36 no-host configure.ocaml 412,796 0 0 0 5,120 0 1,937 153 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,079 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,954 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,096,915 0 0 0 42,400 0 18,584 959 bash
11 no-host configure.util-linux 2,262,703 0 0 0 42,584 0 17,462 1,073 dash
19 no-host configure.util-linux 5,401,313 8 0 0 39,112 0 16,972 1,173 osh-cpython
27 no-host configure.util-linux 2,002,137 1 0 0 39,120 0 16,981 1,055 osh-native
35 no-host configure.util-linux 1,990,367 0 0 0 39,128 0 16,944 956 osh-native-souffle
6 no-host configure.yash 255,714 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 243,975 0 0 0 3,720 0 867 85 dash
22 no-host configure.yash 388,728 0 0 0 3,728 0 851 98 osh-cpython
30 no-host configure.yash 258,367 0 0 0 3,736 0 851 71 osh-native
38 no-host configure.yash 257,538 0 0 0 3,736 0 848 75 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b75ca2bc
dash dash-0ebcf347
osh-cpython osh-abccad6f
osh-native osh-7d077437
osh-native-souffle osh-15b6f6a4
host label host id
no-host no-host-556df3ee