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 476 22 21 24.90 1.12
bin-true no-host 656 527 2,305 798 795 3.51 1.22
configure.cpython no-host 14,863 14,938 28,754 15,087 15,092 1.93 1.02
configure.ocaml no-host 3,793 3,721 4,655 3,828 3,832 1.23 1.01
configure.tcc no-host 47 41 202 48 47 4.31 1.03
configure.util-linux no-host 13,791 14,643 31,557 14,453 14,176 2.29 1.05
configure.yash no-host 1,808 1,759 2,466 1,832 1,817 1.36 1.01
hello-world no-host 1 1 57 3 3 41.87 2.06

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,526 1,121 23,541 3,186 3,116 9.32 1.26
bin-true no-host 105,337 66,520 759,081 124,211 123,243 7.21 1.18
configure.cpython no-host 1,995,337 2,024,781 5,983,311 2,004,891 1,991,853 3.00 1.00
configure.ocaml no-host 373,465 353,486 605,655 376,021 375,441 1.62 1.01
configure.tcc no-host 6,078 5,012 23,385 6,475 6,442 3.85 1.07
configure.util-linux no-host 1,905,920 2,065,506 5,171,898 1,805,558 1,793,495 2.71 0.95
configure.yash no-host 233,922 221,955 364,107 235,039 234,905 1.56 1.00
hello-world no-host 144 77 3,947 344 338 27.41 2.39

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.4 22.6 8.9 8.7 5.22 2.06
bin-true no-host 2.8 1.4 18.3 8.1 7.7 6.63 2.95
configure.cpython no-host 29.3 29.2 29.1 29.1 29.2 0.99 0.99
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.7 19.7 19.5 19.7 19.8 0.99 1.00
configure.util-linux no-host 30.3 30.3 30.5 30.5 30.2 1.01 1.01
configure.yash no-host 26.5 26.4 26.5 26.5 26.5 1.00 1.00
hello-world no-host 2.6 1.4 18.3 6.3 6.0 6.96 2.40

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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 798 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,087 1 67 14.9 29.1 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 14,453 3 66 21.2 30.5 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,828 1 2 2.6 22.5 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,832 1 2 2.5 26.5 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 6.0 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 795 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,092 1 70 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 14,176 3 66 21.2 30.2 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,832 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,817 1 2 2.5 26.5 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 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 19 11 9 4.3 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 476 421 59 22.6 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 656 296 392 2.8 bash
9 no-host bin-true 527 281 257 1.4 dash
17 no-host bin-true 2,305 758 1,806 18.3 osh-cpython
25 no-host bin-true 798 299 520 8.1 osh-native
33 no-host bin-true 795 288 524 7.7 osh-native-souffle
2 no-host configure.cpython 14,863 6,729 8,557 29.3 bash
10 no-host configure.cpython 14,938 6,822 8,565 29.2 dash
18 no-host configure.cpython 28,754 14,324 16,334 29.1 osh-cpython
26 no-host configure.cpython 15,087 6,571 8,781 29.1 osh-native
34 no-host configure.cpython 15,092 6,569 8,797 29.2 osh-native-souffle
4 no-host configure.ocaml 3,793 1,348 1,486 22.6 bash
12 no-host configure.ocaml 3,721 1,306 1,438 22.6 dash
20 no-host configure.ocaml 4,655 1,885 1,982 22.6 osh-cpython
28 no-host configure.ocaml 3,828 1,338 1,531 22.5 osh-native
36 no-host configure.ocaml 3,832 1,370 1,503 22.6 osh-native-souffle
5 no-host configure.tcc 47 22 25 19.7 bash
13 no-host configure.tcc 41 21 21 19.7 dash
21 no-host configure.tcc 202 137 68 19.5 osh-cpython
29 no-host configure.tcc 48 22 27 19.7 osh-native
37 no-host configure.tcc 47 20 28 19.8 osh-native-souffle
3 no-host configure.util-linux 13,791 5,776 8,506 30.3 bash
11 no-host configure.util-linux 14,643 5,837 9,329 30.3 dash
19 no-host configure.util-linux 31,557 18,017 14,673 30.5 osh-cpython
27 no-host configure.util-linux 14,453 5,795 8,883 30.5 osh-native
35 no-host configure.util-linux 14,176 5,620 8,775 30.2 osh-native-souffle
6 no-host configure.yash 1,808 914 904 26.5 bash
14 no-host configure.yash 1,759 885 878 26.4 dash
22 no-host configure.yash 2,466 1,353 1,157 26.5 osh-cpython
30 no-host configure.yash 1,832 917 917 26.5 osh-native
38 no-host configure.yash 1,817 906 916 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.6 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 31 26 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 6.0 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,526 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,121 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,541 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,116 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,337 0 0 0 8 0 1,988 87 bash
9 no-host bin-true 66,520 0 0 0 8 0 1,977 90 dash
17 no-host bin-true 759,081 0 0 0 8 0 1,991 422 osh-cpython
25 no-host bin-true 124,211 0 0 0 16 0 1,983 232 osh-native
33 no-host bin-true 123,243 0 0 0 16 0 1,982 312 osh-native-souffle
2 no-host configure.cpython 1,995,337 0 0 0 32,928 0 14,361 1,251 bash
10 no-host configure.cpython 2,024,781 0 0 0 32,992 0 14,397 1,171 dash
18 no-host configure.cpython 5,983,311 1 0 0 27,512 0 13,128 1,228 osh-cpython
26 no-host configure.cpython 2,004,891 0 0 0 27,520 0 13,142 1,158 osh-native
34 no-host configure.cpython 1,991,853 0 0 0 27,520 0 13,077 1,107 osh-native-souffle
4 no-host configure.ocaml 373,465 0 0 0 5,120 0 1,957 171 bash
12 no-host configure.ocaml 353,486 0 0 0 5,112 0 1,939 180 dash
20 no-host configure.ocaml 605,655 0 0 0 5,112 0 1,848 203 osh-cpython
28 no-host configure.ocaml 376,021 0 0 0 5,120 0 1,931 217 osh-native
36 no-host configure.ocaml 375,441 0 0 0 5,120 0 1,920 206 osh-native-souffle
5 no-host configure.tcc 6,078 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,012 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,385 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,475 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,442 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,905,920 1 0 0 42,400 0 18,504 1,172 bash
11 no-host configure.util-linux 2,065,506 0 0 0 42,584 0 17,277 1,436 dash
19 no-host configure.util-linux 5,171,898 8 0 0 39,112 0 17,064 1,227 osh-cpython
27 no-host configure.util-linux 1,805,558 0 0 0 39,120 0 17,112 1,196 osh-native
35 no-host configure.util-linux 1,793,495 0 0 0 39,128 0 16,906 1,178 osh-native-souffle
6 no-host configure.yash 233,922 0 0 0 4,120 0 873 101 bash
14 no-host configure.yash 221,955 0 0 0 3,720 0 870 87 dash
22 no-host configure.yash 364,107 0 0 0 3,728 0 853 100 osh-cpython
30 no-host configure.yash 235,039 0 0 0 3,736 0 846 96 osh-native
38 no-host configure.yash 234,905 0 0 0 3,736 0 848 80 osh-native-souffle
0 no-host hello-world 144 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 3,947 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-eea0a4eb
dash dash-0ebcf347
osh-cpython osh-eaaede6d
osh-native osh-129d9995
osh-native-souffle osh-e149631d
host label host id
no-host no-host-e4839999