test_worst_binop_simple()¶
Documentation for tests/benchmark/test_worst_compute.py::test_worst_binop_simple@v5.1.0.
Generate fixtures for these test cases for Osaka with:
fill -v tests/benchmark/test_worst_compute.py::test_worst_binop_simple -m benchmark
Test running a block with as many binary instructions (takes two args, produces one value) as possible. The execution starts with two initial values on the stack, and the stack is balanced by the DUP2 instruction.
Source code in tests/benchmark/test_worst_compute.py
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 | |
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
| Test ID (Abbreviated) | opcode | opcode_args |
|---|---|---|
| ...fork_Prague-state_test-opcode_ADD- | ADD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_MUL- | MUL | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_SUB- | SUB | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_DIV-0 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 340282366920938463463374607431768211507) |
| ...fork_Prague-state_test-opcode_DIV-1 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 18446744073709551667) |
| ...fork_Prague-state_test-opcode_SDIV-0 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907852929702298719625575994209400481361428429) |
| ...fork_Prague-state_test-opcode_SDIV-1 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907853269984665640564039439137263839420088269) |
| ...fork_Prague-state_test-opcode_MOD- | MOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_SMOD- | SMOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_EXP- | EXP | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639935) |
| ...fork_Prague-state_test-opcode_SIGNEXTEND- | SIGNEXTEND | (3, 4292532954) |
| ...fork_Prague-state_test-opcode_LT- | LT | (0, 1) |
| ...fork_Prague-state_test-opcode_GT- | GT | (0, 1) |
| ...fork_Prague-state_test-opcode_SLT- | SLT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Prague-state_test-opcode_SGT- | SGT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Prague-state_test-opcode_EQ- | EQ | (1, 1) |
| ...fork_Prague-state_test-opcode_AND- | AND | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_OR- | OR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_XOR- | XOR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-state_test-opcode_BYTE- | BYTE | (31, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-state_test-opcode_SHL- | SHL | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-state_test-opcode_SHR- | SHR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-state_test-opcode_SAR- | SAR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_ADD- | ADD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_MUL- | MUL | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SUB- | SUB | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_DIV-0 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 340282366920938463463374607431768211507) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_DIV-1 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 18446744073709551667) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SDIV-0 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907852929702298719625575994209400481361428429) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SDIV-1 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907853269984665640564039439137263839420088269) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_MOD- | MOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SMOD- | SMOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_EXP- | EXP | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639935) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SIGNEXTEND- | SIGNEXTEND | (3, 4292532954) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_LT- | LT | (0, 1) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_GT- | GT | (0, 1) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SLT- | SLT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SGT- | SGT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_EQ- | EQ | (1, 1) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_AND- | AND | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_OR- | OR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_XOR- | XOR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_BYTE- | BYTE | (31, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SHL- | SHL | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SHR- | SHR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Prague-blockchain_test_from_state_test-opcode_SAR- | SAR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-state_test-opcode_ADD- | ADD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_MUL- | MUL | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_SUB- | SUB | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_DIV-0 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 340282366920938463463374607431768211507) |
| ...fork_Osaka-state_test-opcode_DIV-1 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 18446744073709551667) |
| ...fork_Osaka-state_test-opcode_SDIV-0 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907852929702298719625575994209400481361428429) |
| ...fork_Osaka-state_test-opcode_SDIV-1 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907853269984665640564039439137263839420088269) |
| ...fork_Osaka-state_test-opcode_MOD- | MOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_SMOD- | SMOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_EXP- | EXP | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639935) |
| ...fork_Osaka-state_test-opcode_SIGNEXTEND- | SIGNEXTEND | (3, 4292532954) |
| ...fork_Osaka-state_test-opcode_LT- | LT | (0, 1) |
| ...fork_Osaka-state_test-opcode_GT- | GT | (0, 1) |
| ...fork_Osaka-state_test-opcode_SLT- | SLT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Osaka-state_test-opcode_SGT- | SGT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Osaka-state_test-opcode_EQ- | EQ | (1, 1) |
| ...fork_Osaka-state_test-opcode_AND- | AND | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_OR- | OR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_XOR- | XOR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-state_test-opcode_BYTE- | BYTE | (31, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-state_test-opcode_SHL- | SHL | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-state_test-opcode_SHR- | SHR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-state_test-opcode_SAR- | SAR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_ADD- | ADD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_MUL- | MUL | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SUB- | SUB | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_DIV-0 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 340282366920938463463374607431768211507) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_DIV-1 | DIV | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 18446744073709551667) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SDIV-0 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907852929702298719625575994209400481361428429) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SDIV-1 | SDIV | (57896044618658097711785492504343953926634992332820282019728792003952269851695, 115792089237316195423570985008687907853269984665640564039439137263839420088269) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_MOD- | MOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SMOD- | SMOD | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_EXP- | EXP | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639935) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SIGNEXTEND- | SIGNEXTEND | (3, 4292532954) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_LT- | LT | (0, 1) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_GT- | GT | (0, 1) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SLT- | SLT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SGT- | SGT | (115792089237316195423570985008687907853269984665640564039457584007913129639935, 1) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_EQ- | EQ | (1, 1) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_AND- | AND | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_OR- | OR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_XOR- | XOR | (115792089237316195423570985008687907853269984665640564039457584007908834671663, 52435875175126190479447740508185965837690552500527637822603658699938581184513) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_BYTE- | BYTE | (31, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SHL- | SHL | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SHR- | SHR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |
| ...fork_Osaka-blockchain_test_from_state_test-opcode_SAR- | SAR | (1, 115792089237316195423570985008687907853269984665640564039457584007908834671663) |