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 21 10 551 25 26 26.17 1.20
bin-true no-host 722 568 3,006 873 882 4.16 1.21
configure.cpython no-host 17,830 17,576 36,179 17,989 17,705 2.03 1.01
configure.ocaml no-host 4,288 4,317 5,432 4,297 4,360 1.27 1.00
configure.tcc no-host 55 45 264 57 58 4.76 1.02
configure.util-linux no-host 16,727 17,181 39,022 16,953 17,359 2.33 1.01
configure.yash no-host 2,117 2,074 2,968 2,139 2,145 1.40 1.01
hello-world no-host 2 1 78 3 3 38.18 1.50

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,537 1,106 23,861 3,191 3,122 9.41 1.26
bin-true no-host 104,352 66,431 783,438 128,215 127,096 7.51 1.23
configure.cpython no-host 1,996,491 2,015,663 6,014,449 2,013,110 1,988,262 3.01 1.01
configure.ocaml no-host 373,010 353,451 610,372 376,536 375,646 1.64 1.01
configure.tcc no-host 6,117 4,994 23,747 6,506 6,434 3.88 1.06
configure.util-linux no-host 1,911,122 2,074,355 5,209,985 1,809,286 1,803,219 2.73 0.95
configure.yash no-host 233,206 221,783 366,999 235,628 234,960 1.57 1.01
hello-world no-host 148 77 4,003 345 336 27.05 2.33

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.7 9.0 8.7 5.10 2.03
bin-true no-host 2.9 1.4 18.4 8.3 7.6 6.38 2.86
configure.cpython no-host 29.2 29.1 29.1 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.6 19.5 19.7 19.5 19.5 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.64 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,799 3,799 0 695 1,865 1,239 2 0 50,000 0
bin-true no-host 873 1 2 2.6 8.3 153,767 12,331 2,896 8,744 76,331 68,692 3,008 3 50,000 0
configure.cpython no-host 17,989 4 94 14.9 29.1 1,767,685 49,062 28,521 85,428 875,388 806,869 25,736 60 50,000 0
configure.util-linux no-host 16,953 5 87 21.2 30.2 2,699,035 29,942 65,700 108,703 1,288,285 1,302,047 32,241 41 131,400 1
configure.ocaml no-host 4,297 1 2 2.6 22.5 149,565 11,121 5,216 7,509 70,620 71,436 1,695 3 50,000 0
configure.tcc no-host 57 0 0 1.3 19.5 30,549 30,549 0 1,519 14,612 14,418 271 0 50,000 0
configure.yash no-host 2,139 1 3 2.5 26.3 139,283 8,033 6,695 5,990 67,849 65,444 2,095 3 50,000 0
abuild-print-help no-host 25 1 2 2.8 9.0 116,345 64,412 42,622 4,546 54,443 57,356 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.9 3,798 3,798 0 696 1,865 1,237 2 0 50,000 0
bin-true no-host 882 1 2 2.6 7.6 153,766 12,118 2,832 8,745 76,331 68,690 3,008 3 50,000 0
configure.cpython no-host 17,705 5 91 14.9 29.2 1,767,684 37,983 24,932 85,429 875,388 806,867 25,736 60 50,000 0
configure.util-linux no-host 17,359 4 89 21.2 30.3 2,699,035 29,878 65,636 108,705 1,288,285 1,302,045 32,241 41 131,272 1
configure.ocaml no-host 4,360 1 2 2.6 22.6 149,565 11,057 5,152 7,511 70,620 71,434 1,695 3 50,000 0
configure.tcc no-host 58 0 0 1.3 19.5 30,549 30,549 0 1,521 14,612 14,416 271 0 50,000 0
configure.yash no-host 2,145 1 2 2.5 26.3 139,283 7,969 6,631 5,992 67,849 65,442 2,095 3 50,000 0
abuild-print-help no-host 26 1 3 2.8 8.7 116,344 64,348 42,558 4,547 54,443 57,354 277 3 85,116 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 21 11 11 4.5 bash
15 no-host abuild-print-help 10 4 7 3.5 dash
23 no-host abuild-print-help 551 483 73 22.7 osh-cpython
31 no-host abuild-print-help 25 11 15 9.0 osh-native
39 no-host abuild-print-help 26 12 15 8.7 osh-native-souffle
1 no-host bin-true 722 308 446 2.9 bash
9 no-host bin-true 568 279 300 1.4 dash
17 no-host bin-true 3,006 1,086 2,243 18.4 osh-cpython
25 no-host bin-true 873 297 595 8.3 osh-native
33 no-host bin-true 882 272 630 7.6 osh-native-souffle
2 no-host configure.cpython 17,830 7,965 10,382 29.2 bash
10 no-host configure.cpython 17,576 7,733 10,372 29.1 dash
18 no-host configure.cpython 36,179 18,406 20,236 29.1 osh-cpython
26 no-host configure.cpython 17,989 7,744 10,605 29.1 osh-native
34 no-host configure.cpython 17,705 7,793 10,257 29.2 osh-native-souffle
4 no-host configure.ocaml 4,288 1,571 1,764 22.6 bash
12 no-host configure.ocaml 4,317 1,655 1,687 22.6 dash
20 no-host configure.ocaml 5,432 2,262 2,475 22.6 osh-cpython
28 no-host configure.ocaml 4,297 1,552 1,794 22.5 osh-native
36 no-host configure.ocaml 4,360 1,587 1,821 22.6 osh-native-souffle
5 no-host configure.tcc 55 22 34 19.6 bash
13 no-host configure.tcc 45 19 27 19.5 dash
21 no-host configure.tcc 264 177 93 19.7 osh-cpython
29 no-host configure.tcc 57 22 35 19.5 osh-native
37 no-host configure.tcc 58 27 31 19.5 osh-native-souffle
3 no-host configure.util-linux 16,727 7,066 10,272 30.3 bash
11 no-host configure.util-linux 17,181 6,920 10,879 30.3 dash
19 no-host configure.util-linux 39,022 22,173 18,248 30.3 osh-cpython
27 no-host configure.util-linux 16,953 6,748 10,470 30.2 osh-native
35 no-host configure.util-linux 17,359 6,888 10,729 30.3 osh-native-souffle
6 no-host configure.yash 2,117 1,060 1,069 26.4 bash
14 no-host configure.yash 2,074 1,077 1,003 26.3 dash
22 no-host configure.yash 2,968 1,628 1,394 26.3 osh-cpython
30 no-host configure.yash 2,139 1,034 1,109 26.3 osh-native
38 no-host configure.yash 2,145 1,064 1,087 26.3 osh-native-souffle
0 no-host hello-world 2 1 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 78 53 25 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 2 1 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,537 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,861 0 0 0 8 0 44 9 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,122 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,352 0 0 0 8 0 1,972 104 bash
9 no-host bin-true 66,431 0 0 0 8 0 1,967 83 dash
17 no-host bin-true 783,438 0 0 0 8 0 1,983 299 osh-cpython
25 no-host bin-true 128,215 0 0 0 16 0 1,978 95 osh-native
33 no-host bin-true 127,096 0 0 0 16 0 1,978 129 osh-native-souffle
2 no-host configure.cpython 1,996,491 0 0 0 32,928 0 14,254 1,115 bash
10 no-host configure.cpython 2,015,663 0 0 0 32,992 0 14,365 1,093 dash
18 no-host configure.cpython 6,014,449 0 0 0 27,528 0 13,058 1,065 osh-cpython
26 no-host configure.cpython 2,013,110 0 0 0 27,520 0 13,059 994 osh-native
34 no-host configure.cpython 1,988,262 1 0 0 27,520 0 12,978 983 osh-native-souffle
4 no-host configure.ocaml 373,010 0 0 0 5,120 0 1,937 205 bash
12 no-host configure.ocaml 353,451 0 0 0 5,112 0 1,922 187 dash
20 no-host configure.ocaml 610,372 0 0 0 5,112 0 1,884 216 osh-cpython
28 no-host configure.ocaml 376,536 0 0 0 5,120 0 1,924 201 osh-native
36 no-host configure.ocaml 375,646 0 0 0 5,120 0 1,925 201 osh-native-souffle
5 no-host configure.tcc 6,117 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,994 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,747 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,506 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,434 0 0 0 104 0 47 6 osh-native-souffle
3 no-host configure.util-linux 1,911,122 0 0 0 42,408 0 18,479 1,134 bash
11 no-host configure.util-linux 2,074,355 1 0 0 42,592 0 17,352 1,433 dash
19 no-host configure.util-linux 5,209,985 5 0 0 39,152 0 17,011 1,233 osh-cpython
27 no-host configure.util-linux 1,809,286 2 0 0 39,136 0 16,919 1,077 osh-native
35 no-host configure.util-linux 1,803,219 1 0 0 39,136 0 16,916 1,101 osh-native-souffle
6 no-host configure.yash 233,206 0 0 0 4,120 0 868 97 bash
14 no-host configure.yash 221,783 0 0 0 3,720 0 866 87 dash
22 no-host configure.yash 366,999 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 235,628 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 234,960 0 0 0 3,736 0 851 89 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,003 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8a83fd08
dash dash-0ebcf347
osh-cpython osh-1cac3240
osh-native osh-6a5a4c59
osh-native-souffle osh-3188f300
host label host id
no-host no-host-e4839999