{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "TOTAL_TICK_SAMPLE = 82080\n", "TOTAL_MS_SAMPLE = 4105000\n", "\n", "mobcount = {\n", " \"total\": 484,\n", " \"villager\": 93,\n", " \"item\": 56,\n", " \"zombie\": 53,\n", " \"enderman\": 46,\n", " \"creeper\": 22,\n", " \"cow\": 19,\n", " \"horse\": 17,\n", " \"skeleton\": 17,\n", " \"chicken\": 17,\n", " \"minecart\": 11,\n", " \"bat\": 10,\n", " \"turtle\": 8,\n", " \"glow_squid\": 7,\n", " \"iron_golem\": 7,\n", " \"pig\": 6\n", "}\n", "\n", "ms_per_mob = {\n", " \"total\": 1_572_444,\n", " \"villager\": 671_904,\n", " \"item\": 17_132,\n", " \"zombie\": 11_068+211_732, # ZV+Z\n", " \"enderman\": 177_380,\n", " \"creeper\": 25_172,\n", " \"cow\": 0,\n", " \"horse\": 71_040,\n", " \"skeleton\": 19_132,\n", " \"chicken\": 23_352,\n", " \"minecart\": 21_684+6_476, # AbsM + HM\n", " \"bat\": 196,\n", " \"turtle\":30_648,\n", " \"glow_squid\":0,\n", " \"iron_golem\":43_492,\n", " \"pig\": 0\n", "}" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "combined = dict()\n", "for (k,v) in mobcount.items():\n", " combined[k] = {\"count\": mobcount[k], \"ms\": ms_per_mob[k]}" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'total': {'count': 484, 'ms': 1572444},\n", " 'villager': {'count': 93, 'ms': 671904},\n", " 'item': {'count': 56, 'ms': 17132},\n", " 'zombie': {'count': 53, 'ms': 222800},\n", " 'enderman': {'count': 46, 'ms': 177380},\n", " 'creeper': {'count': 22, 'ms': 25172},\n", " 'cow': {'count': 19, 'ms': 0},\n", " 'horse': {'count': 17, 'ms': 71040},\n", " 'skeleton': {'count': 17, 'ms': 19132},\n", " 'chicken': {'count': 17, 'ms': 23352},\n", " 'minecart': {'count': 11, 'ms': 28160},\n", " 'bat': {'count': 10, 'ms': 196},\n", " 'turtle': {'count': 8, 'ms': 30648},\n", " 'glow_squid': {'count': 7, 'ms': 0},\n", " 'iron_golem': {'count': 7, 'ms': 43492},\n", " 'pig': {'count': 6, 'ms': 0}}" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "combined" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from matplotlib import pyplot as plt\n", "import numpy as np\n" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | count | \n", "ms | \n", "
|---|---|---|
| total | \n", "484 | \n", "1572444 | \n", "
| villager | \n", "93 | \n", "671904 | \n", "
| item | \n", "56 | \n", "17132 | \n", "
| zombie | \n", "53 | \n", "222800 | \n", "
| enderman | \n", "46 | \n", "177380 | \n", "
| creeper | \n", "22 | \n", "25172 | \n", "
| cow | \n", "19 | \n", "0 | \n", "
| horse | \n", "17 | \n", "71040 | \n", "
| skeleton | \n", "17 | \n", "19132 | \n", "
| chicken | \n", "17 | \n", "23352 | \n", "
| minecart | \n", "11 | \n", "28160 | \n", "
| bat | \n", "10 | \n", "196 | \n", "
| turtle | \n", "8 | \n", "30648 | \n", "
| glow_squid | \n", "7 | \n", "0 | \n", "
| iron_golem | \n", "7 | \n", "43492 | \n", "
| pig | \n", "6 | \n", "0 | \n", "