diff --git a/README.md b/README.md index bc66afb..30d1512 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Антизапрет PAC-скрипт -![Host Lookup Chart: Time-Memory, Hit-Miss](./chart/preview/host-lookup-chart.png) +![Host Lookup Chart: Time-Memory, Hit-Miss](./chart/host-lookup-chart.png) diff --git a/chart/README.md b/chart/README.md index b2c8720..7adf762 100644 --- a/chart/README.md +++ b/chart/README.md @@ -1,18 +1,2 @@ Dual-scale-D3-Bar-Chart -======================== - -This is a demo for creating dual-scaled bar charts using D3.js - -I came across this task when I was working on a simple HTML project. As I googled around and, unfortunately, could not find any example, I decided to do it myself. - -Please bear in mind that I am new to D3.js and this is actually my first time using it. I had heard of D3.js but never used it. - -Hope that this could be of use to someone. All suggestions for improvement are welcome. - -Note: since d3.js uses ajax to load tsv files, the files contained in the src folder cannot be run in a browser using file:///. Execute the following command under the src directory to create a HTTP server. - - python -m SimpleHTTPServer - -Use the following URL to access index.html - - http://localhost:8000/index.html +======================== \ No newline at end of file diff --git a/chart/host-lookup-chart.png b/chart/host-lookup-chart.png new file mode 100755 index 0000000..8234604 Binary files /dev/null and b/chart/host-lookup-chart.png differ diff --git a/chart/preview/host-lookup-chart.png b/chart/preview/host-lookup-chart.png deleted file mode 100755 index 832b363..0000000 Binary files a/chart/preview/host-lookup-chart.png and /dev/null differ diff --git a/chart/src/data.tsv b/chart/src/data.tsv index 83d02fc..de5220a 100644 --- a/chart/src/data.tsv +++ b/chart/src/data.tsv @@ -1,9 +1,9 @@ approach memHit timeHit memMiss timeMiss -hosts-reversed-binary 109 3704594 96 602820 -hosts-binary 351 3718253 210 605188 -hosts-plain-switch 367 2874843 88 607200 -hosts-hash 347 5062512 207 609278 -hosts-switch 88 894410 77 614169 -ips-switch 37 1348111 72 597439 -ips-indexOf 35 4853437 72 599850 -ips-binary 31 3542401 77 602958 +Hosts reversed binary 109 3704594 96 602820 +Hosts binary 351 3718253 210 605188 +Hosts plain switch 367 2874843 88 607200 +Hosts hash 347 5062512 207 609278 +Hosts switch 88 894410 77 614169 +IPs switch 37 1348111 72 597439 +IPs indexOf 35 4853437 72 599850 +IPs binary 31 3542401 77 602958 diff --git a/chart/src/index.html b/chart/src/index.html index 9bde53c..3c64cb6 100644 --- a/chart/src/index.html +++ b/chart/src/index.html @@ -3,7 +3,7 @@