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 16 9 521 22 21 32.71 1.36
bin-true no-host 638 455 2,495 815 817 3.91 1.28
configure.cpython no-host 13,868 13,905 29,746 14,646 14,794 2.14 1.06
configure.ocaml no-host 3,676 3,642 4,656 3,742 3,757 1.27 1.02
configure.tcc no-host 46 42 220 49 49 4.81 1.08
configure.util-linux no-host 12,617 13,556 32,309 13,697 13,861 2.56 1.09
configure.yash no-host 1,699 1,667 2,439 1,726 1,738 1.43 1.02
hello-world no-host 1 1 60 3 3 46.31 2.21

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,410 1,172 24,706 3,436 3,356 10.25 1.43
bin-true no-host 100,949 49,305 830,572 134,269 134,276 8.23 1.33
configure.cpython no-host 1,621,478 1,641,725 5,953,556 1,801,704 1,789,203 3.67 1.11
configure.ocaml no-host 298,679 280,793 554,510 316,346 315,296 1.86 1.06
configure.tcc no-host 5,209 4,202 23,737 5,967 5,865 4.56 1.15
configure.util-linux no-host 1,531,349 1,692,845 4,955,804 1,716,282 1,710,053 3.24 1.12
configure.yash no-host 173,586 159,503 315,438 179,057 178,799 1.82 1.03
hello-world no-host 153 89 3,876 381 379 25.33 2.49

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.8 3.9 22.7 9.8 9.3 4.67 2.03
bin-true no-host 3.3 1.6 18.3 8.8 8.1 5.59 2.68
configure.cpython no-host 34.5 34.4 34.5 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.7 28.5 1.00 1.00
configure.tcc no-host 26.2 26.0 26.0 26.4 26.1 0.99 1.01
configure.util-linux no-host 39.7 39.5 39.8 39.6 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.4 33.1 0.99 1.00
hello-world no-host 3.1 1.6 17.9 6.8 6.6 5.70 2.17

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.8 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,646 1 66 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,697 3 60 21.4 39.6 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,742 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.4 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,726 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.6 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,794 2 65 15.2 34.6 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,861 3 60 21.4 39.5 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,757 1 2 2.7 28.5 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.6 33.1 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,366 64,433 42,634 4,563 54,471 57,332 277 3 85,268 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 16 8 8 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 521 465 60 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.3 osh-native-souffle
1 no-host bin-true 638 305 370 3.3 bash
9 no-host bin-true 455 291 170 1.6 dash
17 no-host bin-true 2,495 884 1,873 18.3 osh-cpython
25 no-host bin-true 815 305 527 8.8 osh-native
33 no-host bin-true 817 292 540 8.1 osh-native-souffle
2 no-host configure.cpython 13,868 7,479 6,766 34.5 bash
10 no-host configure.cpython 13,905 7,341 6,968 34.4 dash
18 no-host configure.cpython 29,746 16,134 15,594 34.5 osh-cpython
26 no-host configure.cpython 14,646 7,423 7,532 34.5 osh-native
34 no-host configure.cpython 14,794 7,373 7,603 34.6 osh-native-souffle
4 no-host configure.ocaml 3,676 1,415 1,301 28.7 bash
12 no-host configure.ocaml 3,642 1,469 1,197 28.6 dash
20 no-host configure.ocaml 4,656 2,053 1,824 28.6 osh-cpython
28 no-host configure.ocaml 3,742 1,444 1,339 28.7 osh-native
36 no-host configure.ocaml 3,757 1,463 1,335 28.5 osh-native-souffle
5 no-host configure.tcc 46 24 22 26.2 bash
13 no-host configure.tcc 42 24 18 26.0 dash
21 no-host configure.tcc 220 153 71 26.0 osh-cpython
29 no-host configure.tcc 49 26 24 26.4 osh-native
37 no-host configure.tcc 49 27 23 26.1 osh-native-souffle
3 no-host configure.util-linux 12,617 6,518 6,569 39.7 bash
11 no-host configure.util-linux 13,556 6,357 7,694 39.5 dash
19 no-host configure.util-linux 32,309 20,115 13,255 39.8 osh-cpython
27 no-host configure.util-linux 13,697 6,368 7,570 39.6 osh-native
35 no-host configure.util-linux 13,861 6,263 7,685 39.5 osh-native-souffle
6 no-host configure.yash 1,699 921 787 33.4 bash
14 no-host configure.yash 1,667 933 735 33.4 dash
22 no-host configure.yash 2,439 1,405 1,075 33.1 osh-cpython
30 no-host configure.yash 1,726 932 797 33.4 osh-native
38 no-host configure.yash 1,738 960 781 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 37 23 17.9 osh-cpython
24 no-host hello-world 3 2 1 6.8 osh-native
32 no-host hello-world 3 0 3 6.6 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,410 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 24,706 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,356 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,949 0 0 0 8 0 1,969 98 bash
9 no-host bin-true 49,305 0 0 0 8 0 2,967 61 dash
17 no-host bin-true 830,572 0 0 0 8 0 1,985 415 osh-cpython
25 no-host bin-true 134,269 0 0 0 16 0 1,973 90 osh-native
33 no-host bin-true 134,276 0 0 0 16 0 1,963 104 osh-native-souffle
2 no-host configure.cpython 1,621,478 0 0 0 25,272 0 14,043 1,236 bash
10 no-host configure.cpython 1,641,725 0 0 0 25,272 0 14,064 1,197 dash
18 no-host configure.cpython 5,953,556 0 0 0 25,272 0 12,875 1,185 osh-cpython
26 no-host configure.cpython 1,801,704 0 0 0 25,280 0 12,879 1,197 osh-native
34 no-host configure.cpython 1,789,203 0 0 0 25,280 0 12,857 1,270 osh-native-souffle
4 no-host configure.ocaml 298,679 0 0 0 4,432 0 2,013 227 bash
12 no-host configure.ocaml 280,793 0 0 0 4,432 0 2,101 190 dash
20 no-host configure.ocaml 554,510 0 0 0 4,432 0 1,910 200 osh-cpython
28 no-host configure.ocaml 316,346 0 0 0 4,440 0 2,003 223 osh-native
36 no-host configure.ocaml 315,296 0 0 0 4,440 0 1,999 249 osh-native-souffle
5 no-host configure.tcc 5,209 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 51 1 dash
21 no-host configure.tcc 23,737 0 0 0 88 0 53 7 osh-cpython
29 no-host configure.tcc 5,967 0 0 0 96 0 47 5 osh-native
37 no-host configure.tcc 5,865 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,531,349 0 0 0 35,944 0 18,951 1,228 bash
11 no-host configure.util-linux 1,692,845 2 0 0 35,936 0 16,939 1,396 dash
19 no-host configure.util-linux 4,955,804 5 0 0 35,960 0 17,607 1,079 osh-cpython
27 no-host configure.util-linux 1,716,282 7 0 0 35,952 0 17,543 1,083 osh-native
35 no-host configure.util-linux 1,710,053 2 0 0 35,952 0 17,511 1,025 osh-native-souffle
6 no-host configure.yash 173,586 0 0 0 3,616 0 870 131 bash
14 no-host configure.yash 159,503 0 0 0 3,616 0 997 113 dash
22 no-host configure.yash 315,438 0 0 0 3,616 0 863 156 osh-cpython
30 no-host configure.yash 179,057 0 0 0 3,624 0 857 155 osh-native
38 no-host configure.yash 178,799 0 0 0 3,624 0 857 137 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,876 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 381 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3772342d
dash dash-cea41b3e
osh-cpython osh-59df22e3
osh-native osh-24df07ba
osh-native-souffle osh-7187bf6d
host label host id
no-host no-host-2411472